diff --git a/src/blrec/bili/api.py b/src/blrec/bili/api.py index 35acf65..9b35535 100644 --- a/src/blrec/bili/api.py +++ b/src/blrec/bili/api.py @@ -1,8 +1,10 @@ +import asyncio import hashlib import logging +import os from abc import ABC from datetime import datetime -from typing import Any, Dict, Mapping, Optional +from typing import Any, Dict, List, Mapping, Optional from urllib.parse import urlencode import aiohttp @@ -16,15 +18,17 @@ __all__ = 'AppApi', 'WebApi' logger = logging.getLogger(__name__) +TRACE_API_REQ = bool(os.environ.get('TRACE_API_REQ')) + class BaseApi(ABC): - base_api_url: str = 'https://api.bilibili.com' - base_live_api_url: str = 'https://api.live.bilibili.com' - base_play_info_api_url: str = base_live_api_url - def __init__( self, session: aiohttp.ClientSession, headers: Optional[Dict[str, str]] = None ): + self.base_api_urls: List[str] = ['https://api.bilibili.com'] + self.base_live_api_urls: List[str] = ['https://api.live.bilibili.com'] + self.base_play_info_api_urls: List[str] = ['https://api.live.bilibili.com'] + self._session = session self.headers = headers or {} self.timeout = 10 @@ -45,15 +49,62 @@ class BaseApi(ABC): ) @retry(reraise=True, stop=stop_after_delay(5), wait=wait_exponential(0.1)) - async def _get_json(self, *args: Any, **kwds: Any) -> JsonResponse: - async with self._session.get( - *args, **kwds, timeout=self.timeout, headers=self.headers - ) as res: - logger.debug(f'real url: {res.real_url}') - json_res = await res.json() + async def _get_json_res(self, *args: Any, **kwds: Any) -> JsonResponse: + kwds = {'timeout': self.timeout, 'headers': self.headers, **kwds} + async with self._session.get(*args, **kwds) as res: + if TRACE_API_REQ: + logger.debug(f'Request info: {res.request_info}') + try: + json_res = await res.json() + except aiohttp.ContentTypeError: + text_res = await res.text() + logger.debug(f'Response text: {text_res[:200]}') + raise self._check_response(json_res) return json_res + async def _get_json( + self, base_urls: List[str], path: str, *args: Any, **kwds: Any + ) -> JsonResponse: + if not base_urls: + raise ValueError('No base urls') + exception = None + for base_url in base_urls: + url = base_url + path + try: + return await self._get_json_res(url, *args, **kwds) + except Exception as exc: + exception = exc + if TRACE_API_REQ: + logger.debug(f'Failed to get json from {url}', exc_info=exc) + else: + assert exception is not None + raise exception + + async def _get_jsons_concurrently( + self, base_urls: List[str], path: str, *args: Any, **kwds: Any + ) -> List[JsonResponse]: + if not base_urls: + raise ValueError('No base urls') + urls = [base_url + path for base_url in base_urls] + aws = (self._get_json_res(url, *args, **kwds) for url in urls) + results = await asyncio.gather(*aws, return_exceptions=True) + exceptions = [] + json_responses = [] + for idx, item in enumerate(results): + if isinstance(item, Exception): + if TRACE_API_REQ: + logger.debug(f'Failed to get json from {urls[idx]}', exc_info=item) + exceptions.append(item) + elif isinstance(item, dict): + json_responses.append(item) + else: + if TRACE_API_REQ: + logger.debug(repr(item)) + if not json_responses: + raise exceptions[0] + return json_responses + class AppApi(BaseApi): # taken from https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/other/API_sign.md # noqa @@ -85,15 +136,15 @@ class AppApi(BaseApi): params.update(sign=sign) return params - async def get_room_play_info( + async def get_room_play_infos( self, room_id: int, qn: QualityNumber = 10000, *, only_video: bool = False, only_audio: bool = False, - ) -> ResponseData: - url = self.base_play_info_api_url + '/xlive/app-room/v2/index/getRoomPlayInfo' + ) -> List[ResponseData]: + path = '/xlive/app-room/v2/index/getRoomPlayInfo' params = self.signed( { 'actionKey': 'appkey', @@ -121,11 +172,13 @@ class AppApi(BaseApi): 'ts': int(datetime.utcnow().timestamp()), } ) - r = await self._get_json(url, params=params, headers=self._headers) - return r['data'] + json_responses = await self._get_jsons_concurrently( + self.base_play_info_api_urls, path, params=params + ) + return [r['data'] for r in json_responses] async def get_info_by_room(self, room_id: int) -> ResponseData: - url = self.base_live_api_url + '/xlive/app-room/v1/index/getInfoByRoom' + path = '/xlive/app-room/v1/index/getInfoByRoom' params = self.signed( { 'actionKey': 'appkey', @@ -138,11 +191,12 @@ class AppApi(BaseApi): 'ts': int(datetime.utcnow().timestamp()), } ) - r = await self._get_json(url, params=params) - return r['data'] + json_res = await self._get_json(self.base_live_api_urls, path, params=params) + return json_res['data'] async def get_user_info(self, uid: int) -> ResponseData: - url = self.base_api_url + '/x/v2/space' + base_api_urls = ['https://app.bilibili.com'] + path = '/x/v2/space' params = self.signed( { 'build': '6640400', @@ -153,11 +207,11 @@ class AppApi(BaseApi): 'vmid': uid, } ) - r = await self._get_json(url, params=params) - return r['data'] + json_res = await self._get_json(base_api_urls, path, params=params) + return json_res['data'] async def get_danmu_info(self, room_id: int) -> ResponseData: - url = self.base_live_api_url + '/xlive/app-room/v1/index/getDanmuInfo' + path = '/xlive/app-room/v1/index/getDanmuInfo' params = self.signed( { 'actionKey': 'appkey', @@ -170,20 +224,21 @@ class AppApi(BaseApi): 'ts': int(datetime.utcnow().timestamp()), } ) - r = await self._get_json(url, params=params) - return r['data'] + json_res = await self._get_json(self.base_live_api_urls, path, params=params) + return json_res['data'] class WebApi(BaseApi): async def room_init(self, room_id: int) -> ResponseData: - url = self.base_live_api_url + '/room/v1/Room/room_init' - r = await self._get_json(url, params={'id': room_id}) - return r['data'] + path = '/room/v1/Room/room_init' + params = {'id': room_id} + json_res = await self._get_json(self.base_live_api_urls, path, params=params) + return json_res['data'] - async def get_room_play_info( + async def get_room_play_infos( self, room_id: int, qn: QualityNumber = 10000 - ) -> ResponseData: - url = self.base_play_info_api_url + '/xlive/web-room/v2/index/getRoomPlayInfo' + ) -> List[ResponseData]: + path = '/xlive/web-room/v2/index/getRoomPlayInfo' params = { 'room_id': room_id, 'protocol': '0,1', @@ -193,34 +248,37 @@ class WebApi(BaseApi): 'platform': 'web', 'ptype': 8, } - r = await self._get_json(url, params=params) - return r['data'] + json_responses = await self._get_jsons_concurrently( + self.base_play_info_api_urls, path, params=params + ) + return [r['data'] for r in json_responses] async def get_info_by_room(self, room_id: int) -> ResponseData: - url = self.base_live_api_url + '/xlive/web-room/v1/index/getInfoByRoom' + path = '/xlive/web-room/v1/index/getInfoByRoom' params = {'room_id': room_id} - r = await self._get_json(url, params=params) - return r['data'] + json_res = await self._get_json(self.base_live_api_urls, path, params=params) + return json_res['data'] async def get_info(self, room_id: int) -> ResponseData: - url = self.base_live_api_url + '/room/v1/Room/get_info' + path = '/room/v1/Room/get_info' params = {'room_id': room_id} - r = await self._get_json(url, params=params) - return r['data'] + json_res = await self._get_json(self.base_live_api_urls, path, params=params) + return json_res['data'] async def get_timestamp(self) -> int: - url = self.base_live_api_url + '/av/v1/Time/getTimestamp?platform=pc' - r = await self._get_json(url) - return r['data']['timestamp'] + path = '/av/v1/Time/getTimestamp' + params = {'platform': 'pc'} + json_res = await self._get_json(self.base_live_api_urls, path, params=params) + return json_res['data']['timestamp'] async def get_user_info(self, uid: int) -> ResponseData: - url = self.base_api_url + '/x/space/acc/info' + path = '/x/space/acc/info' params = {'mid': uid} - r = await self._get_json(url, params=params) - return r['data'] + json_res = await self._get_json(self.base_api_urls, path, params=params) + return json_res['data'] async def get_danmu_info(self, room_id: int) -> ResponseData: - url = self.base_live_api_url + '/xlive/web-room/v1/index/getDanmuInfo' + path = '/xlive/web-room/v1/index/getDanmuInfo' params = {'id': room_id} - r = await self._get_json(url, params=params) - return r['data'] + json_res = await self._get_json(self.base_live_api_urls, path, params=params) + return json_res['data'] diff --git a/src/blrec/bili/live.py b/src/blrec/bili/live.py index 22a8c55..960c2ea 100644 --- a/src/blrec/bili/live.py +++ b/src/blrec/bili/live.py @@ -3,7 +3,7 @@ import json import logging import re import time -from typing import Any, Dict, List, cast +from typing import Any, Dict, List import aiohttp from jsonpath import jsonpath @@ -52,31 +52,31 @@ class Live: self._user_info: UserInfo @property - def base_api_url(self) -> str: - return self._webapi.base_api_url + def base_api_urls(self) -> List[str]: + return self._webapi.base_api_urls - @base_api_url.setter - def base_api_url(self, value: str) -> None: - self._webapi.base_api_url = value - self._appapi.base_api_url = value + @base_api_urls.setter + def base_api_urls(self, value: List[str]) -> None: + self._webapi.base_api_urls = value + self._appapi.base_api_urls = value @property - def base_live_api_url(self) -> str: - return self._webapi.base_live_api_url + def base_live_api_urls(self) -> List[str]: + return self._webapi.base_live_api_urls - @base_live_api_url.setter - def base_live_api_url(self, value: str) -> None: - self._webapi.base_live_api_url = value - self._appapi.base_live_api_url = value + @base_live_api_urls.setter + def base_live_api_urls(self, value: List[str]) -> None: + self._webapi.base_live_api_urls = value + self._appapi.base_live_api_urls = value @property - def base_play_info_api_url(self) -> str: - return self._webapi.base_play_info_api_url + def base_play_info_api_urls(self) -> List[str]: + return self._webapi.base_play_info_api_urls - @base_play_info_api_url.setter - def base_play_info_api_url(self, value: str) -> None: - self._webapi.base_play_info_api_url = value - self._appapi.base_play_info_api_url = value + @base_play_info_api_urls.setter + def base_play_info_api_urls(self, value: List[str]) -> None: + self._webapi.base_play_info_api_urls = value + self._appapi.base_play_info_api_urls = value @property def user_agent(self) -> str: @@ -102,7 +102,7 @@ class Live: def headers(self) -> Dict[str, str]: return { 'Accept': '*/*', - 'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en;q=0.3,en-US;q=0.2', + 'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en;q=0.3,en-US;q=0.2', # noqa 'Referer': f'https://live.bilibili.com/{self._room_id}', 'Origin': 'https://live.bilibili.com', 'Connection': 'keep-alive', @@ -249,13 +249,14 @@ class Live: select_alternative: bool = False, ) -> str: if api_platform == 'web': - info = await self._webapi.get_room_play_info(self._room_id, qn) + paly_infos = await self._webapi.get_room_play_infos(self._room_id, qn) else: - info = await self._appapi.get_room_play_info(self._room_id, qn) + paly_infos = await self._appapi.get_room_play_infos(self._room_id, qn) - self._check_room_play_info(info) + for info in paly_infos: + self._check_room_play_info(info) - streams = jsonpath(info, '$.playurl_info.playurl.stream[*]') + streams = jsonpath(paly_infos, '$[*].playurl_info.playurl.stream[*]') if not streams: raise NoStreamAvailable(stream_format, stream_codec, qn) formats = jsonpath( @@ -266,10 +267,10 @@ class Live: codecs = jsonpath(formats, f'$[*].codec[?(@.codec_name == "{stream_codec}")]') if not codecs: raise NoStreamCodecAvailable(stream_format, stream_codec, qn) - codec = codecs[0] - accept_qn = cast(List[QualityNumber], codec['accept_qn']) - if qn not in accept_qn or codec['current_qn'] != qn: + accept_qns = jsonpath(codecs, '$[*].accept_qn[*]') + current_qns = jsonpath(codecs, '$[*].current_qn') + if qn not in accept_qns or not all(map(lambda q: q == qn, current_qns)): raise NoStreamQualityAvailable(stream_format, stream_codec, qn) def sort_by_host(info: Any) -> int: @@ -282,16 +283,23 @@ class Live: return 1 if num == '08': return 2 + if num == '05': + return 3 + if num == '07': + return 4 return 1000 + int(num) - elif re.search(r'cn-[a-z]+-[a-z]+', host): - return 2000 elif 'mcdn' in host: + return 2000 + elif re.search(r'cn-[a-z]+-[a-z]+', host): return 5000 else: return 10000 - url_info = sorted(codec['url_info'], key=sort_by_host) - urls = [i['host'] + codec['base_url'] + i['extra'] for i in url_info] + url_infos = sorted( + ({**i, 'base_url': c['base_url']} for c in codecs for i in c['url_info']), + key=sort_by_host, + ) + urls = [i['host'] + i['base_url'] + i['extra'] for i in url_infos] if not select_alternative: return urls[0] diff --git a/src/blrec/core/flv_stream_recorder_impl.py b/src/blrec/core/flv_stream_recorder_impl.py index d698262..6f43961 100644 --- a/src/blrec/core/flv_stream_recorder_impl.py +++ b/src/blrec/core/flv_stream_recorder_impl.py @@ -141,7 +141,7 @@ class FLVStreamRecorderImpl(StreamRecorderImpl, SupportDebugMixin): self._stream_parser, self._connection_error_handler, self._request_exception_handler, - flv_ops.process(sort_tags=True, trace=self._debug), + flv_ops.process(sort_tags=True), self._cutter, self._limiter, self._join_point_extractor, diff --git a/src/blrec/data/webapp/170.d0e14a28ee578d1f.js b/src/blrec/data/webapp/170.d0e14a28ee578d1f.js deleted file mode 100644 index d84dcee..0000000 --- a/src/blrec/data/webapp/170.d0e14a28ee578d1f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[170],{9170:(Ir,Pt,c)=>{c.r(Pt),c.d(Pt,{SettingsModule:()=>qr});var p=c(9808),r=c(4182),pt=c(7525),he=c(1945),_e=c(7484),l=c(4546),O=c(1047),D=c(6462),wt=c(6114),U=c(3868),t=c(5e3),dt=c(404),fe=c(925),et=c(226);let ze=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[et.vT,p.ez,fe.ud,dt.cg]]}),n})();var it=c(5197),_=c(7957),I=c(6042),H=c(647),St=c(6699),$=c(969),S=c(655),F=c(1721),ot=c(8929),xe=c(8514),gt=c(1086),Oe=c(6787),Me=c(591),be=c(2986),Ft=c(7545),at=c(7625),At=c(685),m=c(1894);const N=["*"];function Ne(n,o){1&n&&t.Hsn(0)}const Be=["nz-list-item-actions",""];function qe(n,o){}function Ue(n,o){1&n&&t._UZ(0,"em",3)}function Ie(n,o){if(1&n&&(t.TgZ(0,"li"),t.YNc(1,qe,0,0,"ng-template",1),t.YNc(2,Ue,1,0,"em",2),t.qZA()),2&n){const e=o.$implicit,i=o.last;t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngIf",!i)}}function Je(n,o){}const yt=function(n,o){return{$implicit:n,index:o}};function Qe(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Je,0,0,"ng-template",9),t.BQk()),2&n){const e=o.$implicit,i=o.index,a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,yt,e,i))}}function Ve(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Qe,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function Le(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzHeader)}}function Ye(n,o){if(1&n&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Le,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzHeader)}}function We(n,o){1&n&&t._UZ(0,"div"),2&n&&t.Udp("min-height",53,"px")}function Re(n,o){}function He(n,o){if(1&n&&(t.TgZ(0,"div",13),t.YNc(1,Re,0,0,"ng-template",9),t.qZA()),2&n){const e=o.$implicit,i=o.index,a=t.oxw(2);t.Q6J("nzSpan",a.nzGrid.span||null)("nzXs",a.nzGrid.xs||null)("nzSm",a.nzGrid.sm||null)("nzMd",a.nzGrid.md||null)("nzLg",a.nzGrid.lg||null)("nzXl",a.nzGrid.xl||null)("nzXXl",a.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,yt,e,i))}}function $e(n,o){if(1&n&&(t.TgZ(0,"div",11),t.YNc(1,He,2,12,"div",12),t.qZA()),2&n){const e=t.oxw();t.Q6J("nzGutter",e.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function Ge(n,o){if(1&n&&t._UZ(0,"nz-list-empty",14),2&n){const e=t.oxw();t.Q6J("nzNoResult",e.nzNoResult)}}function je(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzFooter)}}function Xe(n,o){if(1&n&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,je,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzFooter)}}function Ke(n,o){}function tn(n,o){}function en(n,o){if(1&n&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,tn,0,0,"ng-template",6),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzPagination)}}const nn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],on=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function an(n,o){if(1&n&&t._UZ(0,"ul",6),2&n){const e=t.oxw(2);t.Q6J("nzActions",e.nzActions)}}function rn(n,o){if(1&n&&(t.YNc(0,an,1,1,"ul",5),t.Hsn(1)),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzActions&&e.nzActions.length>0)}}function sn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzContent)}}function ln(n,o){if(1&n&&(t.ynx(0),t.YNc(1,sn,2,1,"ng-container",8),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzContent)}}function cn(n,o){if(1&n&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,ln,2,1,"ng-container",7)),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.nzContent)}}function gn(n,o){1&n&&t.Hsn(0,3)}function un(n,o){}function mn(n,o){}function pn(n,o){}function dn(n,o){}function hn(n,o){if(1&n&&(t.YNc(0,un,0,0,"ng-template",9),t.YNc(1,mn,0,0,"ng-template",9),t.YNc(2,pn,0,0,"ng-template",9),t.YNc(3,dn,0,0,"ng-template",9)),2&n){const e=t.oxw(),i=t.MAs(3),a=t.MAs(5),s=t.MAs(1);t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function _n(n,o){}function fn(n,o){}function Cn(n,o){}function vn(n,o){if(1&n&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,Cn,0,0,"ng-template",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra)}}function zn(n,o){}function xn(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,_n,0,0,"ng-template",9),t.YNc(3,fn,0,0,"ng-template",9),t.qZA(),t.YNc(4,vn,2,1,"nz-list-item-extra",7),t.YNc(5,zn,0,0,"ng-template",9),t.BQk()),2&n){const e=t.oxw(),i=t.MAs(3),a=t.MAs(1),s=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngIf",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}const On=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Mn=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let ft=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),kt=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item-action"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,5),2&e){let a;t.iGM(a=t.CRH())&&(i.templateRef=a.first)}},exportAs:["nzListItemAction"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,Ne,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),Dt=(()=>{class n{constructor(e,i){this.ngZone=e,this.cdr=i,this.nzActions=[],this.actions=[],this.destroy$=new ot.xQ,this.inputActionChanges$=new ot.xQ,this.contentChildrenChanges$=(0,xe.P)(()=>this.nzListItemActions?(0,gt.of)(null):this.ngZone.onStable.asObservable().pipe((0,be.q)(1),(0,Ft.w)(()=>this.contentChildrenChanges$))),(0,Oe.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,at.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(a=>a.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,kt,4),2&e){let s;t.iGM(s=t.CRH())&&(i.nzListItemActions=s)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[t.TTD],attrs:Be,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(e,i){1&e&&t.YNc(0,Ie,3,2,"li",0),2&e&&t.Q6J("ngForOf",i.actions)},directives:[p.sg,p.tP,p.O5],encapsulation:2,changeDetection:0}),n})(),Ct=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(e,i){1&e&&t._UZ(0,"nz-embed-empty",0),2&e&&t.Q6J("nzComponentName","list")("specificContent",i.nzNoResult)},directives:[At.gB],encapsulation:2,changeDetection:0}),n})(),vt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),zt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),xt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),Et=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),n})(),Ot=(()=>{class n{constructor(e){this.directionality=e,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new Me.X(this.nzItemLayout),this.destroy$=new ot.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,at.R)(this.destroy$)).subscribe(i=>{this.dir=i})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(e){e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(et.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,zt,5),t.Suo(a,xt,5),t.Suo(a,Et,5)),2&e){let s;t.iGM(s=t.CRH())&&(i.nzListFooterComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListPaginationComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListLoadMoreDirective=s.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(e,i){2&e&&t.ekj("ant-list-rtl","rtl"===i.dir)("ant-list-vertical","vertical"===i.nzItemLayout)("ant-list-lg","large"===i.nzSize)("ant-list-sm","small"===i.nzSize)("ant-list-split",i.nzSplit)("ant-list-bordered",i.nzBordered)("ant-list-loading",i.nzLoading)("ant-list-something-after-last-item",i.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[t.TTD],ngContentSelectors:on,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(e,i){if(1&e&&(t.F$t(nn),t.YNc(0,Ve,3,1,"ng-template",null,0,t.W1O),t.YNc(2,Ye,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,We,1,2,"div",3),t.YNc(7,$e,2,2,"div",4),t.YNc(8,Ge,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,Xe,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,Ke,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,en,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&e){const a=t.MAs(1);t.xp6(2),t.Q6J("ngIf",i.nzHeader),t.xp6(2),t.Q6J("nzSpinning",i.nzLoading),t.xp6(2),t.Q6J("ngIf",i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzGrid&&i.nzDataSource)("ngIfElse",a),t.xp6(1),t.Q6J("ngIf",!i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzFooter),t.xp6(2),t.Q6J("ngTemplateOutlet",i.nzLoadMore),t.xp6(2),t.Q6J("ngIf",i.nzPagination)}},directives:[vt,pt.W,Ct,zt,xt,p.sg,p.tP,p.O5,$.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,S.gn)([(0,F.yF)()],n.prototype,"nzBordered",void 0),(0,S.gn)([(0,F.yF)()],n.prototype,"nzLoading",void 0),(0,S.gn)([(0,F.yF)()],n.prototype,"nzSplit",void 0),n})(),Nt=(()=>{class n{constructor(e,i,a,s){this.parentComp=a,this.cdr=s,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,i.addClass(e.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(e=>{this.itemLayout=e,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Ot),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,ft,5),2&e){let s;t.iGM(s=t.CRH())&&(i.listItemExtraDirective=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("ant-list-item-no-flex",i.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:Mn,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(e,i){if(1&e&&(t.F$t(On),t.YNc(0,rn,2,1,"ng-template",null,0,t.W1O),t.YNc(2,cn,3,1,"ng-template",null,1,t.W1O),t.YNc(4,gn,1,0,"ng-template",null,2,t.W1O),t.YNc(6,hn,4,4,"ng-template",null,3,t.W1O),t.YNc(8,xn,6,4,"ng-container",4)),2&e){const a=t.MAs(7);t.xp6(8),t.Q6J("ngIf",i.isVerticalAndExtra)("ngIfElse",a)}},directives:[Dt,ft,p.O5,$.f,p.tP],encapsulation:2,changeDetection:0}),(0,S.gn)([(0,F.yF)()],n.prototype,"nzNoFlex",void 0),n})(),Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[et.vT,p.ez,pt.j,m.Jb,St.Rt,$.T,At.Xo]]}),n})();var ut=c(3677),wn=c(5737),J=c(592),Sn=c(8076),G=c(9439),Bt=c(4832);const qt=["*"];function Fn(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("nzType",e||"right")("nzRotate",i.nzActive?90:0)}}function An(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Fn,2,2,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExpandedIcon)}}function yn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzHeader)}}function Zn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzExtra)}}function kn(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Zn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}const Ut="collapse";let It=(()=>{class n{constructor(e,i,a){this.nzConfigService=e,this.cdr=i,this.directionality=a,this._nzModuleName=Ut,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new ot.xQ,this.nzConfigService.getConfigChangeEventForComponent(Ut).pipe((0,at.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,at.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(e){this.listOfNzCollapsePanelComponent.push(e)}removePanel(e){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(e),1)}click(e){this.nzAccordion&&!e.nzActive&&this.listOfNzCollapsePanelComponent.filter(i=>i!==e).forEach(i=>{i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),e.nzActive=!e.nzActive,e.nzActiveChange.emit(e.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(G.jY),t.Y36(t.sBO),t.Y36(et.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(e,i){2&e&&t.ekj("ant-collapse-icon-position-left","left"===i.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===i.nzExpandIconPosition)("ant-collapse-ghost",i.nzGhost)("ant-collapse-borderless",!i.nzBordered)("ant-collapse-rtl","rtl"===i.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:qt,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,S.gn)([(0,G.oS)(),(0,F.yF)()],n.prototype,"nzAccordion",void 0),(0,S.gn)([(0,G.oS)(),(0,F.yF)()],n.prototype,"nzBordered",void 0),(0,S.gn)([(0,G.oS)(),(0,F.yF)()],n.prototype,"nzGhost",void 0),n})();const Jt="collapsePanel";let Dn=(()=>{class n{constructor(e,i,a,s){this.nzConfigService=e,this.cdr=i,this.nzCollapseComponent=a,this.noAnimation=s,this._nzModuleName=Jt,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new ot.xQ,this.nzConfigService.getConfigChangeEventForComponent(Jt).pipe((0,at.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}clickHeader(){this.nzDisabled||this.nzCollapseComponent.click(this)}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzCollapseComponent.addPanel(this)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(G.jY),t.Y36(t.sBO),t.Y36(It,1),t.Y36(Bt.P,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(e,i){2&e&&t.ekj("ant-collapse-no-arrow",!i.nzShowArrow)("ant-collapse-item-active",i.nzActive)("ant-collapse-item-disabled",i.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:qt,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return i.clickHeader()}),t.YNc(1,An,2,1,"div",1),t.YNc(2,yn,2,1,"ng-container",2),t.YNc(3,kn,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&e&&(t.uIk("aria-expanded",i.nzActive),t.xp6(1),t.Q6J("ngIf",i.nzShowArrow),t.xp6(1),t.Q6J("nzStringTemplateOutlet",i.nzHeader),t.xp6(1),t.Q6J("ngIf",i.nzExtra),t.xp6(1),t.ekj("ant-collapse-content-active",i.nzActive),t.Q6J("@.disabled",null==i.noAnimation?null:i.noAnimation.nzNoAnimation)("@collapseMotion",i.nzActive?"expanded":"hidden"))},directives:[p.O5,$.f,H.Ls],encapsulation:2,data:{animation:[Sn.J_]},changeDetection:0}),(0,S.gn)([(0,F.yF)()],n.prototype,"nzActive",void 0),(0,S.gn)([(0,F.yF)()],n.prototype,"nzDisabled",void 0),(0,S.gn)([(0,G.oS)(),(0,F.yF)()],n.prototype,"nzShowArrow",void 0),n})(),En=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[et.vT,p.ez,H.PV,$.T,Bt.g]]}),n})();var Nn=c(4466),A=c(7221),y=c(7106),E=c(2306),Q=c(5278),Z=c(5136);let Qt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["output","logging","biliApi","header","danmaku","recorder","postprocessing","space"]).pipe((0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get settings:",a),this.notification.error("\u83b7\u53d6\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(Q.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var k=c(4850);let Vt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["emailNotification"]).pipe((0,k.U)(a=>a.emailNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get email notification settings:",a),this.notification.error("\u83b7\u53d6\u90ae\u4ef6\u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(Q.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Lt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["serverchanNotification"]).pipe((0,k.U)(a=>a.serverchanNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get ServerChan notification settings:",a),this.notification.error("\u83b7\u53d6 ServerChan \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(Q.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Yt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["pushdeerNotification"]).pipe((0,k.U)(a=>a.pushdeerNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get PushDeer notification settings:",a),this.notification.error("\u83b7\u53d6 pushdeer \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(Q.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Wt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["pushplusNotification"]).pipe((0,k.U)(a=>a.pushplusNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get pushplus notification settings:",a),this.notification.error("\u83b7\u53d6 pushplus \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(Q.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Rt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["telegramNotification"]).pipe((0,k.U)(a=>a.telegramNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get telegram notification settings:",a),this.notification.error("\u83b7\u53d6 telegram \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(Q.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ht=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["webhooks"]).pipe((0,k.U)(a=>a.webhooks),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get webhook settings:",a),this.notification.error("\u83b7\u53d6 Webhook \u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(Q.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var f=c(2302),Mt=c(2198),$t=c(2014),Bn=c(7770),qn=c(353),Gt=c(4704),x=c(2340);const z="RouterScrollService",jt="defaultViewport",Xt="customViewport";let Un=(()=>{class n{constructor(e,i,a,s){this.router=e,this.activatedRoute=i,this.viewportScroller=a,this.logger=s,this.addQueue=[],this.addBeforeNavigationQueue=[],this.removeQueue=[],this.routeStrategies=[],this.scrollDefaultViewport=!0,this.customViewportToScroll=null,x.N.traceRouterScrolling&&this.logger.trace(`${z}:: constructor`),x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Subscribing to router events`);const g=this.router.events.pipe((0,Mt.h)(u=>u instanceof f.OD||u instanceof f.m2),(0,$t.R)((u,d)=>{var P,w;x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Updating the known scroll positions`);const W=Object.assign({},u.positions);return d instanceof f.OD&&this.scrollDefaultViewport&&(x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Storing the scroll position of the default viewport`),W[`${d.id}-${jt}`]=this.viewportScroller.getScrollPosition()),d instanceof f.OD&&this.customViewportToScroll&&(x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Storing the scroll position of the custom viewport`),W[`${d.id}-${Xt}`]=this.customViewportToScroll.scrollTop),{event:d,positions:W,trigger:d instanceof f.OD?d.navigationTrigger:u.trigger,idToRestore:d instanceof f.OD&&d.restoredState&&d.restoredState.navigationId+1||u.idToRestore,routeData:null===(w=null===(P=this.activatedRoute.firstChild)||void 0===P?void 0:P.routeConfig)||void 0===w?void 0:w.data}}),(0,Mt.h)(u=>!!u.trigger),(0,Bn.QV)(qn.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const d=this.routeStrategies.find(R=>u.event.url.indexOf(R.partialRoute)>-1),P=d&&d.behaviour===Gt.g.KEEP_POSITION||!1,w=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Gt.g.KEEP_POSITION||!1,W=P||w;if(u.event instanceof f.m2){this.processRemoveQueue(this.removeQueue);const R=u.trigger&&"imperative"===u.trigger||!1,de=!W||R;x.N.traceRouterScrolling&&(this.logger.trace(`${z}:: Existing strategy with keep position behavior? `,P),this.logger.trace(`${z}:: Route data with keep position behavior? `,w),this.logger.trace(`${z}:: Imperative trigger? `,R),this.logger.debug(`${z}:: Should scroll? `,de)),de?(this.scrollDefaultViewport&&(x.N.traceRouterScrolling&&this.logger.debug(`${z}:: Scrolling the default viewport`),this.viewportScroller.scrollToPosition([0,0])),this.customViewportToScroll&&(x.N.traceRouterScrolling&&this.logger.debug(`${z}:: Scrolling a custom viewport: `,this.customViewportToScroll),this.customViewportToScroll.scrollTop=0)):(x.N.traceRouterScrolling&&this.logger.debug(`${z}:: Not scrolling`),this.scrollDefaultViewport&&this.viewportScroller.scrollToPosition(u.positions[`${u.idToRestore}-${jt}`]),this.customViewportToScroll&&(this.customViewportToScroll.scrollTop=u.positions[`${u.idToRestore}-${Xt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(Ur=>Ur.partialRoute),!0),this.processAddQueue(this.addQueue),this.addQueue=[],this.removeQueue=[],this.addBeforeNavigationQueue=[]}else this.processAddQueue(this.addBeforeNavigationQueue)})}addStrategyOnceBeforeNavigationForPartialRoute(e,i){x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Adding a strategy once for before navigation towards [${e}]: `,i),this.addBeforeNavigationQueue.push({partialRoute:e,behaviour:i,onceBeforeNavigation:!0})}addStrategyForPartialRoute(e,i){x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Adding a strategy for partial route: [${e}]`,i),this.addQueue.push({partialRoute:e,behaviour:i})}removeStrategyForPartialRoute(e){x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Removing strategory for: [${e}]: `),this.removeQueue.push(e)}setCustomViewportToScroll(e){x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Setting a custom viewport to scroll: `,e),this.customViewportToScroll=e}disableScrollDefaultViewport(){x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Disabling scrolling the default viewport`),this.scrollDefaultViewport=!1}enableScrollDefaultViewPort(){x.N.traceRouterScrolling&&this.logger.trace(`${z}:: Enabling scrolling the default viewport`),this.scrollDefaultViewport=!0}processAddQueue(e){for(const i of e)-1===this.routeStrategyPosition(i.partialRoute)&&this.routeStrategies.push(i)}processRemoveQueue(e,i=!1){for(const a of e){const s=this.routeStrategyPosition(a);!i&&s>-1&&this.routeStrategies[s].onceBeforeNavigation||s>-1&&this.routeStrategies.splice(s,1)}}routeStrategyPosition(e){return this.routeStrategies.map(i=>i.partialRoute).indexOf(e)}ngOnDestroy(){x.N.traceRouterScrolling&&this.logger.trace(`${z}:: ngOnDestroy`),this.scrollPositionRestorationSubscription&&this.scrollPositionRestorationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(f.F0),t.LFG(f.gz),t.LFG(p.EM),t.LFG(E.Kf))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var V=c(4670),In=c(3496),Jn=c(1149),Qn=c(7242);const M=function Vn(n,o){var e={};return o=(0,Qn.Z)(o,3),(0,Jn.Z)(n,function(i,a,s){(0,In.Z)(e,a,o(i,a,s))}),e};var j=c(9089),mt=c(2994),Ln=c(4884),Yn=c(4116),Kt=c(4825),te=c(4177),ee=c(8706),Wn=c(5202),Rn=c(1986),Hn=c(7583),Xn=Object.prototype.hasOwnProperty;var ei=c(1854),ni=c(2134),bt=c(9727);function b(n){const o="result"in n;return M(n.diff,()=>o)}let T=(()=>{class n{constructor(e,i){this.message=e,this.settingService=i}syncSettings(e,i,a){return a.pipe((0,$t.R)(([,s],g)=>[s,g,(0,ni.e5)(g,s)],[i,i,{}]),(0,Mt.h)(([,,s])=>!function Kn(n){if(null==n)return!0;if((0,ee.Z)(n)&&((0,te.Z)(n)||"string"==typeof n||"function"==typeof n.splice||(0,Wn.Z)(n)||(0,Hn.Z)(n)||(0,Kt.Z)(n)))return!n.length;var o=(0,Yn.Z)(n);if("[object Map]"==o||"[object Set]"==o)return!n.size;if((0,Rn.Z)(n))return!(0,Ln.Z)(n).length;for(var e in n)if(Xn.call(n,e))return!1;return!0}(s)),(0,Ft.w)(([s,g,u])=>this.settingService.changeSettings({[e]:u}).pipe((0,y.X)(3,300),(0,mt.b)(d=>{console.assert((0,ei.Z)(d[e],g),"result settings should equal current settings",{curr:g,result:d[e]})},d=>{this.message.error(`\u8bbe\u7f6e\u51fa\u9519: ${d.message}`)}),(0,k.U)(d=>({prev:s,curr:g,diff:u,result:d[e]})),(0,A.K)(d=>(0,gt.of)({prev:s,curr:g,diff:u,error:d})))),(0,mt.b)(s=>console.debug(`${e} settings sync detail:`,s)))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(bt.dD),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=c(8737),L=(()=>{return(n=L||(L={}))[n.EACCES=13]="EACCES",n[n.ENOTDIR=20]="ENOTDIR",L;var n})(),ii=c(520);const oi=x.N.apiUrl;let ne=(()=>{class n{constructor(e){this.http=e}validateDir(e){return this.http.post(oi+"/api/v1/validation/dir",{path:e})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ii.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ai(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function ri(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function si(n,o){1&n&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function li(n,o){1&n&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function ci(n,o){if(1&n&&(t.YNc(0,ai,2,0,"ng-container",6),t.YNc(1,ri,2,0,"ng-container",6),t.YNc(2,si,2,0,"ng-container",6),t.YNc(3,li,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",e.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",e.hasError("failedToValidate"))}}function gi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,ci,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}let ui=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.validationService=a,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.outDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,k.U)(g=>{switch(g.code){case L.ENOTDIR:return{error:!0,notADirectory:!0};case L.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,A.K)(()=>(0,gt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.group({outDir:["",[r.kI.required],[this.outDirAsyncValidator]]})}get control(){return this.settingsForm.get("outDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(ne))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-outdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u9a8c...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","outDir"],["errorTip",""],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,gi,7,2,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var rt=c(2643),B=c(2683);function mi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function pi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function di(n,o){if(1&n&&(t.YNc(0,mi,2,0,"ng-container",12),t.YNc(1,pi,2,0,"ng-container",12)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function hi(n,o){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.desc)}}function _i(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"input",5),t.YNc(5,di,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.TgZ(7,"nz-collapse"),t.TgZ(8,"nz-collapse-panel",7),t.TgZ(9,"nz-table",8,9),t.TgZ(11,"thead"),t.TgZ(12,"tr"),t.TgZ(13,"th"),t._uU(14,"\u53d8\u91cf"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"\u8bf4\u660e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"tbody"),t.YNc(18,hi,5,2,"tr",10),t.qZA(),t.qZA(),t.TgZ(19,"p",11),t.TgZ(20,"strong"),t._uU(21," \u6ce8\u610f\uff1a\u53d8\u91cf\u540d\u5fc5\u987b\u653e\u5728\u82b1\u62ec\u53f7\u4e2d\uff01\u4f7f\u7528\u65e5\u671f\u65f6\u95f4\u53d8\u91cf\u4ee5\u907f\u514d\u547d\u540d\u51b2\u7a81\uff01 "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.MAs(10),a=t.oxw();t.xp6(1),t.Q6J("formGroup",a.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",a.pathTemplatePattern),t.xp6(5),t.Q6J("nzData",a.pathTemplateVariables)("nzPageSize",11)("nzShowPagination",!1)("nzSize","small"),t.xp6(9),t.Q6J("ngForOf",i.data)}}function fi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.pathTemplateDefault),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let Ci=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.pathTemplatePattern=h._m,this.pathTemplateDefault=h.ip,this.pathTemplateVariables=h.Dr,this.settingsForm=e.group({pathTemplate:["",[r.kI.required,r.kI.pattern(this.pathTemplatePattern)]]})}get control(){return this.settingsForm.get("pathTemplate")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}restoreDefault(){this.control.setValue(this.pathTemplateDefault)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-path-template-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u8def\u5f84\u6a21\u677f","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","pathTemplate",3,"pattern"],["errorTip",""],["nzHeader","\u6a21\u677f\u53d8\u91cf\u8bf4\u660e"],[3,"nzData","nzPageSize","nzShowPagination","nzSize"],["table",""],[4,"ngFor","ngForOf"],[1,"footnote"],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,_i,22,8,"ng-container",1),t.YNc(2,fi,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,r.c5,p.O5,It,Dn,J.N8,J.Om,J.$Z,J.Uo,J._C,J.p0,p.sg,_.Uh,I.ix,rt.dQ,B.w],styles:[".footnote[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:0}"],changeDetection:0}),n})();var vi=c(6457),zi=c(4501);function xi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u5927\u5c0f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1a\u6570\u5b57 + \u5355\u4f4d(GB, MB, KB, B) "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"0 B"),t.qZA(),t._UZ(8,"br"),t.qZA())}function Oi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u65f6\u957f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1aHH:MM:SS "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"00:00:00"),t.qZA(),t._UZ(8,"br"),t.qZA())}let Mi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({outDir:[""],pathTemplate:[""],filesizeLimit:["",[r.kI.required,r.kI.min(0),r.kI.max(0xf9ff5c28f5)]],durationLimit:["",[r.kI.required,r.kI.min(0),r.kI.max(359999)]]})}get outDirControl(){return this.settingsForm.get("outDir")}get pathTemplateControl(){return this.settingsForm.get("pathTemplate")}get filesizeLimitControl(){return this.settingsForm.get("filesizeLimit")}get durationLimitControl(){return this.settingsForm.get("durationLimit")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("output",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-output-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:15,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["outDirEditDialog",""],["pathTemplateEditDialog",""],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["filesizeLimitTip",""],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","filesizeLimit"],["durationLimitTip",""],["formControlName","durationLimit"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-outdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.outDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-path-template-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.pathTemplateControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"nz-form-item",8),t.TgZ(18,"nz-form-label",9),t._uU(19,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.YNc(20,xi,9,0,"ng-template",null,10,t.W1O),t.TgZ(22,"nz-form-control",11),t._UZ(23,"app-input-filesize",12),t.qZA(),t.qZA(),t.TgZ(24,"nz-form-item",8),t.TgZ(25,"nz-form-label",9),t._uU(26,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.YNc(27,Oi,9,0,"ng-template",null,13,t.W1O),t.TgZ(29,"nz-form-control",11),t._UZ(30,"app-input-duration",14),t.qZA(),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(21),s=t.MAs(28);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.outDir?i.outDirControl:"warning"),t.xp6(2),t.hij("",i.outDirControl.value," "),t.xp6(1),t.Q6J("value",i.outDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.pathTemplate?i.pathTemplateControl:"warning"),t.xp6(2),t.hij("",i.pathTemplateControl.value," "),t.xp6(1),t.Q6J("value",i.pathTemplateControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.filesizeLimit?i.filesizeLimitControl:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.durationLimit?i.durationLimitControl:"warning")}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,ui,Ci,vi.i,r.JJ,r.u,zi.q],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var q=c(3523);let Y=(()=>{class n{constructor(){}get actionable(){var e;return(null===(e=this.directive)||void 0===e?void 0:e.valueAccessor)instanceof D.i}onClick(e){var i;e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),(null===(i=this.directive)||void 0===i?void 0:i.valueAccessor)instanceof D.i&&this.directive.control.setValue(!this.directive.control.value))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","appSwitchActionable",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,r.u,5),2&e){let s;t.iGM(s=t.CRH())&&(i.directive=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("click",function(s){return i.onClick(s)}),2&e&&t.ekj("actionable",i.actionable)}}),n})();function bi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function Ti(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function Pi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",2),t._uU(2,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(3,Ti,8,0,"ng-template",null,19,t.W1O),t.TgZ(5,"nz-form-control",4),t._UZ(6,"nz-select",20),t.qZA(),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw();t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.fmp4StreamTimeout?i.fmp4StreamTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.fmp4StreamTimeoutOptions)}}function wi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u6807\u51c6\u6a21\u5f0f: \u5bf9\u4e0b\u8f7d\u7684\u6d41\u6570\u636e\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(2,"br"),t._uU(3," \u539f\u59cb\u6a21\u5f0f: \u76f4\u63a5\u4e0b\u8f7d\u6d41\u6570\u636e\uff0c\u6ca1\u6709\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u4e0d\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(4,"br"),t.qZA())}function Si(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",2),t._uU(2,"\u5f55\u5236\u6a21\u5f0f"),t.qZA(),t.YNc(3,wi,5,0,"ng-template",null,21,t.W1O),t.TgZ(5,"nz-form-control",4),t._UZ(6,"nz-select",22),t.qZA(),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw();t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordingMode?i.recordingModeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.recordingModeOptions)}}function Fi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function Ai(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",23),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function yi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",24),t._uU(2,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(3,"nz-form-control",4),t._UZ(4,"nz-select",25),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("nzWarningTip",e.syncStatus.readTimeout?"\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01":e.syncFailedWarningTip)("nzValidateStatus",e.syncStatus.readTimeout&&e.readTimeoutControl.value<=3?e.readTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",e.readTimeoutOptions)}}function Zi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",26),t._uU(2,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(3,"nz-form-control",4),t._UZ(4,"nz-select",27),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("nzWarningTip",e.syncFailedWarningTip)("nzValidateStatus",e.syncStatus.bufferSize?e.bufferSizeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",e.bufferOptions)}}let ki=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.streamFormatOptions=(0,q.Z)(h.tp),this.recordingModeOptions=(0,q.Z)(h.kV),this.fmp4StreamTimeoutOptions=(0,q.Z)(h.D4),this.qualityOptions=(0,q.Z)(h.O6),this.readTimeoutOptions=(0,q.Z)(h.D4),this.disconnectionTimeoutOptions=(0,q.Z)(h.$w),this.bufferOptions=(0,q.Z)(h.Rc),this.coverSaveStrategies=(0,q.Z)(h.J_),this.settingsForm=e.group({streamFormat:[""],recordingMode:[""],qualityNumber:[""],fmp4StreamTimeout:[""],readTimeout:[""],disconnectionTimeout:[""],bufferSize:[""],saveCover:[""],coverSaveStrategy:[""]})}get streamFormatControl(){return this.settingsForm.get("streamFormat")}get recordingModeControl(){return this.settingsForm.get("recordingMode")}get qualityNumberControl(){return this.settingsForm.get("qualityNumber")}get fmp4StreamTimeoutControl(){return this.settingsForm.get("fmp4StreamTimeout")}get readTimeoutControl(){return this.settingsForm.get("readTimeout")}get disconnectionTimeoutControl(){return this.settingsForm.get("disconnectionTimeout")}get bufferSizeControl(){return this.settingsForm.get("bufferSize")}get saveCoverControl(){return this.settingsForm.get("saveCover")}get coverSaveStrategyControl(){return this.settingsForm.get("coverSaveStrategy")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("recorder",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-recorder-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:35,vars:22,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["streamFormatTip",""],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","streamFormat",3,"nzOptions"],["class","setting-item",4,"ngIf"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["formControlName","qualityNumber",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","saveCover"],["coverSaveStrategyTip",""],[1,"setting-control","radio",3,"nzWarningTip","nzValidateStatus"],["formControlName","coverSaveStrategy",3,"nzDisabled"],[4,"ngFor","ngForOf"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["formControlName","disconnectionTimeout",3,"nzOptions"],["fmp4StreamTimeoutTip",""],["formControlName","fmp4StreamTimeout",3,"nzOptions"],["recordingModeTip",""],["formControlName","recordingMode",3,"nzOptions"],["nz-radio-button","",3,"nzValue"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["formControlName","readTimeout",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["formControlName","bufferSize",3,"nzOptions"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(4,bi,14,0,"ng-template",null,3,t.W1O),t.TgZ(6,"nz-form-control",4),t._UZ(7,"nz-select",5),t.qZA(),t.qZA(),t.YNc(8,Pi,7,4,"nz-form-item",6),t.YNc(9,Si,7,4,"nz-form-item",6),t.TgZ(10,"nz-form-item",1),t.TgZ(11,"nz-form-label",7),t._uU(12,"\u753b\u8d28"),t.qZA(),t.TgZ(13,"nz-form-control",4),t._UZ(14,"nz-select",8),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",9),t.TgZ(16,"nz-form-label",10),t._uU(17,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(18,"nz-form-control",11),t._UZ(19,"nz-switch",12),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",1),t.TgZ(21,"nz-form-label",2),t._uU(22,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(23,Fi,8,0,"ng-template",null,13,t.W1O),t.TgZ(25,"nz-form-control",14),t.TgZ(26,"nz-radio-group",15),t.YNc(27,Ai,3,2,"ng-container",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(28,yi,5,3,"nz-form-item",6),t.TgZ(29,"nz-form-item",1),t.TgZ(30,"nz-form-label",17),t._uU(31,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(32,"nz-form-control",4),t._UZ(33,"nz-select",18),t.qZA(),t.qZA(),t.YNc(34,Zi,5,3,"nz-form-item",6),t.qZA()),2&e){const a=t.MAs(5),s=t.MAs(24);t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.streamFormat?i.streamFormatControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.streamFormatOptions),t.xp6(1),t.Q6J("ngIf","fmp4"===i.streamFormatControl.value),t.xp6(1),t.Q6J("ngIf","fmp4"===i.streamFormatControl.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.qualityNumber?i.qualityNumberControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.qualityOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveCover?i.saveCoverControl:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.coverSaveStrategy?i.coverSaveStrategyControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.saveCoverControl.value),t.xp6(1),t.Q6J("ngForOf",i.coverSaveStrategies),t.xp6(1),t.Q6J("ngIf","flv"===i.streamFormatControl.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.disconnectionTimeout?i.disconnectionTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.disconnectionTimeoutOptions),t.xp6(1),t.Q6J("ngIf","flv"===i.streamFormatControl.value||"fmp4"===i.streamFormatControl.value&&"standard"===i.recordingModeControl.value)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,it.Vq,r.JJ,r.u,p.O5,Y,D.i,U.Dg,p.sg,U.Of,U.Bq],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Di=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({danmuUname:[""],recordGiftSend:[""],recordFreeGifts:[""],recordGuardBuy:[""],recordSuperChat:[""],saveRawDanmaku:[""]})}get danmuUnameControl(){return this.settingsForm.get("danmuUname")}get recordGiftSendControl(){return this.settingsForm.get("recordGiftSend")}get recordFreeGiftsControl(){return this.settingsForm.get("recordFreeGifts")}get recordGuardBuyControl(){return this.settingsForm.get("recordGuardBuy")}get recordSuperChatControl(){return this.settingsForm.get("recordSuperChat")}get saveRawDanmakuControl(){return this.settingsForm.get("saveRawDanmaku")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("danmaku",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-danmaku-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:13,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recordGiftSend"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordFreeGifts"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordGuardBuy"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordSuperChat"],["nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["formControlName","danmuUname"],["nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["formControlName","saveRawDanmaku"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",7),t._uU(13,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",9),t._uU(18,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",10),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",1),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(24,"nz-form-control",3),t._UZ(25,"nz-switch",12),t.qZA(),t.qZA(),t.TgZ(26,"nz-form-item",1),t.TgZ(27,"nz-form-label",13),t._uU(28,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(29,"nz-form-control",3),t._UZ(30,"nz-switch",14),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGiftSend?i.recordGiftSendControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordFreeGifts?i.recordFreeGiftsControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGuardBuy?i.recordGuardBuyControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordSuperChat?i.recordSuperChatControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.danmuUname?i.danmuUnameControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveRawDanmaku?i.saveRawDanmakuControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ei(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function Ni(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",13),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}let Bi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.deleteStrategies=h.rc,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({injectExtraMetadata:[""],remuxToMp4:[""],deleteSource:[""]})}get injectExtraMetadataControl(){return this.settingsForm.get("injectExtraMetadata")}get remuxToMp4Control(){return this.settingsForm.get("remuxToMp4")}get deleteSourceControl(){return this.settingsForm.get("deleteSource")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("postprocessing",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-post-processing-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:19,vars:11,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","injectExtraMetadata",3,"nzDisabled"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["formControlName","remuxToMp4"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["deleteSourceTip",""],[1,"setting-control","radio",3,"nzWarningTip","nzValidateStatus"],["formControlName","deleteSource",3,"nzDisabled"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"\u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",7),t.TgZ(12,"nz-form-label",8),t._uU(13,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(14,Ei,7,0,"ng-template",null,9,t.W1O),t.TgZ(16,"nz-form-control",10),t.TgZ(17,"nz-radio-group",11),t.YNc(18,Ni,3,2,"ng-container",12),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(15);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.injectExtraMetadata?i.injectExtraMetadataControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",i.remuxToMp4Control.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.remuxToMp4?i.remuxToMp4Control:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.deleteSource?i.deleteSourceControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.remuxToMp4Control.value),t.xp6(1),t.Q6J("ngForOf",i.deleteStrategies)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u,U.Dg,p.sg,U.Of,U.Bq],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),qi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.intervalOptions=[{label:"\u4e0d\u68c0\u6d4b",value:0},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],this.thresholdOptions=[{label:"1 GB",value:1024**3},{label:"3 GB",value:1024**3*3},{label:"5 GB",value:1024**3*5},{label:"10 GB",value:1024**3*10},{label:"20 GB",value:1024**3*20}],this.settingsForm=e.group({recycleRecords:[""],checkInterval:[""],spaceThreshold:[""]})}get recycleRecordsControl(){return this.settingsForm.get("recycleRecords")}get checkIntervalControl(){return this.settingsForm.get("checkInterval")}get spaceThresholdControl(){return this.settingsForm.get("spaceThreshold")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("space",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-disk-space-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:16,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","checkInterval",3,"nzOptions"],["formControlName","spaceThreshold",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recycleRecords"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u95f4\u9694"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-select",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u9608\u503c"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-select",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",6),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u7a7a\u95f4\u4e0d\u8db3\u5220\u9664\u65e7\u5f55\u64ad\u6587\u4ef6"),t.qZA(),t.TgZ(14,"nz-form-control",7),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.checkInterval?i.checkIntervalControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.intervalOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.spaceThreshold?i.spaceThresholdControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.thresholdOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recycleRecords?i.recycleRecordsControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,it.Vq,r.JJ,r.u,Y,D.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ui(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function Ii(n,o){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u65e0\u6548 "),t.BQk())}function Ji(n,o){if(1&n&&(t.YNc(0,Ui,2,0,"ng-container",7),t.YNc(1,Ii,2,0,"ng-container",7)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Qi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"input",5),t.YNc(5,Ji,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}function Vi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.defaultBaseApiUrl),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let Li=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.defaultBaseApiUrl=h.QL,this.settingsForm=e.group({baseApiUrl:["",[r.kI.required,r.kI.pattern(h.yE)]]})}get control(){return this.settingsForm.get("baseApiUrl")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}restoreDefault(){this.control.setValue(this.defaultBaseApiUrl)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-base-api-url-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539 BASE API URL","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","baseApiUrl"],["errorTip",""],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzDanger","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,Qi,7,2,"ng-container",1),t.YNc(2,Vi,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,_.Uh,I.ix,rt.dQ,B.w],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Yi(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function Wi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u65e0\u6548 "),t.BQk())}function Ri(n,o){if(1&n&&(t.YNc(0,Yi,2,0,"ng-container",7),t.YNc(1,Wi,2,0,"ng-container",7)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Hi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"input",5),t.YNc(5,Ri,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}function $i(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.defaultBaseLiveApiUrl),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let Gi=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.defaultBaseLiveApiUrl=h.gZ,this.settingsForm=e.group({baseLiveApiUrl:["",[r.kI.required,r.kI.pattern(h.yE)]]})}get control(){return this.settingsForm.get("baseLiveApiUrl")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}restoreDefault(){this.control.setValue(this.defaultBaseLiveApiUrl)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-base-live-api-url-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539 BASE LIVE API URL","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","baseLiveApiUrl"],["errorTip",""],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzDanger","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,Hi,7,2,"ng-container",1),t.YNc(2,$i,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,_.Uh,I.ix,rt.dQ,B.w],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function ji(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function Xi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u65e0\u6548 "),t.BQk())}function Ki(n,o){if(1&n&&(t.YNc(0,ji,2,0,"ng-container",7),t.YNc(1,Xi,2,0,"ng-container",7)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function to(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"input",5),t.YNc(5,Ki,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}function eo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.defaultBasePlayInfoApiUrl),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let no=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.defaultBasePlayInfoApiUrl=h.gZ,this.settingsForm=e.group({basePlayInfoApiUrl:["",[r.kI.required,r.kI.pattern(h.yE)]]})}get control(){return this.settingsForm.get("basePlayInfoApiUrl")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}restoreDefault(){this.control.setValue(this.defaultBasePlayInfoApiUrl)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-base-play-info-api-url-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539 BASE PLAY INFO API URL","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","basePlayInfoApiUrl"],["errorTip",""],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzDanger","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,to,7,2,"ng-container",1),t.YNc(2,eo,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,_.Uh,I.ix,rt.dQ,B.w],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function io(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1,"\u4e3b\u7ad9 API \u7684 BASE URL"),t.qZA())}function oo(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1,"\u76f4\u64ad API (getRoomPlayInfo \u9664\u5916) \u7684 BASE URL"),t.qZA())}function ao(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1,"\u76f4\u64ad API getRoomPlayInfo \u7684 BASE URL"),t.qZA())}let ro=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({baseApiUrl:[""],baseLiveApiUrl:[""],basePlayInfoApiUrl:[""]})}get baseApiUrlControl(){return this.settingsForm.get("baseApiUrl")}get baseLiveApiUrlControl(){return this.settingsForm.get("baseLiveApiUrl")}get basePlayInfoApiUrlControl(){return this.settingsForm.get("basePlayInfoApiUrl")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("biliApi",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-bili-api-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:16,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label",3,"nzTooltipTitle"],["baseApiUrlTip",""],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["baseApiUrlEditDialog",""],["baseLiveApiUrlTip",""],["baseLiveApiUrlEditDialog",""],["basePalyInfoApiUrlTip",""],["basePlayInfoApiUrlEditDialog",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(10).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"BASE API URL"),t.qZA(),t.YNc(4,io,2,0,"ng-template",null,3,t.W1O),t.TgZ(6,"nz-form-control",4),t.TgZ(7,"nz-form-text",5),t._uU(8),t.qZA(),t.TgZ(9,"app-base-api-url-edit-dialog",6,7),t.NdJ("confirm",function(g){return i.baseApiUrlControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(20).open()}),t.TgZ(12,"nz-form-label",2),t._uU(13,"BASE LIVE API URL"),t.qZA(),t.YNc(14,oo,2,0,"ng-template",null,8,t.W1O),t.TgZ(16,"nz-form-control",4),t.TgZ(17,"nz-form-text",5),t._uU(18),t.qZA(),t.TgZ(19,"app-base-live-api-url-edit-dialog",6,9),t.NdJ("confirm",function(g){return i.baseLiveApiUrlControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(30).open()}),t.TgZ(22,"nz-form-label",2),t._uU(23,"BASE PLAY INFO API URL"),t.qZA(),t.YNc(24,ao,2,0,"ng-template",null,10,t.W1O),t.TgZ(26,"nz-form-control",4),t.TgZ(27,"nz-form-text",5),t._uU(28),t.qZA(),t.TgZ(29,"app-base-play-info-api-url-edit-dialog",6,11),t.NdJ("confirm",function(g){return i.basePlayInfoApiUrlControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(5),s=t.MAs(15),g=t.MAs(25);t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.baseApiUrl?i.baseApiUrlControl:"warning"),t.xp6(2),t.hij("",i.baseApiUrlControl.value," "),t.xp6(1),t.Q6J("value",i.baseApiUrlControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.baseLiveApiUrl?i.baseLiveApiUrlControl:"warning"),t.xp6(2),t.hij("",i.baseLiveApiUrlControl.value," "),t.xp6(1),t.Q6J("value",i.baseLiveApiUrlControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",g),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.basePlayInfoApiUrl?i.basePlayInfoApiUrlControl:"warning"),t.xp6(2),t.hij("",i.basePlayInfoApiUrlControl.value," "),t.xp6(1),t.Q6J("value",i.basePlayInfoApiUrlControl.value)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,Li,Gi,no],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function so(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function lo(n,o){1&n&&t.YNc(0,so,2,0,"ng-container",6),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function co(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.YNc(5,lo,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",i.warningTip)("nzValidateStatus",i.control.valid&&i.control.value.trim()!==i.value?"warning":i.control)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)}}let go=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=e.group({userAgent:["",[r.kI.required]]})}get control(){return this.settingsForm.get("userAgent")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-agent-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 User Agent","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["required","","nz-input","","formControlName","userAgent",3,"rows"],["errorTip",""],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,co,7,5,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function uo(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",e.warningTip)("nzValidateStatus",e.control.valid&&e.control.value.trim()!==e.value?"warning":e.control),t.xp6(1),t.Q6J("rows",5)}}let mo=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=e.group({cookie:[""]})}get control(){return this.settingsForm.get("cookie")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-cookie-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 Cookie","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus"],["wrap","soft","nz-input","","formControlName","cookie",3,"rows"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,uo,5,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),po=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({userAgent:["",[r.kI.required]],cookie:[""]})}get userAgentControl(){return this.settingsForm.get("userAgent")}get cookieControl(){return this.settingsForm.get("cookie")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("header",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-header-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:17,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["userAgentEditDialog",""],["cookieEditDialog",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"User Agent"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-user-agent-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.userAgentControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"Cookie"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-cookie-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.cookieControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.userAgent?i.userAgentControl:"warning"),t.xp6(2),t.hij("",i.userAgentControl.value," "),t.xp6(1),t.Q6J("value",i.userAgentControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.cookie?i.cookieControl:"warning"),t.xp6(2),t.hij("",i.cookieControl.value," "),t.xp6(1),t.Q6J("value",i.cookieControl.value))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,go,mo],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var ho=Math.ceil,_o=Math.max;var vo=c(3093),ie=c(6667),st=c(1999);var Oo=/\s/;var To=/^\s+/;const wo=function Po(n){return n&&n.slice(0,function Mo(n){for(var o=n.length;o--&&Oo.test(n.charAt(o)););return o}(n)+1).replace(To,"")};var So=c(6460),Fo=/^[-+]0x[0-9a-f]+$/i,Ao=/^0b[01]+$/i,yo=/^0o[0-7]+$/i,Zo=parseInt;const Tt=function No(n){return n?1/0===(n=function ko(n){if("number"==typeof n)return n;if((0,So.Z)(n))return NaN;if((0,st.Z)(n)){var o="function"==typeof n.valueOf?n.valueOf():n;n=(0,st.Z)(o)?o+"":o}if("string"!=typeof n)return 0===n?n:+n;n=wo(n);var e=Ao.test(n);return e||yo.test(n)?Zo(n.slice(2),e?2:8):Fo.test(n)?NaN:+n}(n))||-1/0===n?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0},re=function Bo(n){return function(o,e,i){return i&&"number"!=typeof i&&function zo(n,o,e){if(!(0,st.Z)(e))return!1;var i=typeof o;return!!("number"==i?(0,ee.Z)(e)&&(0,ie.Z)(o,e.length):"string"==i&&o in e)&&(0,vo.Z)(e[o],n)}(o,e,i)&&(e=i=void 0),o=Tt(o),void 0===e?(e=o,o=0):e=Tt(e),function fo(n,o,e,i){for(var a=-1,s=_o(ho((o-n)/(e||1)),0),g=Array(s);s--;)g[i?s:++a]=n,n+=e;return g}(o,e,i=void 0===i?o{class n{constructor(e,i,a){this.changeDetector=i,this.validationService=a,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.logDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,k.U)(g=>{switch(g.code){case L.ENOTDIR:return{error:!0,notADirectory:!0};case L.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,A.K)(()=>(0,gt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.group({logDir:["",[r.kI.required],[this.logDirAsyncValidator]]})}get control(){return this.settingsForm.get("logDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(ne))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-logdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u8bc1...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","logDir"],["errorTip",""],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Lo,7,2,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Wo=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.logLevelOptions=[{label:"VERBOSE",value:"NOTSET"},{label:"DEBUG",value:"DEBUG"},{label:"INFO",value:"INFO"},{label:"WARNING",value:"WARNING"},{label:"ERROR",value:"ERROR"},{label:"CRITICAL",value:"CRITICAL"}],this.maxBytesOptions=re(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=re(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=e.group({logDir:[""],consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get logDirControl(){return this.settingsForm.get("logDir")}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("logging",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-logging-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:24,vars:14,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["logDirEditDialog",""],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","consoleLogLevel",3,"nzOptions"],[1,"setting-item"],["formControlName","maxBytes",3,"nzOptions"],["formControlName","backupCount",3,"nzOptions"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-logdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.logDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",7),t.TgZ(10,"nz-form-label",8),t._uU(11,"\u7ec8\u7aef\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b"),t.qZA(),t.TgZ(12,"nz-form-control",9),t._UZ(13,"nz-select",10),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",11),t.TgZ(15,"nz-form-label",8),t._uU(16,"\u65e5\u5fd7\u6587\u4ef6\u5206\u5272\u5927\u5c0f"),t.qZA(),t.TgZ(17,"nz-form-control",9),t._UZ(18,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(19,"nz-form-item",11),t.TgZ(20,"nz-form-label",8),t._uU(21,"\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u6570\u91cf"),t.qZA(),t.TgZ(22,"nz-form-control",9),t._UZ(23,"nz-select",13),t.qZA(),t.qZA(),t.qZA()}2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.logDir?i.logDirControl:"warning"),t.xp6(2),t.hij("",i.logDirControl.value," "),t.xp6(1),t.Q6J("value",i.logDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.consoleLogLevel?i.consoleLogLevelControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.logLevelOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.maxBytes?i.maxBytesControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.maxBytesOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.backupCount?i.backupCountControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.backupOptions))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,Yo,Y,it.Vq,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Ro=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-notification-settings"]],decls:25,vars:0,consts:[["routerLink","email-notification",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"],["routerLink","serverchan-notification",1,"setting-item"],["routerLink","pushdeer-notification",1,"setting-item"],["routerLink","pushplus-notification",1,"setting-item"],["routerLink","telegram-notification",1,"setting-item"]],template:function(e,i){1&e&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"\u90ae\u7bb1\u901a\u77e5"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA(),t.TgZ(5,"a",4),t.TgZ(6,"span",1),t._uU(7,"ServerChan \u901a\u77e5"),t.qZA(),t.TgZ(8,"span",2),t._UZ(9,"i",3),t.qZA(),t.qZA(),t.TgZ(10,"a",5),t.TgZ(11,"span",1),t._uU(12,"PushDeer \u901a\u77e5"),t.qZA(),t.TgZ(13,"span",2),t._UZ(14,"i",3),t.qZA(),t.qZA(),t.TgZ(15,"a",6),t.TgZ(16,"span",1),t._uU(17,"pushplus \u901a\u77e5"),t.qZA(),t.TgZ(18,"span",2),t._UZ(19,"i",3),t.qZA(),t.qZA(),t.TgZ(20,"a",7),t.TgZ(21,"span",1),t._uU(22,"telegram \u901a\u77e5"),t.qZA(),t.TgZ(23,"span",2),t._UZ(24,"i",3),t.qZA(),t.qZA())},directives:[f.yS,B.w,H.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Ho=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-settings"]],decls:5,vars:0,consts:[["routerLink","webhooks",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"]],template:function(e,i){1&e&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"Webhooks"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA())},directives:[f.yS,B.w,H.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();const $o=["innerContent"];let Go=(()=>{class n{constructor(e,i,a,s){this.changeDetector=e,this.route=i,this.logger=a,this.routerScrollService=s}ngOnInit(){this.route.data.subscribe(e=>{this.settings=e.settings,this.changeDetector.markForCheck()})}ngAfterViewInit(){this.innerContent?this.routerScrollService.setCustomViewportToScroll(this.innerContent.nativeElement):this.logger.error("The content element could not be found!")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz),t.Y36(E.Kf),t.Y36(Un))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-settings"]],viewQuery:function(e,i){if(1&e&&t.Gf($o,5),2&e){let a;t.iGM(a=t.CRH())&&(i.innerContent=a.first)}},decls:24,vars:8,consts:[[1,"inner-content"],["innerContent",""],[1,"main-settings","settings-page"],[1,"settings-page-content"],["name","\u6587\u4ef6"],[3,"settings"],["name","\u5f55\u5236"],["name","\u5f39\u5e55"],["name","\u6587\u4ef6\u5904\u7406"],["name","\u786c\u76d8\u7a7a\u95f4"],["name","BILI API"],["name","\u7f51\u7edc\u8bf7\u6c42"],["name","\u65e5\u5fd7"],["name","\u901a\u77e5"],["name","Webhook"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0,1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"app-page-section",4),t._UZ(5,"app-output-settings",5),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-recorder-settings",5),t.qZA(),t.TgZ(8,"app-page-section",7),t._UZ(9,"app-danmaku-settings",5),t.qZA(),t.TgZ(10,"app-page-section",8),t._UZ(11,"app-post-processing-settings",5),t.qZA(),t.TgZ(12,"app-page-section",9),t._UZ(13,"app-disk-space-settings",5),t.qZA(),t.TgZ(14,"app-page-section",10),t._UZ(15,"app-bili-api-settings",5),t.qZA(),t.TgZ(16,"app-page-section",11),t._UZ(17,"app-header-settings",5),t.qZA(),t.TgZ(18,"app-page-section",12),t._UZ(19,"app-logging-settings",5),t.qZA(),t.TgZ(20,"app-page-section",13),t._UZ(21,"app-notification-settings"),t.qZA(),t.TgZ(22,"app-page-section",14),t._UZ(23,"app-webhook-settings"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(5),t.Q6J("settings",i.settings.output),t.xp6(2),t.Q6J("settings",i.settings.recorder),t.xp6(2),t.Q6J("settings",i.settings.danmaku),t.xp6(2),t.Q6J("settings",i.settings.postprocessing),t.xp6(2),t.Q6J("settings",i.settings.space),t.xp6(2),t.Q6J("settings",i.settings.biliApi),t.xp6(2),t.Q6J("settings",i.settings.header),t.xp6(2),t.Q6J("settings",i.settings.logging))},directives:[V.g,Mi,ki,Di,Bi,qi,ro,po,Wo,Ro,Ho],styles:[".inner-content[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.inner-content[_ngcontent-%COMP%]{padding-top:0}"]}),n})();var jo=c(7298),Xo=c(1481),se=c(3449),Ko=c(2168);const ea=function ta(n,o,e,i){if(!(0,st.Z)(n))return n;for(var a=-1,s=(o=(0,se.Z)(o,n)).length,g=s-1,u=n;null!=u&&++a0&&e(u)?o>1?ge(u,o-1,e,i,a):(0,sa.Z)(a,u):i||(a[a.length]=u)}return a},ma=function ua(n){return null!=n&&n.length?ga(n,1):[]},da=function pa(n,o,e){switch(e.length){case 0:return n.call(o);case 1:return n.call(o,e[0]);case 2:return n.call(o,e[0],e[1]);case 3:return n.call(o,e[0],e[1],e[2])}return n.apply(o,e)};var ue=Math.max;const Ca=function fa(n){return function(){return n}};var me=c(2370),va=c(9940),ba=Date.now;const wa=function Ta(n){var o=0,e=0;return function(){var i=ba(),a=16-(i-e);if(e=i,a>0){if(++o>=800)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}(me.Z?function(n,o){return(0,me.Z)(n,"toString",{configurable:!0,enumerable:!1,value:Ca(o),writable:!0})}:va.Z),C=function Sa(n){return wa(function ha(n,o,e){return o=ue(void 0===o?n.length-1:o,0),function(){for(var i=arguments,a=-1,s=ue(i.length-o,0),g=Array(s);++a{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({enabled:[""]})}get enabledControl(){return this.settingsForm.get("enabled")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-notifier-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:6,vars:3,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","enabled"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5141\u8bb8\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.enabled?i.enabledControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var Aa=c(6422);function ya(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Za(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function ka(n,o){if(1&n&&(t.YNc(0,ya,2,0,"ng-container",17),t.YNc(1,Za,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}function Da(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Ea(n,o){1&n&&t.YNc(0,Da,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Na(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function Ba(n,o){1&n&&t.YNc(0,Na,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function qa(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function Ua(n,o){1&n&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Ia(n,o){if(1&n&&(t.YNc(0,qa,2,0,"ng-container",17),t.YNc(1,Ua,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ja(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Qa(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Va(n,o){if(1&n&&(t.YNc(0,Ja,2,0,"ng-container",17),t.YNc(1,Qa,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}let La=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({srcAddr:["",[r.kI.required,r.kI.email]],dstAddr:["",[r.kI.required,r.kI.email]],authCode:["",[r.kI.required]],smtpHost:["",[r.kI.required]],smtpPort:["",[r.kI.required,r.kI.pattern(/\d+/)]]})}get srcAddrControl(){return this.settingsForm.get("srcAddr")}get dstAddrControl(){return this.settingsForm.get("dstAddr")}get authCodeControl(){return this.settingsForm.get("authCode")}get smtpHostControl(){return this.settingsForm.get("smtpHost")}get smtpPortControl(){return this.settingsForm.get("smtpPort")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm),(0,k.U)(e=>(0,Aa.Z)(e,(i,a,s)=>{a="smtpPort"===s?parseInt(a):a,Reflect.set(i,s,a)},{})))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-email-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:36,vars:16,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","srcAddr","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","srcAddr","type","email","placeholder","\u53d1\u9001\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740","required","","nz-input","","formControlName","srcAddr"],["emailErrorTip",""],["nzFor","authCode","nzNoColon","","nzRequired","",1,"setting-label"],["id","authCode","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u6388\u6743\u7801","required","","nz-input","","formControlName","authCode"],["authCodeErrorTip",""],["nzFor","smtpHost","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpHost","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\uff0c\u4f8b\u5982\uff1asmtp.163.com \u3002","required","","nz-input","","formControlName","smtpHost"],["smtpHostErrorTip",""],["nzFor","smtpPort","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpPort","type","text","pattern","\\d+","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\u7aef\u53e3\uff0c\u901a\u5e38\u4e3a 465 \u3002","required","","nz-input","","formControlName","smtpPort"],["smtpPortErrorTip",""],["nzFor","dstAddr","nzNoColon","","nzRequired","",1,"setting-label"],["id","dstAddr","type","email","placeholder","\u63a5\u6536\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740\uff0c\u53ef\u4ee5\u548c\u53d1\u9001\u90ae\u7bb1\u76f8\u540c\u5b9e\u73b0\u81ea\u53d1\u81ea\u6536\u3002","required","","nz-input","","formControlName","dstAddr"],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u53d1\u9001\u90ae\u7bb1"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,ka,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"\u6388\u6743\u7801"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,Ea,1,1,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",1),t.TgZ(16,"nz-form-label",9),t._uU(17,"SMTP \u4e3b\u673a"),t.qZA(),t.TgZ(18,"nz-form-control",3),t._UZ(19,"input",10),t.YNc(20,Ba,1,1,"ng-template",null,11,t.W1O),t.qZA(),t.qZA(),t.TgZ(22,"nz-form-item",1),t.TgZ(23,"nz-form-label",12),t._uU(24,"SMTP \u7aef\u53e3"),t.qZA(),t.TgZ(25,"nz-form-control",3),t._UZ(26,"input",13),t.YNc(27,Ia,2,2,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.TgZ(29,"nz-form-item",1),t.TgZ(30,"nz-form-label",15),t._uU(31,"\u63a5\u6536\u90ae\u7bb1"),t.qZA(),t.TgZ(32,"nz-form-control",3),t._UZ(33,"input",16),t.YNc(34,Va,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14),g=t.MAs(21),u=t.MAs(28);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.srcAddrControl.valid&&!i.syncStatus.srcAddr?"warning":i.srcAddrControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.authCodeControl.valid&&!i.syncStatus.authCode?"warning":i.authCodeControl),t.xp6(7),t.Q6J("nzErrorTip",g)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpHostControl.valid&&!i.syncStatus.smtpHost?"warning":i.smtpHostControl),t.xp6(7),t.Q6J("nzErrorTip",u)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpPortControl.valid&&!i.syncStatus.smtpPort?"warning":i.smtpPortControl),t.xp6(7),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.dstAddrControl.valid&&!i.syncStatus.dstAddr?"warning":i.dstAddrControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,r.c5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:6em!important;width:6em!important}"],changeDetection:0}),n})(),ct=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({notifyBegan:[""],notifyEnded:[""],notifyError:[""],notifySpace:[""]})}get notifyBeganControl(){return this.settingsForm.get("notifyBegan")}get notifyEndedControl(){return this.settingsForm.get("notifyEnded")}get notifyErrorControl(){return this.settingsForm.get("notifyError")}get notifySpaceControl(){return this.settingsForm.get("notifySpace")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settingsForm.value,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-event-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:21,vars:9,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","notifyBegan"],["formControlName","notifyEnded"],["formControlName","notifyError"],["formControlName","notifySpace"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5f00\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u4e0b\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u51fa\u9519\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",2),t._uU(18,"\u7a7a\u95f4\u4e0d\u8db3\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",7),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyBegan?i.notifyBeganControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyEnded?i.notifyEndedControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyError?i.notifyErrorControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifySpace?i.notifySpaceControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),tt=(()=>{class n{constructor(e,i,a){this.changeDetector=e,this.message=i,this.settingService=a}ngOnInit(){switch(this.keyOfSettings){case"emailNotification":this.messageTypes=["text","html"];break;case"serverchanNotification":this.messageTypes=["markdown"];break;case"pushdeerNotification":this.messageTypes=["markdown","text"];break;case"pushplusNotification":this.messageTypes=["markdown","text","html"];break;case"telegramNotification":this.messageTypes=["markdown","html"]}}ngOnChanges(e){this.updateCommonSettings()}changeBeganMessageTemplateSettings(e){this.changeMessageTemplateSettings({beganMessageType:e.messageType,beganMessageTitle:e.messageTitle,beganMessageContent:e.messageContent}).subscribe()}changeEndedMessageTemplateSettings(e){this.changeMessageTemplateSettings({endedMessageType:e.messageType,endedMessageTitle:e.messageTitle,endedMessageContent:e.messageContent}).subscribe()}changeSpaceMessageTemplateSettings(e){this.changeMessageTemplateSettings({spaceMessageType:e.messageType,spaceMessageTitle:e.messageTitle,spaceMessageContent:e.messageContent}).subscribe()}changeErrorMessageTemplateSettings(e){this.changeMessageTemplateSettings({errorMessageType:e.messageType,errorMessageTitle:e.messageTitle,errorMessageContent:e.messageContent}).subscribe()}changeMessageTemplateSettings(e){return this.settingService.changeSettings({[this.keyOfSettings]:e}).pipe((0,y.X)(3,300),(0,mt.b)(i=>{this.message.success("\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u6210\u529f"),this.settings=Object.assign(Object.assign({},this.settings),i[this.keyOfSettings]),this.updateCommonSettings(),this.changeDetector.markForCheck()},i=>{this.message.error(`\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}updateCommonSettings(){this.beganMessageTemplateSettings={messageType:this.settings.beganMessageType,messageTitle:this.settings.beganMessageTitle,messageContent:this.settings.beganMessageContent},this.endedMessageTemplateSettings={messageType:this.settings.endedMessageType,messageTitle:this.settings.endedMessageTitle,messageContent:this.settings.endedMessageContent},this.spaceMessageTemplateSettings={messageType:this.settings.spaceMessageType,messageTitle:this.settings.spaceMessageTitle,messageContent:this.settings.spaceMessageContent},this.errorMessageTemplateSettings={messageType:this.settings.errorMessageType,messageTitle:this.settings.errorMessageTitle,messageContent:this.settings.errorMessageContent}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(bt.dD),t.Y36(Z.R))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:20,vars:12,consts:[[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"title","value","messageTypes","confirm"],["beganMessageTemplateEditDialog",""],["endedMessageTemplateEditDialog",""],["errorMessageTemplateEditDialog",""],["spaceMessageTemplateEditDialog",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(4).open()}),t.TgZ(1,"span",1),t._uU(2,"\u5f00\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(3,"app-message-template-edit-dialog",2,3),t.NdJ("confirm",function(g){return i.changeBeganMessageTemplateSettings(g)}),t.qZA(),t.TgZ(5,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(9).open()}),t.TgZ(6,"span",1),t._uU(7,"\u4e0b\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(8,"app-message-template-edit-dialog",2,4),t.NdJ("confirm",function(g){return i.changeEndedMessageTemplateSettings(g)}),t.qZA(),t.TgZ(10,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(14).open()}),t.TgZ(11,"span",1),t._uU(12,"\u5f02\u5e38\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(13,"app-message-template-edit-dialog",2,5),t.NdJ("confirm",function(g){return i.changeErrorMessageTemplateSettings(g)}),t.qZA(),t.TgZ(15,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(19).open()}),t.TgZ(16,"span",1),t._uU(17,"\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(18,"app-message-template-edit-dialog",2,6),t.NdJ("confirm",function(g){return i.changeSpaceMessageTemplateSettings(g)}),t.qZA()}2&e&&(t.xp6(3),t.Q6J("title","\u4fee\u6539\u5f00\u64ad\u6d88\u606f\u6a21\u677f")("value",i.beganMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u4e0b\u64ad\u6d88\u606f\u6a21\u677f")("value",i.endedMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u5f02\u5e38\u6d88\u606f\u6a21\u677f")("value",i.errorMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f")("value",i.spaceMessageTemplateSettings)("messageTypes",i.messageTypes))},styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ya(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-email-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.emailSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Wa=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.emailSettings=C(i,v.gP),this.notifierSettings=C(i,v._1),this.notificationSettings=C(i,v.X),this.messageTemplateSettings=C(i,v.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-email-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","\u90ae\u4ef6\u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","emailNotification",3,"settings"],["name","\u90ae\u7bb1"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Ya,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,V.g,lt,La,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ra(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function Ha(n,o){1&n&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function $a(n,o){if(1&n&&(t.YNc(0,Ra,2,0,"ng-container",6),t.YNc(1,Ha,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let Ga=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({sendkey:["",[r.kI.required,r.kI.pattern(/^[a-zA-Z\d]+$/)]]})}get sendkeyControl(){return this.settingsForm.get("sendkey")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("serverchanNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-serverchan-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:8,vars:4,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","sendkey","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","sendkey","type","text","required","","nz-input","","formControlName","sendkey"],["sendkeyErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"sendkey"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,$a,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.sendkeyControl.valid&&!i.syncStatus.sendkey?"warning":i.sendkeyControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:5em!important;width:5em!important}"],changeDetection:0}),n})();function ja(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-serverchan-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.serverchanSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Xa=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.serverchanSettings=C(i,v.gq),this.notifierSettings=C(i,v._1),this.notificationSettings=C(i,v.X),this.messageTemplateSettings=C(i,v.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-serverchan-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","ServerChan \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","serverchanNotification",3,"settings"],["name","ServerChan"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ja,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,V.g,lt,Ga,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ka(n,o){1&n&&(t.ynx(0),t._uU(1," server \u65e0\u6548 "),t.BQk())}function tr(n,o){1&n&&t.YNc(0,Ka,2,0,"ng-container",9),2&n&&t.Q6J("ngIf",o.$implicit.hasError("pattern"))}function er(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 pushkey\uff01 "),t.BQk())}function nr(n,o){1&n&&(t.ynx(0),t._uU(1," pushkey \u65e0\u6548 "),t.BQk())}function ir(n,o){if(1&n&&(t.YNc(0,er,2,0,"ng-container",9),t.YNc(1,nr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let or=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({server:["",[r.kI.pattern(/^https?:\/\/.+/)]],pushkey:["",[r.kI.required,r.kI.pattern(/^PDU\d+T[a-zA-Z\d]{32}(,PDU\d+T[a-zA-Z\d]{32}){0,99}$/)]]})}get serverControl(){return this.settingsForm.get("server")}get pushkeyControl(){return this.settingsForm.get("pushkey")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushdeerNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushdeer-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:15,vars:7,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","server","nzNoColon","",1,"setting-label","align-required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","server","type","url","placeholder","\u9ed8\u8ba4\u4e3a\u5b98\u65b9\u670d\u52a1\u5668 https://api2.pushdeer.com","nz-input","","formControlName","server"],["serverErrorTip",""],["nzFor","pushkey","nzNoColon","","nzRequired","",1,"setting-label"],["id","pushkey","type","text","placeholder","\u591a\u4e2a key \u7528 , \u9694\u5f00\uff0c\u5728\u7ebf\u7248\u6700\u591a 10 \u4e2a\uff0c\u81ea\u67b6\u7248\u9ed8\u8ba4\u6700\u591a 100 \u4e2a\u3002","required","","nz-input","","formControlName","pushkey"],["pushkeyErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"server"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,tr,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"pushkey"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,ir,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.serverControl.valid&&!i.syncStatus.server?"warning":i.serverControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.pushkeyControl.valid&&!i.syncStatus.pushkey?"warning":i.pushkeyControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,O.Zp,r.Fj,r.JJ,r.u,p.O5,r.Q7],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:5em!important;width:5em!important}"],changeDetection:0}),n})();function ar(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-pushdeer-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushdeerSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let rr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushdeerSettings=C(i,v.jK),this.notifierSettings=C(i,v._1),this.notificationSettings=C(i,v.X),this.messageTemplateSettings=C(i,v.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushdeer-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","PushDeer \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","pushdeerNotification",3,"settings"],["name","PushDeer"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ar,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,V.g,lt,or,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function sr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function lr(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function cr(n,o){if(1&n&&(t.YNc(0,sr,2,0,"ng-container",9),t.YNc(1,lr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let gr=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({token:["",[r.kI.required,r.kI.pattern(/^[a-z\d]{32}$/)]],topic:[""]})}get tokenControl(){return this.settingsForm.get("token")}get topicControl(){return this.settingsForm.get("topic")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushplusNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushplus-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:13,vars:6,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","token","nzNoColon","","nzRequired","",1,"setting-label","required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","token","type","text","required","","nz-input","","formControlName","token"],["tokenErrorTip",""],["nzFor","topic","nzNoColon","",1,"setting-label","align-required"],[1,"setting-control","input",3,"nzWarningTip","nzValidateStatus"],["id","topic","type","text","nz-input","","formControlName","topic"],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"token"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,cr,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"topic"),t.qZA(),t.TgZ(11,"nz-form-control",7),t._UZ(12,"input",8),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.tokenControl.valid&&!i.syncStatus.token?"warning":i.tokenControl),t.xp6(7),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.topicControl.valid&&!i.syncStatus.topic?"warning":i.topicControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:4em!important;width:4em!important}"],changeDetection:0}),n})();function ur(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-pushplus-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushplusSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let mr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushplusSettings=C(i,v.q1),this.notifierSettings=C(i,v._1),this.notificationSettings=C(i,v.X),this.messageTemplateSettings=C(i,v.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushplus-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","pushplus \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","pushplusNotification",3,"settings"],["name","pushplus"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ur,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,V.g,lt,gr,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function pr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function dr(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function hr(n,o){if(1&n&&(t.YNc(0,pr,2,0,"ng-container",9),t.YNc(1,dr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function _r(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 chatid\uff01 "),t.BQk())}function fr(n,o){1&n&&(t.ynx(0),t._uU(1," chatid \u65e0\u6548 "),t.BQk())}function Cr(n,o){if(1&n&&(t.YNc(0,_r,2,0,"ng-container",9),t.YNc(1,fr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let vr=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({token:["",[r.kI.required,r.kI.pattern(/^[0-9]{8,10}:[a-zA-Z0-9_-]{35}$/)]],chatid:["",[r.kI.required,r.kI.pattern(/^(-|[0-9]){0,}$/)]]})}get tokenControl(){return this.settingsForm.get("token")}get chatidControl(){return this.settingsForm.get("chatid")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("telegramNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),b(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-telegram-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:15,vars:7,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","token","nzNoColon","","nzRequired","",1,"setting-label","required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","token","type","text","required","","nz-input","","formControlName","token"],["tokenErrorTip",""],["nzFor","chatid","nzNoColon","","nzRequired","",1,"setting-label"],["id","chatid","type","text","required","","nz-input","","formControlName","chatid"],["chatidErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"token"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,hr,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"chatid"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,Cr,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.tokenControl.valid&&!i.syncStatus.token?"warning":i.tokenControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.chatidControl.valid&&!i.syncStatus.chatid?"warning":i.chatidControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:4em!important;width:4em!important}"],changeDetection:0}),n})();function zr(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-telegram-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.telegramSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let xr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.telegramSettings=C(i,v.wA),this.notifierSettings=C(i,v._1),this.notificationSettings=C(i,v.X),this.messageTemplateSettings=C(i,v.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-telegram-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","telegram \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","telegramNotification",3,"settings"],["name","telegram"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,zr,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,V.g,lt,vr,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var pe=c(4219);function Or(n,o){1&n&&t._UZ(0,"nz-list-empty")}function Mr(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-list-item",9),t.TgZ(1,"span",10),t._uU(2),t.qZA(),t.TgZ(3,"button",11),t._UZ(4,"i",12),t.qZA(),t.TgZ(5,"nz-dropdown-menu",null,13),t.TgZ(7,"ul",14),t.TgZ(8,"li",15),t.NdJ("click",function(){const s=t.CHM(e).index;return t.oxw().edit.emit(s)}),t._uU(9,"\u4fee\u6539"),t.qZA(),t.TgZ(10,"li",15),t.NdJ("click",function(){const s=t.CHM(e).index;return t.oxw().remove.emit(s)}),t._uU(11,"\u5220\u9664"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=o.$implicit,i=t.MAs(6);t.xp6(2),t.Oqu(e.url),t.xp6(1),t.Q6J("nzDropdownMenu",i)}}let br=(()=>{class n{constructor(){this.header="",this.addable=!0,this.clearable=!0,this.add=new t.vpe,this.edit=new t.vpe,this.remove=new t.vpe,this.clear=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-list"]],inputs:{data:"data",header:"header",addable:"addable",clearable:"clearable"},outputs:{add:"add",edit:"edit",remove:"remove",clear:"clear"},decls:11,vars:5,consts:[["nzBordered","",1,"list"],[1,"list-header"],[1,"list-actions"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6e05\u7a7a",1,"clear-button",3,"disabled","click"],["nz-icon","","nzType","clear"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0",1,"add-button",3,"disabled","click"],["nz-icon","","nzType","plus"],[4,"ngIf"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"item-content"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-action-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-list",0),t.TgZ(1,"nz-list-header",1),t.TgZ(2,"h3"),t._uU(3),t.qZA(),t.TgZ(4,"div",2),t.TgZ(5,"button",3),t.NdJ("click",function(){return i.clear.emit()}),t._UZ(6,"i",4),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.add.emit()}),t._UZ(8,"i",6),t.qZA(),t.qZA(),t.qZA(),t.YNc(9,Or,1,0,"nz-list-empty",7),t.YNc(10,Mr,12,2,"nz-list-item",8),t.qZA()),2&e&&(t.xp6(3),t.Oqu(i.header),t.xp6(2),t.Q6J("disabled",i.data.length<=0||!i.clearable),t.xp6(2),t.Q6J("disabled",!i.addable),t.xp6(2),t.Q6J("ngIf",i.data.length<=0),t.xp6(1),t.Q6J("ngForOf",i.data))},directives:[Ot,vt,I.ix,B.w,dt.SY,H.Ls,p.O5,Ct,p.sg,Nt,ut.wA,ut.cm,ut.RR,pe.wO,pe.r9],styles:[".list[_ngcontent-%COMP%]{background-color:#fff}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .list-actions[_ngcontent-%COMP%]{margin-left:auto;position:relative;left:1em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .more-action-button[_ngcontent-%COMP%]{margin-left:auto;flex:0 0 auto;position:relative;left:1em}"],changeDetection:0}),n})();function Tr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function Pr(n,o){1&n&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function wr(n,o){if(1&n&&(t.YNc(0,Tr,2,0,"ng-container",27),t.YNc(1,Pr,2,0,"ng-container",27)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Sr(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item",3),t.TgZ(3,"nz-form-label",4),t._uU(4,"URL"),t.qZA(),t.TgZ(5,"nz-form-control",5),t._UZ(6,"input",6),t.YNc(7,wr,2,2,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"h2"),t._uU(11,"\u4e8b\u4ef6"),t.qZA(),t.TgZ(12,"nz-form-item",3),t.TgZ(13,"nz-form-control",9),t.TgZ(14,"label",10),t.NdJ("nzCheckedChange",function(a){return t.CHM(e),t.oxw().setAllChecked(a)}),t._uU(15,"\u5168\u9009"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",3),t.TgZ(17,"nz-form-control",11),t.TgZ(18,"label",12),t._uU(19,"\u5f00\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",3),t.TgZ(21,"nz-form-control",11),t.TgZ(22,"label",13),t._uU(23,"\u4e0b\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"nz-form-item",3),t.TgZ(25,"nz-form-control",11),t.TgZ(26,"label",14),t._uU(27,"\u76f4\u64ad\u95f4\u4fe1\u606f\u6539\u53d8"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"nz-form-item",3),t.TgZ(29,"nz-form-control",11),t.TgZ(30,"label",15),t._uU(31,"\u5f55\u5236\u5f00\u59cb"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-form-item",3),t.TgZ(33,"nz-form-control",11),t.TgZ(34,"label",16),t._uU(35,"\u5f55\u5236\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(36,"nz-form-item",3),t.TgZ(37,"nz-form-control",11),t.TgZ(38,"label",17),t._uU(39,"\u5f55\u5236\u53d6\u6d88"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",3),t.TgZ(41,"nz-form-control",11),t.TgZ(42,"label",18),t._uU(43,"\u89c6\u9891\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"nz-form-item",3),t.TgZ(45,"nz-form-control",11),t.TgZ(46,"label",19),t._uU(47,"\u89c6\u9891\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(48,"nz-form-item",3),t.TgZ(49,"nz-form-control",11),t.TgZ(50,"label",20),t._uU(51,"\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(52,"nz-form-item",3),t.TgZ(53,"nz-form-control",11),t.TgZ(54,"label",21),t._uU(55,"\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(56,"nz-form-item",3),t.TgZ(57,"nz-form-control",11),t.TgZ(58,"label",22),t._uU(59,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(60,"nz-form-item",3),t.TgZ(61,"nz-form-control",11),t.TgZ(62,"label",23),t._uU(63,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"nz-form-item",3),t.TgZ(65,"nz-form-control",11),t.TgZ(66,"label",24),t._uU(67,"\u89c6\u9891\u540e\u5904\u7406\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(68,"nz-form-item",3),t.TgZ(69,"nz-form-control",11),t.TgZ(70,"label",25),t._uU(71,"\u786c\u76d8\u7a7a\u95f4\u4e0d\u8db3"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(72,"nz-form-item",3),t.TgZ(73,"nz-form-control",11),t.TgZ(74,"label",26),t._uU(75,"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",e),t.xp6(9),t.Q6J("nzChecked",i.allChecked)("nzIndeterminate",i.indeterminate)}}const Fr={url:"",liveBegan:!0,liveEnded:!0,roomChange:!0,recordingStarted:!0,recordingFinished:!0,recordingCancelled:!0,videoFileCreated:!0,videoFileCompleted:!0,danmakuFileCreated:!0,danmakuFileCompleted:!0,rawDanmakuFileCreated:!0,rawDanmakuFileCompleted:!0,videoPostprocessingCompleted:!0,spaceNoEnough:!0,errorOccurred:!0};let Ar=(()=>{class n{constructor(e,i){this.changeDetector=i,this.title="\u6807\u9898",this.okButtonText="\u786e\u5b9a",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.allChecked=!1,this.indeterminate=!0,this.settingsForm=e.group({url:["",[r.kI.required,r.kI.pattern(/^https?:\/\/.*$/)]],liveBegan:[""],liveEnded:[""],roomChange:[""],recordingStarted:[""],recordingFinished:[""],recordingCancelled:[""],videoFileCreated:[""],videoFileCompleted:[""],danmakuFileCreated:[""],danmakuFileCompleted:[""],rawDanmakuFileCreated:[""],rawDanmakuFileCompleted:[""],videoPostprocessingCompleted:[""],spaceNoEnough:[""],errorOccurred:[""]}),this.checkboxControls=Object.entries(this.settingsForm.controls).filter(([a])=>"url"!==a).map(([,a])=>a),this.checkboxControls.forEach(a=>a.valueChanges.subscribe(()=>this.updateAllChecked()))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.settingsForm.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){void 0===this.settings&&(this.settings=Object.assign({},Fr)),this.settingsForm.setValue(this.settings),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}setAllChecked(e){this.indeterminate=!1,this.allChecked=e,this.checkboxControls.forEach(i=>i.setValue(e))}updateAllChecked(){const e=this.checkboxControls.map(i=>i.value);this.allChecked=e.every(i=>i),this.indeterminate=!this.allChecked&&e.some(i=>i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-edit-dialog"]],inputs:{settings:"settings",title:"title",okButtonText:"okButtonText",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:4,consts:[["nzCentered","",3,"nzTitle","nzOkText","nzVisible","nzOkDisabled","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","url","nzNoColon","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip"],["id","url","type","url","required","","nz-input","","formControlName","url"],["urlErrorTip",""],[1,"form-group"],[1,"setting-control","checkbox","check-all"],["nz-checkbox","",3,"nzChecked","nzIndeterminate","nzCheckedChange"],[1,"setting-control","checkbox"],["nz-checkbox","","formControlName","liveBegan"],["nz-checkbox","","formControlName","liveEnded"],["nz-checkbox","","formControlName","roomChange"],["nz-checkbox","","formControlName","recordingStarted"],["nz-checkbox","","formControlName","recordingFinished"],["nz-checkbox","","formControlName","recordingCancelled"],["nz-checkbox","","formControlName","videoFileCreated"],["nz-checkbox","","formControlName","videoFileCompleted"],["nz-checkbox","","formControlName","danmakuFileCreated"],["nz-checkbox","","formControlName","danmakuFileCompleted"],["nz-checkbox","","formControlName","rawDanmakuFileCreated"],["nz-checkbox","","formControlName","rawDanmakuFileCompleted"],["nz-checkbox","","formControlName","videoPostprocessingCompleted"],["nz-checkbox","","formControlName","spaceNoEnough"],["nz-checkbox","","formControlName","errorOccurred"],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Sr,76,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzTitle",i.title)("nzOkText",i.okButtonText)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,O.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,wt.Ie],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-item[_ngcontent-%COMP%]{padding:1em 0;border:none}.setting-item[_ngcontent-%COMP%]:first-child{padding-top:0}.setting-item[_ngcontent-%COMP%]:first-child .setting-control[_ngcontent-%COMP%]{flex:1 1 auto;max-width:100%!important}.setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%] .check-all[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.06)}"],changeDetection:0}),n})();function yr(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-page-section"),t.TgZ(1,"app-webhook-list",3),t.NdJ("add",function(){return t.CHM(e),t.oxw().addWebhook()})("edit",function(a){return t.CHM(e),t.oxw().editWebhook(a)})("remove",function(a){return t.CHM(e),t.oxw().removeWebhook(a)})("clear",function(){return t.CHM(e),t.oxw().clearWebhook()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("data",e.webhooks)("addable",e.canAdd)}}const Zr=[{path:"email-notification",component:Wa,resolve:{settings:Vt}},{path:"serverchan-notification",component:Xa,resolve:{settings:Lt}},{path:"pushdeer-notification",component:rr,resolve:{settings:Yt}},{path:"pushplus-notification",component:mr,resolve:{settings:Wt}},{path:"telegram-notification",component:xr,resolve:{settings:Rt}},{path:"webhooks",component:(()=>{class n{constructor(e,i,a,s,g){this.changeDetector=e,this.route=i,this.message=a,this.modal=s,this.settingService=g,this.dialogTitle="",this.dialogOkButtonText="",this.dialogVisible=!1,this.editingIndex=-1}get canAdd(){return this.webhooks.length{this.webhooks=e.settings,this.changeDetector.markForCheck()})}addWebhook(){this.editingIndex=-1,this.editingSettings=void 0,this.dialogTitle="\u6dfb\u52a0 webhook",this.dialogOkButtonText="\u6dfb\u52a0",this.dialogVisible=!0}removeWebhook(e){const i=this.webhooks.filter((a,s)=>s!==e);this.changeSettings(i).subscribe(()=>this.reset())}editWebhook(e){this.editingIndex=e,this.editingSettings=Object.assign({},this.webhooks[e]),this.dialogTitle="\u4fee\u6539 webhook",this.dialogOkButtonText="\u4fdd\u5b58",this.dialogVisible=!0}clearWebhook(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u6e05\u7a7a Webhook \uff1f",nzOnOk:()=>new Promise((e,i)=>{this.changeSettings([]).subscribe(e,i)})})}onDialogCanceled(){this.reset()}onDialogConfirmed(e){let i;-1===this.editingIndex?i=[...this.webhooks,e]:(i=[...this.webhooks],i[this.editingIndex]=e),this.changeSettings(i).subscribe(()=>this.reset())}reset(){this.editingIndex=-1,delete this.editingSettings}changeSettings(e){return this.settingService.changeSettings({webhooks:e}).pipe((0,y.X)(3,300),(0,mt.b)(i=>{this.webhooks=i.webhooks,this.changeDetector.markForCheck()},i=>{this.message.error(`Webhook \u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}}return n.MAX_WEBHOOKS=50,n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz),t.Y36(bt.dD),t.Y36(_.Sf),t.Y36(Z.R))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-manager"]],decls:3,vars:4,consts:[["pageTitle","Webhooks"],["appSubPageContent",""],[3,"title","okButtonText","settings","visible","visibleChange","cancel","confirm"],["header","Webhook \u5217\u8868",3,"data","addable","add","edit","remove","clear"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,yr,2,2,"ng-template",1),t.qZA(),t.TgZ(2,"app-webhook-edit-dialog",2),t.NdJ("visibleChange",function(s){return i.dialogVisible=s})("cancel",function(){return i.onDialogCanceled()})("confirm",function(s){return i.onDialogConfirmed(s)}),t.qZA()),2&e&&(t.xp6(2),t.Q6J("title",i.dialogTitle)("okButtonText",i.dialogOkButtonText)("settings",i.editingSettings)("visible",i.dialogVisible))},directives:[X.q,K.Y,V.g,br,Ar],styles:[""],changeDetection:0}),n})(),resolve:{settings:Ht}},{path:"",component:Go,resolve:{settings:Qt}}];let kr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[f.Bz.forChild(Zr)],f.Bz]}),n})();function Dr(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u8bed\u6cd5\u3001\u53d8\u91cf\u53c2\u8003 "),t.TgZ(2,"a",16),t._uU(3,"wiki"),t.qZA(),t.qZA(),t.TgZ(4,"p"),t._uU(5,"\u7a7a\u503c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u6d88\u606f\u6a21\u677f"),t.qZA())}function Er(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Dr,6,0,"ng-template",null,3,t.W1O),t.TgZ(3,"form",4),t.TgZ(4,"nz-form-item",5),t.TgZ(5,"nz-form-label",6),t._uU(6," \u6d88\u606f\u6807\u9898 "),t.qZA(),t.TgZ(7,"nz-form-control",7),t._UZ(8,"input",8),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",9),t.TgZ(10,"nz-form-label",10),t._uU(11," \u6d88\u606f\u7c7b\u578b "),t.qZA(),t.TgZ(12,"nz-form-control",11),t._UZ(13,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",13),t.TgZ(15,"nz-form-label",6),t._uU(16," \u6d88\u606f\u5185\u5bb9 "),t.qZA(),t.TgZ(17,"nz-form-control",14),t._UZ(18,"textarea",15),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(2),i=t.oxw();t.xp6(3),t.Q6J("nzLayout","vertical")("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(8),t.Q6J("nzOptions",i.MESSAGE_TYPE_OPTIONS),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(3),t.Q6J("rows",10)}}function Nr(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(1,"\u53d6\u6d88"),t.qZA(),t.TgZ(2,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(3," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("disabled",e.settingsForm.invalid)}}let Br=(()=>{class n{constructor(e,i){this.changeDetector=i,this.messageTypes=[],this.title="\u4fee\u6539\u6d88\u606f\u6a21\u677f",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.MESSAGE_TYPE_OPTIONS=[],this.settingsForm=e.group({messageType:[""],messageTitle:[""],messageContent:[""]})}get messageTypeControl(){return this.settingsForm.get("messageType")}get messageTitleControl(){return this.settingsForm.get("messageTitle")}get messageContentControl(){return this.settingsForm.get("messageContent")}ngOnInit(){this.MESSAGE_TYPE_OPTIONS=Array.from(new Set(this.messageTypes)).map(e=>({label:e,value:e}))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.settingsForm.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-edit-dialog"]],inputs:{value:"value",messageTypes:"messageTypes",title:"title",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:4,vars:3,consts:[["nzCentered","",3,"nzTitle","nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["modalFooter",""],["messageTemplateTip",""],["nz-form","",3,"nzLayout","formGroup"],[1,"setting-item","input"],["nzFor","messageTitle","nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","input"],["type","text","nz-input","","formControlName","messageTitle"],[1,"setting-item","switch"],["nzFor","messageType","nzNoColon","",1,"setting-label"],[1,"setting-control","select"],["formControlName","messageType",3,"nzOptions"],[1,"setting-item","textarea"],[1,"setting-control","textarea"],["nz-input","","wrap","off","formControlName","messageContent",3,"rows"],["href","https://github.com/acgnhiki/blrec/wiki/MessageTemplate","_blank",""],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Er,19,6,"ng-container",1),t.YNc(2,Nr,4,1,"ng-template",null,2,t.W1O),t.qZA()),2&e&&t.Q6J("nzTitle",i.title)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,O.Zp,r.Fj,r.JJ,r.u,it.Vq,I.ix,rt.dQ,B.w],styles:["textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}"],changeDetection:0}),n})(),qr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Qt,Vt,Lt,Yt,Wt,Rt,Ht],imports:[[p.ez,kr,r.u5,r.UX,pt.j,he.KJ,_e.vh,l.U5,O.o7,D.m,wt.Wr,U.aF,ze,it.LV,_.Qp,I.sL,H.PV,Pn,ut.b1,dt.cg,wn.S,J.HQ,En,Nn.m]]}),n})();t.B6R(tt,[Br],[])}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/183.0d3cd9f454be16fb.js b/src/blrec/data/webapp/183.0d3cd9f454be16fb.js deleted file mode 100644 index abc9229..0000000 --- a/src/blrec/data/webapp/183.0d3cd9f454be16fb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[183],{3692:(T,M,s)=>{s.d(M,{f:()=>v});var _=s(2134),g=s(5e3);let v=(()=>{class t{transform(c,D){if("string"==typeof c)c=parseFloat(c);else if("number"!=typeof c||isNaN(c))return"N/A";return(D=Object.assign({bitrate:!1,precision:3,spacer:" "},D)).bitrate?(0,_.AX)(c,D.spacer,D.precision):(0,_.N4)(c,D.spacer,D.precision)}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=g.Yjl({name:"datarate",type:t,pure:!0}),t})()},3520:(T,M,s)=>{s.d(M,{U:()=>v});const _={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};var g=s(5e3);let v=(()=>{class t{transform(c){return _[c]}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=g.Yjl({name:"quality",type:t,pure:!0}),t})()},5141:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{i:()=>InfoPanelComponent});var _angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5e3),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1715),rxjs__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(1746),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(534),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7221),src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(7106),_shared_task_model__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2948),ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5278),_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(844),_angular_common__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(9808),_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1755),_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3692),_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3520);function InfoPanelComponent_ul_3_ng_container_36_Template(T,M){1&T&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.ynx(0),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(1,", bluray"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.BQk())}function InfoPanelComponent_ul_3_li_38_Template(T,M){if(1&T&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(0,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(1,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(2,"\u6d41\u7f16\u7801\u5668"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(3,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()),2&T){const s=_angular_core__WEBPACK_IMPORTED_MODULE_3__.oxw(2);_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Oqu(null==s.profile.streams[0]||null==s.profile.streams[0].tags?null:s.profile.streams[0].tags.encoder)}}const _c0=function(){return{bitrate:!0}};function InfoPanelComponent_ul_3_Template(T,M){if(1&T&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(0,"ul",3),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(1,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(2,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(3,"\u89c6\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(4,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(5,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(7,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(9,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(10),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(11,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(12),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(13,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(14,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(15,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(16,"\u97f3\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(17,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(18,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(19),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(20,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(21),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(22,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(23),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(24,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(25),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(26,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(27,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(28,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(29,"\u683c\u5f0f\u753b\u8d28"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(30,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(31,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(32),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(33,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(34),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(35,"quality"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.YNc(36,InfoPanelComponent_ul_3_ng_container_36_Template,2,0,"ng-container",7),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(37,") "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.YNc(38,InfoPanelComponent_ul_3_li_38_Template,5,1,"li",8),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(39,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(40,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(41,"\u6d41\u4e3b\u673a\u540d"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(42,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(43),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(44,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(45,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__._UZ(47,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(48,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(49),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(50,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(51,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(52,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(53,"\u5f55\u5236\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__._UZ(54,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(55,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(56),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(57,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()),2&T){const s=_angular_core__WEBPACK_IMPORTED_MODULE_3__.oxw();let _;_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[0]?null:s.profile.streams[0].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.AsE(" ",null==s.profile.streams[0]?null:s.profile.streams[0].width,"x",null==s.profile.streams[0]?null:s.profile.streams[0].height," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",s.fps," fps"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.xi3(13,19,1e3*s.metadata.videodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_3__.DdM(32,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].sample_rate," HZ"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].channel_layout," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.xi3(26,22,1e3*s.metadata.audiodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_3__.DdM(33,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",s.data.task_status.real_stream_format?s.data.task_status.real_stream_format:"N/A"," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.AsE(" ",s.data.task_status.real_quality_number?_angular_core__WEBPACK_IMPORTED_MODULE_3__.lcZ(35,25,s.data.task_status.real_quality_number):"N/A"," (",null!==(_=s.data.task_status.real_quality_number)&&void 0!==_?_:"N/A",""),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("ngIf",s.isBlurayStreamQuality()),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("ngIf",null==s.profile.streams[0]||null==s.profile.streams[0].tags?null:s.profile.streams[0].tags.encoder),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",s.data.task_status.stream_host," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("value",s.data.task_status.dl_rate),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.xi3(50,27,8*s.data.task_status.dl_rate,_angular_core__WEBPACK_IMPORTED_MODULE_3__.DdM(34,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("value",s.data.task_status.rec_rate),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.lcZ(57,30,s.data.task_status.rec_rate)," ")}}let InfoPanelComponent=(()=>{class InfoPanelComponent{constructor(T,M,s){this.changeDetector=T,this.notification=M,this.taskService=s,this.metadata=null,this.close=new _angular_core__WEBPACK_IMPORTED_MODULE_3__.vpe,this.RunningStatus=_shared_task_model__WEBPACK_IMPORTED_MODULE_4__.cG}get fps(){var _a,_b;const avgFrameRate=null===(_b=null===(_a=this.profile)||void 0===_a?void 0:_a.streams[0])||void 0===_b?void 0:_b.avg_frame_rate;return avgFrameRate?eval(avgFrameRate).toFixed():"N/A"}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(T){T.preventDefault(),T.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)((0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)(0),(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.F)(1e3)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.u)(),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.w)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_9__.$R)(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(T=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",T.message),T}),(0,src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_11__.X)(3,1e3)).subscribe(([T,M])=>{this.profile=T,this.metadata=M,this.changeDetector.markForCheck()},T=>{this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var T;null===(T=this.dataSubscription)||void 0===T||T.unsubscribe()}}return InfoPanelComponent.\u0275fac=function T(M){return new(M||InfoPanelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_3__.sBO),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_12__.zb),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__.M))},InfoPanelComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Xpm({type:InfoPanelComponent,selectors:[["app-info-panel"]],inputs:{data:"data",profile:"profile",metadata:"metadata"},outputs:{close:"close"},decls:4,vars:1,consts:[[1,"info-panel"],["title","\u5173\u95ed",1,"close-panel",3,"click"],["class","info-list",4,"ngIf"],[1,"info-list"],[1,"info-item"],[1,"label"],[1,"value"],[4,"ngIf"],["class","info-item",4,"ngIf"],[3,"value"]],template:function T(M,s){1&M&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(0,"div",0),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(1,"button",1),_angular_core__WEBPACK_IMPORTED_MODULE_3__.NdJ("click",function(g){return s.closePanel(g)}),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(2," [x] "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.YNc(3,InfoPanelComponent_ul_3_Template,58,35,"ul",2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()),2&M&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("ngIf",s.data.task_status.running_status===s.RunningStatus.RECORDING&&s.profile&&s.profile.streams&&s.profile.format&&s.metadata))},directives:[_angular_common__WEBPACK_IMPORTED_MODULE_13__.O5,_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_14__.w],pipes:[_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_1__.f,_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_2__.U],styles:['@charset "UTF-8";.info-panel[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.info-panel[_ngcontent-%COMP%]{position:absolute;top:2.55rem;bottom:2rem;left:0rem;right:0rem;width:100%;font-size:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:4px;height:4px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#eee;border-radius:2px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fff}.info-panel[_ngcontent-%COMP%] .close-panel[_ngcontent-%COMP%]{position:absolute;top:0rem;right:0rem;width:2rem;height:2rem;padding:0;color:#fff;background:transparent;border:none;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;width:100%;height:100%}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;margin:0;width:5rem;text-align:right}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block;margin:0;text-align:left}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child):before{content:", "}app-wave-graph[_ngcontent-%COMP%]{margin-right:1rem}'],changeDetection:0}),InfoPanelComponent})()},1755:(T,M,s)=>{s.d(M,{w:()=>v});var _=s(1715),g=s(5e3);let v=(()=>{class t{constructor(c){this.changeDetector=c,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let D=0;D<=this.width;D+=2)this.data.push(0),this.points.push({x:D,y:this.height})}get polylinePoints(){return this.points.map(c=>`${c.x},${c.y}`).join(" ")}ngOnInit(){this.subscription=(0,_.F)(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let c=Math.max(...this.data);this.points=this.data.map((D,b)=>({x:Math.min(2*b,this.width),y:(1-D/(c||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var c;null===(c=this.subscription)||void 0===c||c.unsubscribe()}}return t.\u0275fac=function(c){return new(c||t)(g.Y36(g.sBO))},t.\u0275cmp=g.Xpm({type:t,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(c,D){1&c&&(g.O4$(),g.TgZ(0,"svg"),g._UZ(1,"polyline",0),g.qZA()),2&c&&(g.uIk("width",D.width)("height",D.height),g.xp6(1),g.uIk("stroke",D.stroke)("points",D.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),t})()},844:(T,M,s)=>{s.d(M,{M:()=>D});var _=s(4850),g=s(2340),v=s(2948),t=s(5e3),S=s(520);const c=g.N.apiUrl;let D=(()=>{class b{constructor(p){this.http=p}getAllTaskData(p=v.jf.ALL){return this.http.get(c+"/api/v1/tasks/data",{params:{select:p}})}getTaskData(p){return this.http.get(c+`/api/v1/tasks/${p}/data`)}getVideoFileDetails(p){return this.http.get(c+`/api/v1/tasks/${p}/videos`)}getDanmakuFileDetails(p){return this.http.get(c+`/api/v1/tasks/${p}/danmakus`)}getTaskParam(p){return this.http.get(c+`/api/v1/tasks/${p}/param`)}getMetadata(p){return this.http.get(c+`/api/v1/tasks/${p}/metadata`)}getStreamProfile(p){return this.http.get(c+`/api/v1/tasks/${p}/profile`)}updateAllTaskInfos(){return this.http.post(c+"/api/v1/tasks/info",null)}updateTaskInfo(p){return this.http.post(c+`/api/v1/tasks/${p}/info`,null)}addTask(p){return this.http.post(c+`/api/v1/tasks/${p}`,null)}removeTask(p){return this.http.delete(c+`/api/v1/tasks/${p}`)}removeAllTasks(){return this.http.delete(c+"/api/v1/tasks")}startTask(p){return this.http.post(c+`/api/v1/tasks/${p}/start`,null)}startAllTasks(){return this.http.post(c+"/api/v1/tasks/start",null)}stopTask(p,m=!1,z=!1){return this.http.post(c+`/api/v1/tasks/${p}/stop`,{force:m,background:z})}stopAllTasks(p=!1,m=!1){return this.http.post(c+"/api/v1/tasks/stop",{force:p,background:m})}enableTaskMonitor(p){return this.http.post(c+`/api/v1/tasks/${p}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(c+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(p,m=!1){return this.http.post(c+`/api/v1/tasks/${p}/monitor/disable`,{background:m})}disableAllMonitors(p=!1){return this.http.post(c+"/api/v1/tasks/monitor/disable",{background:p})}enableTaskRecorder(p){return this.http.post(c+`/api/v1/tasks/${p}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(c+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(p,m=!1,z=!1){return this.http.post(c+`/api/v1/tasks/${p}/recorder/disable`,{force:m,background:z})}disableAllRecorders(p=!1,m=!1){return this.http.post(c+"/api/v1/tasks/recorder/disable",{force:p,background:m})}canCutStream(p){return this.http.get(c+`/api/v1/tasks/${p}/cut`).pipe((0,_.U)(z=>z.data.result))}cutStream(p){return this.http.post(c+`/api/v1/tasks/${p}/cut`,null)}}return b.\u0275fac=function(p){return new(p||b)(t.LFG(S.eN))},b.\u0275prov=t.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},2948:(T,M,s)=>{s.d(M,{jf:()=>_,cG:()=>g,ii:()=>v,cS:()=>t});var _=(()=>{return(c=_||(_={})).ALL="all",c.PREPARING="preparing",c.LIVING="living",c.ROUNDING="rounding",c.MONITOR_ENABLED="monitor_enabled",c.MONITOR_DISABLED="monitor_disabled",c.RECORDER_ENABLED="recorder_enabled",c.RECORDER_DISABLED="recorder_disabled",c.STOPPED="stopped",c.WAITTING="waitting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",_;var c})(),g=(()=>{return(c=g||(g={})).STOPPED="stopped",c.WAITING="waiting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",g;var c})(),v=(()=>{return(c=v||(v={})).WAITING="waiting",c.REMUXING="remuxing",c.INJECTING="injecting",v;var c})(),t=(()=>{return(c=t||(t={})).RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",c.COMPLETED="completed",c.MISSING="missing",c.BROKEN="broken",t;var c})()},3183:(T,M,s)=>{s.r(M),s.d(M,{TasksModule:()=>gr});var _=s(9808),g=s(4182),v=s(5113),t=s(5e3);class S{constructor(i,e){this._document=e;const o=this._textarea=this._document.createElement("textarea"),a=o.style;a.position="fixed",a.top=a.opacity="0",a.left="-999em",o.setAttribute("aria-hidden","true"),o.value=i,this._document.body.appendChild(o)}copy(){const i=this._textarea;let e=!1;try{if(i){const o=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),o&&o.focus()}}catch(o){}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let c=(()=>{class n{constructor(e){this._document=e}copy(e){const o=this.beginCopy(e),a=o.copy();return o.destroy(),a}beginCopy(e){return new S(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),J=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var p=s(1894),m=s(7484),z=s(647),u=s(655),C=s(8929),O=s(7625),B=s(8693),k=s(1721),A=s(226);function W(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(a){return t.CHM(e),t.oxw().closeTag(a)}),t.qZA()}}const it=["*"];let Et=(()=>{class n{constructor(e,o,a,r){this.cdr=e,this.renderer=o,this.elementRef=a,this.directionality=r,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new C.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,o=new RegExp(`(ant-tag-(?:${[...B.uf,...B.Bh].join("|")}))`,"g"),a=e.classList.toString(),r=[];let d=o.exec(a);for(;null!==d;)r.push(d[1]),d=o.exec(a);e.classList.remove(...r)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,B.o2)(this.nzColor)||(0,B.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:o}=e;o&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(A.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o.updateCheckedStatus()}),2&e&&(t.Udp("background-color",o.isPresetColor?"":o.nzColor),t.ekj("ant-tag-has-color",o.nzColor&&!o.isPresetColor)("ant-tag-checkable","checkable"===o.nzMode)("ant-tag-checkable-checked",o.nzChecked)("ant-tag-rtl","rtl"===o.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:it,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,o){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,W,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===o.nzMode))},directives:[_.O5,z.Ls],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,k.yF)()],n.prototype,"nzChecked",void 0),n})(),oe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[A.vT,_.ez,g.u5,z.PV]]}),n})();var Ot=s(6699);const ie=["nzType","avatar"];function ae(n,i){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function re(n,i){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function se(n,i){if(1&n&&t._UZ(0,"li"),2&n){const e=i.index,o=t.oxw(3);t.Udp("width",o.toCSSUnit(o.widthList[e]))}}function le(n,i){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,se,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function ce(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ae,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,re,1,2,"h3",3),t.YNc(4,le,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function _e(n,i){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const ue=["*"];let pe=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-active",o.nzActive)("ant-skeleton-block",o.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,u.gn)([(0,k.yF)()],n.prototype,"nzBlock",void 0),n})(),ge=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const o=`${this.nzSize}px`;this.styleMap={width:o,height:o,"line-height":o}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:ie,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,o){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===o.nzShape)("ant-skeleton-avatar-circle","circle"===o.nzShape)("ant-skeleton-avatar-lg","large"===o.nzSize)("ant-skeleton-avatar-sm","small"===o.nzSize),t.Q6J("ngStyle",o.styleMap))},directives:[_.PC],encapsulation:2,changeDetection:0}),n})(),de=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],o.addClass(a.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,k.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,o=!!this.nzParagraph;let a="";return!e&&o?a="38%":e&&o&&(a="50%"),Object.assign({width:a},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,o=!!this.nzTitle,a={};return(!e||!o)&&(a.width="61%"),a.rows=!e&&o?3:2,Object.assign(Object.assign({},a),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:o}=this.paragraph;let a=[];return e&&Array.isArray(e)?a=e:e&&!Array.isArray(e)&&(a=[],a[o-1]=e),a}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-with-avatar",!!o.nzAvatar)("ant-skeleton-active",o.nzActive)("ant-skeleton-round",!!o.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:ue,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.F$t(),t.YNc(0,ce,5,3,"ng-container",0),t.YNc(1,_e,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",o.nzLoading),t.xp6(1),t.Q6J("ngIf",!o.nzLoading))},directives:[ge,_.O5,pe,_.sg],encapsulation:2,changeDetection:0}),n})(),kt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[A.vT,_.ez]]}),n})();var j=s(404),ct=s(6462),G=s(3677),at=s(6042),Y=s(7957),Q=s(4546),$=s(1047),vt=s(6114),me=s(4832),he=s(2845),fe=s(6950),Ce=s(5664),L=s(969),ze=s(4170);let ve=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[A.vT,_.ez,at.sL,he.U8,ze.YI,z.PV,L.T,fe.e4,me.g,j.cg,Ce.rt]]}),n})();var rt=s(3868),At=s(5737),Pt=s(685),bt=s(7525),Ae=s(8076),y=s(9439);function Pe(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function be(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Se(n,i){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,be,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function ye(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function Fe(n,i){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,ye,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function Ze(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Se,2,1,"span",7),t.YNc(2,Fe,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function we(n,i){1&n&&t._UZ(0,"i",15)}function Ie(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function Ne(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ie,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Be(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,we,1,0,"ng-template",null,13,t.W1O),t.YNc(3,Ne,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),o=t.oxw(2);t.xp6(3),t.Q6J("ngIf",o.nzCloseText)("ngIfElse",e)}}function Ue(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,Pe,2,2,"ng-container",2),t.YNc(2,Ze,3,2,"div",3),t.YNc(3,Be,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let Re=(()=>{class n{constructor(e,o,a){this.nzConfigService=e,this.cdr=o,this.directionality=a,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new C.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:o,nzDescription:a,nzType:r,nzBanner:d}=e;if(o&&(this.isShowIconSet=!0),r)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}a&&(this.iconTheme=this.nzDescription?"outline":"fill"),d&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.jY),t.Y36(t.sBO),t.Y36(A.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,o){1&e&&t.YNc(0,Ue,4,23,"div",0),2&e&&t.Q6J("ngIf",!o.closed)},directives:[_.O5,z.Ls,L.f],encapsulation:2,data:{animation:[Ae.Rq]},changeDetection:0}),(0,u.gn)([(0,y.oS)(),(0,k.yF)()],n.prototype,"nzCloseable",void 0),(0,u.gn)([(0,y.oS)(),(0,k.yF)()],n.prototype,"nzShowIcon",void 0),(0,u.gn)([(0,k.yF)()],n.prototype,"nzBanner",void 0),(0,u.gn)([(0,k.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),Le=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[A.vT,_.ez,z.PV,L.T]]}),n})();var H=s(4147),_t=s(5197);function Je(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function Qe(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.hij(" ",e(o.nzPercent)," ")}}const qe=function(n){return{$implicit:n}};function We(n,i){if(1&n&&t.YNc(0,Qe,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,qe,e.nzPercent))}}function Ye(n,i){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Je,2,1,"ng-container",6),t.YNc(2,We,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===o.status||"success"===o.status)&&!o.nzFormat)("ngIfElse",e)}}function Ke(n,i){if(1&n&&t.YNc(0,Ye,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function Ge(n,i){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function $e(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,Ge,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function Ve(n,i){}function je(n,i){if(1&n&&(t.ynx(0),t.YNc(1,$e,4,11,"div",11),t.YNc(2,Ve,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function He(n,i){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",i.$implicit)}function Xe(n,i){}function tn(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,He,1,1,"div",19),t.YNc(2,Xe,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function en(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,je,3,2,"ng-container",2),t.YNc(2,tn,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function nn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=i.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function on(n,i){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,nn,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function an(n,i){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",o.pathString)("stroke-linecap",o.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",o.nzPercent?o.strokeWidth:0)}}function rn(n,i){1&n&&t.O4$()}function sn(n,i){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,on,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,an,1,5,"path",23),t.qZA(),t.YNc(5,rn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}const yt=n=>{let i=[];return Object.keys(n).forEach(e=>{const o=n[e],a=function ln(n){return+n.replace("%","")}(e);isNaN(a)||i.push({key:a,value:o})}),i=i.sort((e,o)=>e.key-o.key),i};let un=0;const Ft="progress",pn=new Map([["success","check"],["exception","close"]]),gn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),dn=n=>`${n}%`;let Zt=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzConfigService=o,this.directionality=a,this._nzModuleName=Ft,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=un++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=r=>`${r}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new C.xQ}get formatter(){return this.nzFormat||dn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:o,nzGapPosition:a,nzStrokeLinecap:r,nzStrokeColor:d,nzGapDegree:f,nzType:x,nzStatus:E,nzPercent:F,nzSuccessPercent:w,nzStrokeWidth:I}=e;E&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(F||w)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,k.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(E||F||w||d)&&this.updateIcon(),d&&this.setStrokeColor(),(a||r||f||x||F||d||d)&&this.getCirclePaths(),(F||o||I)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(Ft).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=pn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),o="small"===this.nzSize?2:14,a=[];for(let r=0;r{const R=2===e.length&&0===I;return{stroke:this.isGradient&&!R?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:R?gn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(w||0)/100*(r-d)}px ${r}px`,strokeDashoffset:`-${d/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,o=this.isGradient=!!e&&"string"!=typeof e;o&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:i="#1890ff",to:e="#1890ff",direction:o="to right"}=n,a=(0,u._T)(n,["from","to","direction"]);return 0!==Object.keys(a).length?`linear-gradient(${o}, ${yt(a).map(({key:d,value:f})=>`${f} ${d}%`).join(", ")})`:`linear-gradient(${o}, ${i}, ${e})`})(e):o&&this.isCircleStyle?this.circleGradient=(n=>yt(this.nzStrokeColor).map(({key:i,value:e})=>({offset:`${i}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(y.jY),t.Y36(A.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,o){1&e&&(t.YNc(0,Ke,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,en,3,2,"div",2),t.YNc(4,sn,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===o.nzType)("ant-progress-small","small"===o.nzSize)("ant-progress-show-info",o.nzShowInfo)("ant-progress-circle",o.isCircleStyle)("ant-progress-steps",o.isSteps)("ant-progress-rtl","rtl"===o.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+o.status),t.xp6(1),t.Q6J("ngIf","line"===o.nzType),t.xp6(1),t.Q6J("ngIf",o.isCircleStyle))},directives:[_.O5,z.Ls,L.f,_.mk,_.tP,_.sg,_.PC],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,y.oS)()],n.prototype,"nzShowInfo",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzStrokeColor",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzPercent",void 0),(0,u.gn)([(0,y.oS)(),(0,k.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,u.gn)([(0,y.oS)(),(0,k.Rn)()],n.prototype,"nzGapDegree",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzGapPosition",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzSteps",void 0),n})(),mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[A.vT,_.ez,z.PV,L.T]]}),n})();var q=s(592),wt=s(925);let hn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();const fn=function(n){return{$implicit:n}};function Cn(n,i){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,fn,e.nzValue))}}function zn(n,i){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function Tn(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function xn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,zn,2,1,"span",4),t.YNc(2,Tn,2,1,"span",5),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.displayInt),t.xp6(1),t.Q6J("ngIf",e.displayDecimal)}}function Dn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function Mn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function En(n,i){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,Mn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function On(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function kn(n,i){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,On,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let vn=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,_.dv)(this.locale_id,_.wE.Decimal),o=String(this.nzValue),[a,r]=o.split(e);this.displayInt=a,this.displayDecimal=r?`${e}${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,Cn,1,4,"ng-container",1),t.YNc(2,xn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!o.nzValueTemplate))},directives:[_.O5,_.tP],encapsulation:2,changeDetection:0}),n})(),It=(()=>{class n{constructor(e,o){this.cdr=e,this.directionality=o,this.nzValueStyle={},this.dir="ltr",this.destroy$=new C.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(A.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Dn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,En,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,kn,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===o.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",o.nzTitle),t.xp6(1),t.Q6J("ngStyle",o.nzValueStyle),t.xp6(1),t.Q6J("ngIf",o.nzPrefix),t.xp6(1),t.Q6J("nzValue",o.nzValue)("nzValueTemplate",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",o.nzSuffix))},directives:[vn,L.f,_.PC,_.O5],encapsulation:2,changeDetection:0}),n})(),An=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[A.vT,_.ez,wt.ud,L.T,hn]]}),n})();var Nt=s(6787),Pn=s(1059),X=s(7545),bn=s(7138),P=s(2994),Sn=s(6947),ut=s(4090);function yn(n,i){1&n&&t.Hsn(0)}const Fn=["*"];function Zn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function wn(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Zn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function In(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function Nn(n,i){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,In,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function Bn(n,i){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,wn,2,1,"div",4),t.YNc(2,Nn,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function Un(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Rn(n,i){}function Ln(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Un,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Rn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Jn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Qn(n,i){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Jn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function qn(n,i){}function Wn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Qn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,qn,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function Yn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ln,7,5,"ng-container",2),t.YNc(2,Wn,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function Kn(n,i){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,Yn,3,2,"ng-container",11),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Gn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Kn,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function $n(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Vn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,$n,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function jn(n,i){}function Hn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,jn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function Xn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,Vn,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,Hn,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function to(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Xn,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function eo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function no(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,eo,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function oo(n,i){}function io(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,oo,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function ao(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,no,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,io,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function ro(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ao,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function so(n,i){if(1&n&&(t.ynx(0),t.YNc(1,to,2,1,"ng-container",2),t.YNc(2,ro,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let pt=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new C.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(t.Rgc,7),2&e){let a;t.iGM(a=t.CRH())&&(o.content=a.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:Fn,decls:1,vars:0,template:function(e,o){1&e&&(t.F$t(),t.YNc(0,yn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzSpan",void 0),n})();const co={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let Bt=(()=>{class n{constructor(e,o,a,r){this.nzConfigService=e,this.cdr=o,this.breakpointService=a,this.directionality=r,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=co,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=ut.G_.md,this.destroy$=new C.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,Pn.O)(this.items),(0,O.R)(this.destroy$));(0,Nt.T)(e,e.pipe((0,X.w)(()=>(0,Nt.T)(...this.items.map(o=>o.inputChange$)).pipe((0,bn.e)(16)))),this.breakpointService.subscribe(ut.WV).pipe((0,P.b)(o=>this.breakpoint=o))).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],o=0;const a=this.realColumn=this.getColumn(),r=this.items.toArray(),d=r.length,f=[],x=()=>{f.push(e),e=[],o=0};for(let E=0;E=a?(o>a&&(0,Sn.ZK)(`"nzColumn" is ${a} but we have row length ${o}`),e.push({title:w,content:I,span:a-(o-R)}),x()):E===d-1?(e.push({title:w,content:I,span:a-(o-R)}),x()):e.push({title:w,content:I,span:R})}this.itemMatrix=f}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.jY),t.Y36(t.sBO),t.Y36(ut.r3),t.Y36(A.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,o,a){if(1&e&&t.Suo(a,pt,4),2&e){let r;t.iGM(r=t.CRH())&&(o.items=r)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,o){2&e&&t.ekj("ant-descriptions-bordered",o.nzBordered)("ant-descriptions-middle","middle"===o.nzSize)("ant-descriptions-small","small"===o.nzSize)("ant-descriptions-rtl","rtl"===o.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,o){1&e&&(t.YNc(0,Bn,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,Gn,2,1,"ng-container",2),t.YNc(5,so,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",o.nzTitle||o.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===o.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===o.nzLayout))},directives:[_.O5,L.f,_.sg,_.tP],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,k.yF)(),(0,y.oS)()],n.prototype,"nzBordered",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzColumn",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,y.oS)(),(0,k.yF)()],n.prototype,"nzColon",void 0),n})(),_o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[A.vT,_.ez,L.T,wt.ud]]}),n})();var Z=s(1086),st=s(8896),Ut=s(353),uo=s(6498),po=s(3489);const Rt={leading:!0,trailing:!1};class fo{constructor(i,e,o,a){this.duration=i,this.scheduler=e,this.leading=o,this.trailing=a}call(i,e){return e.subscribe(new Co(i,this.duration,this.scheduler,this.leading,this.trailing))}}class Co extends po.L{constructor(i,e,o,a,r){super(i),this.duration=e,this.scheduler=o,this.leading=a,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(i){this.throttled?this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(zo,this.duration,{subscriber:this})),this.leading?this.destination.next(i):this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const i=this.throttled;i&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),i.unsubscribe(),this.remove(i),this.throttled=null)}}function zo(n){const{subscriber:i}=n;i.clearThrottle()}class gt{constructor(i){this.changes=i}static of(i){return new gt(i)}notEmpty(i){if(this.changes[i]){const e=this.changes[i].currentValue;if(null!=e)return(0,Z.of)(e)}return st.E}has(i){return this.changes[i]?(0,Z.of)(this.changes[i].currentValue):st.E}notFirst(i){return this.changes[i]&&!this.changes[i].isFirstChange()?(0,Z.of)(this.changes[i].currentValue):st.E}notFirstAndEmpty(i){if(this.changes[i]&&!this.changes[i].isFirstChange()){const e=this.changes[i].currentValue;if(null!=e)return(0,Z.of)(e)}return st.E}}const Lt=new t.OlP("NGX_ECHARTS_CONFIG");let Jt=(()=>{class n{constructor(e,o,a){this.el=o,this.ngZone=a,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.resize$=new C.xQ,this.echarts=e.echarts}ngOnChanges(e){const o=gt.of(e);o.notFirstAndEmpty("options").subscribe(a=>this.onOptionsChange(a)),o.notFirstAndEmpty("merge").subscribe(a=>this.setOption(a)),o.has("loading").subscribe(a=>this.toggleLoading(!!a)),o.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function ho(n,i=Ut.P,e=Rt){return o=>o.lift(new fo(n,i,e.leading,e.trailing))}(100,Ut.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,o){if(this.chart)try{this.chart.setOption(e,o)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){return(0,u.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const o=window.getComputedStyle(e,null).getPropertyValue("height");(!o||"0px"===o)&&(!e.style.height||"0px"===e.style.height)&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:a})=>a(e,this.theme,this.initOpts)))}initChart(){return(0,u.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,u.mG)(this,void 0,void 0,function*(){!e||(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe((0,X.w)(o=>new uo.y(a=>(o.on(e,r=>this.ngZone.run(()=>a.next(r))),()=>{this.chart&&(this.chart.isDisposed()||o.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Lt),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[t.TTD]}),n})(),To=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Lt,useValue:e}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();var xo=s(4466),tt=s(2302),Qt=s(1715),qt=s(1746),Wt=s(534),et=s(7221),dt=s(7106),Yt=s(5278),mt=s(844),Do=s(7512),Mo=s(5545);let Eo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.userInfo.name),t.xp6(2),t.Oqu(o.userInfo.gender),t.xp6(2),t.Oqu(o.userInfo.uid),t.xp6(2),t.Oqu(o.userInfo.level),t.xp6(2),t.hij(" ",o.userInfo.sign," "))},directives:[m.bd,Bt,pt],styles:[""],changeDetection:0}),n})();function Oo(n,i){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function ko(n,i){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function vo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Ao(n,i){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function Po(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function bo(n,i){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e," ")}}function So(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let yo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,Oo,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,ko,2,0,"ng-container",10),t.YNc(14,vo,2,0,"ng-container",10),t.YNc(15,Ao,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,Po,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,bo,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,So,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.roomInfo.title),t.xp6(2),t.AsE(" ",o.roomInfo.parent_area_name," - ",o.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",o.roomInfo.short_room_id),t.xp6(2),t.hij(" ",o.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",o.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==o.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.description.split("\n")))},directives:[m.bd,Bt,pt,_.O5,_.RF,_.n9,_.sg,Et],pipes:[_.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})();var h=s(2948),V=s(2134);let Kt=(()=>{class n{transform(e){return(0,V.LU)(e,!0)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})();var ht=s(3692),Fo=s(855);let lt=(()=>{class n{transform(e,o){return Fo(e,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();var Gt=s(3520);function Zo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"duration")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_elapsed))}}function wo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_rate))}}const Io=function(){return{spacer:" "}};function No(n,i){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.rec_total,t.DdM(4,Io)))}}function Bo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"quality")),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_quality_number?t.lcZ(1,1,e.taskStatus.real_quality_number)+" ("+e.taskStatus.real_quality_number+")":"")}}let Uo=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===h.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,V.N4)(a.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u5f55\u5236\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:o=>(0,V.N4)(o)}},series:[{name:"\u5f55\u5236\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),this.taskStatus.rec_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:17,vars:17,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValueTemplate"],["recordingElapsed",""],["recordingRate",""],["recordedTotal",""],["recordingQuality",""],[3,"nzTitle","nzValue"],["echarts","",1,"rec-rate-chart",3,"loading","options","merge"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Zo,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,wo,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,No,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,Bo,2,3,"ng-template",null,6,t.W1O),t._UZ(14,"nz-statistic",7),t.ALo(15,"number"),t.qZA(),t._UZ(16,"div",8),t.qZA()),2&e){const a=t.MAs(4),r=t.MAs(7),d=t.MAs(10),f=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",r),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",f),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,o.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[m.bd,It,Jt],pipes:[Kt,ht.f,lt,Gt.U,_.JJ],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.rec-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})();function Ro(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function Lo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const Jo=function(){return{bitrate:!0}};function Qo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,8*e.taskStatus.dl_rate,t.DdM(4,Jo)))}}const qo=function(){return{spacer:" "}};function Wo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.dl_total,t.DdM(4,qo)))}}let Yo=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===h.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,V.AX)(a.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u4e0b\u8f7d\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:function(o){return(0,V.AX)(o)}}},series:[{name:"\u4e0b\u8f7d\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),8*this.taskStatus.dl_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-network-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:15,vars:12,consts:[["nzTitle","\u7f51\u7edc\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[1,"stream-host",3,"nzTitle","nzValueTemplate"],["streamHost",""],[3,"nzTitle","nzValueTemplate"],["realStreamFormat",""],["downloadRate",""],["downloadTotal",""],["echarts","",1,"dl-rate-chart",3,"loading","options","merge"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Ro,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,Lo,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,Qo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,Wo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const a=t.MAs(4),r=t.MAs(7),d=t.MAs(10),f=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",r),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",f),t.xp6(3),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[m.bd,It,Jt],pipes:[ht.f,lt],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.stream-host[_ngcontent-%COMP%]{grid-column:1/3;grid-row:1}.dl-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})(),ft=(()=>{class n{transform(e){var o,a;return e?e.startsWith("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":null!==(a=e.split("\\").pop())&&void 0!==a?a:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),$t=(()=>{class n{transform(e){return e&&0!==e.total?Math.round(e.count/e.total*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),Ko=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case h.ii.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case h.ii.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let a;t.Q6J("nzTitle",o.title)("nzLoading",o.loading),t.xp6(1),t.Q6J("title",o.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(a=o.taskStatus.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzPercent",null===o.taskStatus.postprocessing_progress?0:t.lcZ(5,7,o.taskStatus.postprocessing_progress))}},directives:[m.bd,Zt],pipes:[ft,$t],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const Go=new Map([[h.cS.RECORDING,"\u5f55\u5236\u4e2d"],[h.cS.INJECTING,"\u5904\u7406\u4e2d"],[h.cS.REMUXING,"\u5904\u7406\u4e2d"],[h.cS.COMPLETED,"\u5df2\u5b8c\u6210"],[h.cS.MISSING,"\u4e0d\u5b58\u5728"],[h.cS.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let $o=(()=>{class n{transform(e){var o;return null!==(o=Go.get(e))&&void 0!==o?o:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function Vo(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function jo(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const Vt=[h.cS.RECORDING,h.cS.INJECTING,h.cS.REMUXING,h.cS.COMPLETED,h.cS.MISSING];let Ho=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=h.cS,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,o)=>e.path.localeCompare(o.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,o)=>{switch(e){case"video":return o.path.endsWith(".flv")||o.path.endsWith(".mp4");case"danmaku":return o.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,o)=>e.size-o.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,o)=>Vt.indexOf(e.status)-Vt.indexOf(o.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[h.cS.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[h.cS.INJECTING,h.cS.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[h.cS.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[h.cS.MISSING]}],filterFn:(e,o)=>e.some(a=>a.some(r=>r===o.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,o){return o.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,Vo,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,jo,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(2);t.Q6J("nzLoading",o.loading),t.xp6(1),t.Q6J("nzLoading",o.loading)("nzData",o.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",o.columns),t.xp6(2),t.Q6J("ngForOf",a.data)("ngForTrackBy",o.trackByPath)}},directives:[m.bd,q.N8,q.Om,q.$Z,_.sg,q.Uo,q._C,q.qD,q.p0],pipes:[ft,_.JJ,lt,$o],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function Xo(n,i){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function ti(n,i){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function ei(n,i){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ni(n,i){if(1&n&&t._UZ(0,"app-task-network-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function oi(n,i){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ii(n,i){if(1&n&&(t.YNc(0,Xo,1,2,"app-task-user-info-detail",2),t.YNc(1,ti,1,2,"app-task-room-info-detail",3),t.YNc(2,ei,1,2,"app-task-recording-detail",4),t.YNc(3,ni,1,2,"app-task-network-detail",4),t.YNc(4,oi,1,2,"app-task-postprocessing-detail",4),t._UZ(5,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const ai=function(){return{"max-width":"unset"}},ri=function(){return{"row-gap":"1em"}};let si=(()=>{class n{constructor(e,o,a,r,d){this.route=e,this.router=o,this.changeDetector=a,this.notification=r,this.taskService=d,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,Z.of)((0,Z.of)(0),(0,Qt.F)(1e3)).pipe((0,Wt.u)(),(0,X.w)(()=>(0,qt.$R)(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,et.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,dt.X)(10,3e3)).subscribe(([e,o,a])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=o,this.danmakuFileDetails=a,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(tt.gz),t.Y36(tt.F0),t.Y36(t.sBO),t.Y36(Yt.zb),t.Y36(mt.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,o){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ii,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",o.loading)("pageStyles",t.DdM(3,ai))("contentStyles",t.DdM(4,ri))},directives:[Do.q,Mo.Y,_.O5,Eo,yo,Uo,Yo,Ko,Ho],styles:[""],changeDetection:0}),n})();var jt=s(2323),li=s(13),ci=s(5778),K=s(4850);const nt=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var Ct=s(9727);let zt=(()=>{class n{constructor(e,o){this.message=e,this.taskService=o}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,K.U)(e=>e.map(o=>o.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,P.b)(()=>{this.message.success(`[${e}] \u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e`)},o=>{this.message.error(`[${e}] \u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${o.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,P.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,K.U)(o=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,et.K)(o=>{let a;return a=409==o.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==o.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==o.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${o.message}`},(0,Z.of)(a)}),(0,K.U)(o=>(o.message=`${e}: ${o.message}`,o)),(0,P.b)(o=>{this.message[o.type](o.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,P.b)(()=>{this.message.success(`[${e}] \u4efb\u52a1\u5df2\u5220\u9664`)},o=>{this.message.error(`[${e}] \u5220\u9664\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,P.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}startTask(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u8fd0\u884c\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,P.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u8fd0\u884c\u4efb\u52a1`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,P.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}stopTask(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u505c\u6b62\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.stopTask(e,o).pipe((0,P.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u505c\u6b62\u4efb\u52a1`)},r=>{this.message.remove(a),this.message.error(`[${e}] \u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${r.message}`)}))}stopAllTasks(e=!1){const o=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,P.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},a=>{this.message.remove(o),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}enableRecorder(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u5f00\u542f\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,P.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u5f00\u542f\u5f55\u5236`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u5f00\u542f\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}enableAllRecorders(){const e=this.message.loading("\u6b63\u5728\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableAllRecorders().pipe((0,P.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},o=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${o.message}`)}))}disableRecorder(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u5173\u95ed\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,o).pipe((0,P.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u5173\u95ed\u5f55\u5236`)},r=>{this.message.remove(a),this.message.error(`[${e}] \u5173\u95ed\u5f55\u5236\u51fa\u9519: ${r.message}`)}))}disableAllRecorders(e=!1){const o=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,P.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},a=>{this.message.remove(o),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}canCutStream(e){return this.taskService.canCutStream(e).pipe((0,P.b)(o=>{o||this.message.warning(`[${e}] \u4e0d\u652f\u6301\u6587\u4ef6\u5207\u5272~`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,P.b)(()=>{this.message.success(`[${e}] \u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1`)},o=>{403==o.status?this.message.warning(`[${e}] \u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002`):this.message.error(`[${e}] \u5207\u5272\u6587\u4ef6\u51fa\u9519: ${o.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ct.dD),t.LFG(mt.M))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Tt=s(2683),ot=s(4219);function _i(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),o=t.MAs(9),a=t.MAs(11),r=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",r)}}function ui(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),o=t.MAs(9),a=t.MAs(11),r=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",r)}}function pi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),o=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function gi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function di(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.YNc(1,gi,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const a=t.MAs(2),r=t.oxw();return a.value="",r.onFilterInput("")}),t.qZA()}}function fi(n,i){if(1&n&&t.YNc(0,hi,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function Ci(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const a=t.MAs(2);return t.oxw().onFilterInput(a.value)}),t.qZA(),t.qZA(),t.YNc(3,fi,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function Ti(n,i){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function xi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function Di(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function Mi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),o=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",o)}}function Ei(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Oi=function(){return{padding:"0"}};function ki(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().drawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,Mi,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Ei,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),o=t.MAs(23);t.Q6J("nzTitle",o)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,Oi))("nzVisible",e.menuDrawerVisible)}}function vi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let Ai=(()=>{class n{constructor(e,o,a,r,d,f){this.message=a,this.modal=r,this.clipboard=d,this.taskManager=f,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new C.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new C.xQ,this.selections=[{label:"\u5168\u90e8",value:h.jf.ALL},{label:"\u5f55\u5236\u4e2d",value:h.jf.RECORDING},{label:"\u5f55\u5236\u5f00",value:h.jf.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:h.jf.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:h.jf.MONITOR_ENABLED},{label:"\u505c\u6b62",value:h.jf.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:h.jf.LIVING},{label:"\u8f6e\u64ad",value:h.jf.ROUNDING},{label:"\u95f2\u7f6e",value:h.jf.PREPARING}],o.observe(nt).pipe((0,O.R)(this.destroyed)).subscribe(x=>{this.useDrawer=x.breakpoints[nt[0]],this.useSelector=x.breakpoints[nt[1]],this.useRadioGroup=x.breakpoints[nt[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,li.b)(300),(0,ci.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,o)=>{this.taskManager.removeAllTasks().subscribe(e,o)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopAllTasks(e).subscribe(o,a)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableAllRecorders(e).subscribe(o,a)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,K.U)(e=>e.join(" ")),(0,P.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(v.Yg),t.Y36(Ct.dD),t.Y36(Y.Sf),t.Y36(c),t.Y36(zt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,_i,8,4,"ng-container",1),t.YNc(2,ui,8,4,"ng-container",1),t.YNc(3,pi,3,2,"ng-container",1),t.qZA(),t.YNc(4,di,2,2,"ng-template",null,2,t.W1O),t.YNc(6,mi,1,2,"ng-template",null,3,t.W1O),t.YNc(8,Ci,5,1,"ng-template",null,4,t.W1O),t.YNc(10,zi,4,3,"ng-template",null,5,t.W1O),t.YNc(12,Ti,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,xi,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,Di,2,0,"ng-template",null,10,t.W1O),t.YNc(21,ki,4,7,"nz-drawer",11),t.YNc(22,vi,3,0,"ng-template",null,12,t.W1O)),2&e){const a=t.MAs(18);t.ekj("use-drawer",o.useDrawer),t.xp6(1),t.Q6J("ngIf",o.useRadioGroup),t.xp6(1),t.Q6J("ngIf",o.useSelector),t.xp6(1),t.Q6J("ngIf",o.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",a),t.xp6(5),t.Q6J("ngIf",o.useDrawer)}},directives:[_.O5,_.tP,At.g,rt.Dg,g.JJ,g.On,_.sg,rt.Of,rt.Bq,_t.Vq,Tt.w,$.gB,$.ke,$.Zp,z.Ls,at.ix,G.wA,G.cm,G.RR,ot.wO,ot.r9,ot.YV,H.Vz,H.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var Pi=s(5136);let bi=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var o;const a=this.storage.getData(this.getStorageKey(e));return a&&null!==(o=JSON.parse(a))&&void 0!==o?o:{}}updateSettings(e,o){o=Object.assign(this.getSettings(e),o);const a=JSON.stringify(o);this.storage.setData(this.getStorageKey(e),a)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(jt.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Si=s(5141);const Ht=function(){return{spacer:""}};function yi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"datarate"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.rec_elapsed)," "),t.xp6(3),t.hij(" ",t.xi3(9,8,e.status.rec_rate,t.DdM(22,Ht))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,Ht))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u603b\u8ba1\uff1a",t.xi3(14,14,e.status.danmu_total,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,17,e.status.danmu_total,"1.0-0")," "),t.xp6(3),t.hij(" ",e.status.real_quality_number?t.lcZ(19,20,e.status.real_quality_number):""," ")}}function Fi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function Zi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let wi=(()=>{class n{constructor(){this.RunningStatus=h.cG}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u7528\u65f6","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u603b\u8ba1","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,o){1&e&&(t.ynx(0,0),t.YNc(1,yi,20,24,"div",1),t.YNc(2,Fi,7,13,"div",1),t.YNc(3,Zi,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",o.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.REMUXING))},directives:[_.RF,_.n9,j.SY,Zt],pipes:[Kt,ht.f,lt,_.JJ,Gt.U,ft,$t],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var U=s(3523),N=s(8737),Ii=s(6457),Ni=s(4501);function Bi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function Ui(n,i){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function Ri(n,i){if(1&n&&(t.YNc(0,Bi,2,0,"ng-container",67),t.YNc(1,Ui,2,0,"ng-container",67)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Li(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u5927\u5c0f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1a\u6570\u5b57 + \u5355\u4f4d(GB, MB, KB, B) "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"0 B"),t.qZA(),t._UZ(8,"br"),t.qZA())}function Ji(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",68),t.TgZ(1,"nz-form-label",14),t._uU(2,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.YNc(3,Li,9,0,"ng-template",null,69,t.W1O),t.TgZ(5,"nz-form-control",70),t.TgZ(6,"app-input-filesize",71),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.output.filesizeLimit=a}),t.qZA(),t.qZA(),t.TgZ(7,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.output.filesizeLimit=a?r.globalSettings.output.filesizeLimit:null}),t._uU(8,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.output.filesizeLimit)("disabled",null===o.options.output.filesizeLimit),t.xp6(1),t.Q6J("nzChecked",null!==o.options.output.filesizeLimit)}}function Qi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u65f6\u957f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1aHH:MM:SS "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"00:00:00"),t.qZA(),t._UZ(8,"br"),t.qZA())}function qi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",72),t.TgZ(1,"nz-form-label",14),t._uU(2,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.YNc(3,Qi,9,0,"ng-template",null,73,t.W1O),t.TgZ(5,"nz-form-control",70),t.TgZ(6,"app-input-duration",74),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.output.durationLimit=a}),t.qZA(),t.qZA(),t.TgZ(7,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.output.durationLimit=a?r.globalSettings.output.durationLimit:null}),t._uU(8,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.output.durationLimit)("disabled",null===o.options.output.durationLimit),t.xp6(1),t.Q6J("nzChecked",null!==o.options.output.durationLimit)}}function Wi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function Yi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function Ki(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",14),t._uU(2,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(3,Yi,8,0,"ng-template",null,75,t.W1O),t.TgZ(5,"nz-form-control",16),t.TgZ(6,"nz-select",76,77),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.fmp4StreamTimeout=a}),t.qZA(),t.qZA(),t.TgZ(8,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.fmp4StreamTimeout=a?r.globalSettings.recorder.fmp4StreamTimeout:null}),t._uU(9,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.recorder.fmp4StreamTimeout)("disabled",null===o.options.recorder.fmp4StreamTimeout)("nzOptions",o.fmp4StreamTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==o.options.recorder.fmp4StreamTimeout)}}function Gi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u6807\u51c6\u6a21\u5f0f: \u5bf9\u4e0b\u8f7d\u7684\u6d41\u6570\u636e\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(2,"br"),t._uU(3," \u539f\u59cb\u6a21\u5f0f: \u76f4\u63a5\u4e0b\u8f7d\u6d41\u6570\u636e\uff0c\u6ca1\u6709\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u4e0d\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(4,"br"),t.qZA())}function $i(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",14),t._uU(2,"\u5f55\u5236\u6a21\u5f0f"),t.qZA(),t.YNc(3,Gi,5,0,"ng-template",null,78,t.W1O),t.TgZ(5,"nz-form-control",16),t.TgZ(6,"nz-select",79),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.recordingMode=a}),t.qZA(),t.qZA(),t.TgZ(7,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.recordingMode=a?r.globalSettings.recorder.recordingMode:null}),t._uU(8,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.recorder.recordingMode)("disabled",null===o.options.recorder.recordingMode)("nzOptions",o.recordingModeOptions),t.xp6(1),t.Q6J("nzChecked",null!==o.options.recorder.recordingMode)}}function Vi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function ji(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",80),t._uU(2,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(3,"nz-form-control",81),t.TgZ(4,"nz-select",82,83),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.readTimeout=a}),t.qZA(),t.qZA(),t.TgZ(6,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.readTimeout=a?r.globalSettings.recorder.readTimeout:null}),t._uU(7,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(5),o=t.oxw(2);t.xp6(3),t.Q6J("nzValidateStatus",e.value>3?"warning":e),t.xp6(1),t.Q6J("ngModel",o.model.recorder.readTimeout)("disabled",null===o.options.recorder.readTimeout)("nzOptions",o.readTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==o.options.recorder.readTimeout)}}function Hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",84),t._uU(2,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(3,"nz-form-control",16),t.TgZ(4,"nz-select",85),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.bufferSize=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.bufferSize=a?r.globalSettings.recorder.bufferSize:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.model.recorder.bufferSize)("disabled",null===e.options.recorder.bufferSize)("nzOptions",e.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==e.options.recorder.bufferSize)}}function Xi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",86),t._uU(2,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(3,"nz-form-control",22),t.TgZ(4,"nz-switch",87),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.postprocessing.injectExtraMetadata=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.postprocessing.injectExtraMetadata=a?r.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.model.postprocessing.injectExtraMetadata)("disabled",null===e.options.postprocessing.injectExtraMetadata||!!e.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==e.options.postprocessing.injectExtraMetadata)}}function ta(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function ea(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"\u4e3b\u7ad9 API \u7684 BASE URL"),t.qZA())}function na(n,i){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function oa(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u65e0\u6548 "),t.BQk())}function ia(n,i){if(1&n&&(t.YNc(0,na,2,0,"ng-container",67),t.YNc(1,oa,2,0,"ng-container",67)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function aa(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"\u76f4\u64ad API (getRoomPlayInfo \u9664\u5916) \u7684 BASE URL"),t.qZA())}function ra(n,i){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function sa(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u65e0\u6548 "),t.BQk())}function la(n,i){if(1&n&&(t.YNc(0,ra,2,0,"ng-container",67),t.YNc(1,sa,2,0,"ng-container",67)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function ca(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1,"\u76f4\u64ad API getRoomPlayInfo \u7684 BASE URL"),t.qZA())}function ua(n,i){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function pa(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u65e0\u6548 "),t.BQk())}function ga(n,i){if(1&n&&(t.YNc(0,ua,2,0,"ng-container",67),t.YNc(1,pa,2,0,"ng-container",67)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function da(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function ma(n,i){1&n&&t.YNc(0,da,2,0,"ng-container",67),2&n&&t.Q6J("ngIf",i.$implicit.hasError("required"))}function ha(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.output.pathTemplate=a}),t.qZA(),t.YNc(10,Ri,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.output.pathTemplate=a?r.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(14,Ji,9,4,"nz-form-item",10),t.YNc(15,qi,9,4,"nz-form-item",11),t.qZA(),t.TgZ(16,"div",12),t.TgZ(17,"h2"),t._uU(18,"\u5f55\u5236"),t.qZA(),t.TgZ(19,"nz-form-item",13),t.TgZ(20,"nz-form-label",14),t._uU(21,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(22,Wi,14,0,"ng-template",null,15,t.W1O),t.TgZ(24,"nz-form-control",16),t.TgZ(25,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.streamFormat=a}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.streamFormat=a?r.globalSettings.recorder.streamFormat:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(28,Ki,10,5,"nz-form-item",18),t.YNc(29,$i,9,5,"nz-form-item",18),t.TgZ(30,"nz-form-item",13),t.TgZ(31,"nz-form-label",19),t._uU(32,"\u753b\u8d28"),t.qZA(),t.TgZ(33,"nz-form-control",16),t.TgZ(34,"nz-select",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.qualityNumber=a}),t.qZA(),t.qZA(),t.TgZ(35,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.qualityNumber=a?r.globalSettings.recorder.qualityNumber:null}),t._uU(36,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(37,"nz-form-item",13),t.TgZ(38,"nz-form-label",21),t._uU(39,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(40,"nz-form-control",22),t.TgZ(41,"nz-switch",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.saveCover=a}),t.qZA(),t.qZA(),t.TgZ(42,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.saveCover=a?r.globalSettings.recorder.saveCover:null}),t._uU(43,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(44,"nz-form-item",13),t.TgZ(45,"nz-form-label",14),t._uU(46,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(47,Vi,8,0,"ng-template",null,24,t.W1O),t.TgZ(49,"nz-form-control",16),t.TgZ(50,"nz-select",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.coverSaveStrategy=a}),t.qZA(),t.qZA(),t.TgZ(51,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.coverSaveStrategy=a?r.globalSettings.recorder.coverSaveStrategy:null}),t._uU(52,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(53,ji,8,5,"nz-form-item",18),t.TgZ(54,"nz-form-item",13),t.TgZ(55,"nz-form-label",26),t._uU(56,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(57,"nz-form-control",16),t.TgZ(58,"nz-select",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=a}),t.qZA(),t.qZA(),t.TgZ(59,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.bufferSize=a?r.globalSettings.recorder.bufferSize:null}),t._uU(60,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(61,Hi,7,5,"nz-form-item",18),t.qZA(),t.TgZ(62,"div",28),t.TgZ(63,"h2"),t._uU(64,"\u5f39\u5e55"),t.qZA(),t.TgZ(65,"nz-form-item",13),t.TgZ(66,"nz-form-label",29),t._uU(67,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(68,"nz-form-control",22),t.TgZ(69,"nz-switch",30),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=a}),t.qZA(),t.qZA(),t.TgZ(70,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordGiftSend=a?r.globalSettings.danmaku.recordGiftSend:null}),t._uU(71,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(72,"nz-form-item",13),t.TgZ(73,"nz-form-label",31),t._uU(74,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(75,"nz-form-control",22),t.TgZ(76,"nz-switch",32),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=a}),t.qZA(),t.qZA(),t.TgZ(77,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordFreeGifts=a?r.globalSettings.danmaku.recordFreeGifts:null}),t._uU(78,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(79,"nz-form-item",13),t.TgZ(80,"nz-form-label",33),t._uU(81,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(82,"nz-form-control",22),t.TgZ(83,"nz-switch",34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=a}),t.qZA(),t.qZA(),t.TgZ(84,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordGuardBuy=a?r.globalSettings.danmaku.recordGuardBuy:null}),t._uU(85,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(86,"nz-form-item",13),t.TgZ(87,"nz-form-label",35),t._uU(88,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(89,"nz-form-control",22),t.TgZ(90,"nz-switch",36),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=a}),t.qZA(),t.qZA(),t.TgZ(91,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordSuperChat=a?r.globalSettings.danmaku.recordSuperChat:null}),t._uU(92,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(93,"nz-form-item",13),t.TgZ(94,"nz-form-label",37),t._uU(95,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(96,"nz-form-control",22),t.TgZ(97,"nz-switch",38),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.danmuUname=a}),t.qZA(),t.qZA(),t.TgZ(98,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.danmuUname=a?r.globalSettings.danmaku.danmuUname:null}),t._uU(99,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(100,"nz-form-item",13),t.TgZ(101,"nz-form-label",39),t._uU(102,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(103,"nz-form-control",22),t.TgZ(104,"nz-switch",40),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=a}),t.qZA(),t.qZA(),t.TgZ(105,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.saveRawDanmaku=a?r.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(106,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(107,"div",41),t.TgZ(108,"h2"),t._uU(109,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.YNc(110,Xi,7,3,"nz-form-item",18),t.TgZ(111,"nz-form-item",13),t.TgZ(112,"nz-form-label",42),t._uU(113,"\u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(114,"nz-form-control",22),t.TgZ(115,"nz-switch",43),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=a}),t.qZA(),t.qZA(),t.TgZ(116,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.postprocessing.remuxToMp4=a?r.globalSettings.postprocessing.remuxToMp4:null}),t._uU(117,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(118,"nz-form-item",13),t.TgZ(119,"nz-form-label",14),t._uU(120,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(121,ta,7,0,"ng-template",null,44,t.W1O),t.TgZ(123,"nz-form-control",16),t.TgZ(124,"nz-select",45),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=a}),t.qZA(),t.qZA(),t.TgZ(125,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.postprocessing.deleteSource=a?r.globalSettings.postprocessing.deleteSource:null}),t._uU(126,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(127,"div",46),t.TgZ(128,"h2"),t._uU(129,"BILI API"),t.qZA(),t.TgZ(130,"nz-form-item",4),t.TgZ(131,"nz-form-label",14),t._uU(132,"BASE API URL"),t.qZA(),t.YNc(133,ea,2,0,"ng-template",null,47,t.W1O),t.TgZ(135,"nz-form-control",6),t.TgZ(136,"input",48),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.biliApi.baseApiUrl=a}),t.qZA(),t.YNc(137,ia,2,2,"ng-template",null,49,t.W1O),t.qZA(),t.TgZ(139,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.biliApi.baseApiUrl=a?r.globalSettings.biliApi.baseApiUrl:null}),t._uU(140,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(141,"nz-form-item",4),t.TgZ(142,"nz-form-label",14),t._uU(143,"BASE LIVE API URL"),t.qZA(),t.YNc(144,aa,2,0,"ng-template",null,50,t.W1O),t.TgZ(146,"nz-form-control",6),t.TgZ(147,"input",51),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.biliApi.baseLiveApiUrl=a}),t.qZA(),t.YNc(148,la,2,2,"ng-template",null,52,t.W1O),t.qZA(),t.TgZ(150,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.biliApi.baseLiveApiUrl=a?r.globalSettings.biliApi.baseLiveApiUrl:null}),t._uU(151,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(152,"nz-form-item",4),t.TgZ(153,"nz-form-label",14),t._uU(154,"BASE PLAY INFO API URL"),t.qZA(),t.YNc(155,ca,2,0,"ng-template",null,53,t.W1O),t.TgZ(157,"nz-form-control",6),t.TgZ(158,"input",54),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.biliApi.basePlayInfoApiUrl=a}),t.qZA(),t.YNc(159,ga,2,2,"ng-template",null,55,t.W1O),t.qZA(),t.TgZ(161,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.biliApi.basePlayInfoApiUrl=a?r.globalSettings.biliApi.basePlayInfoApiUrl:null}),t._uU(162,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(163,"div",56),t.TgZ(164,"h2"),t._uU(165,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(166,"nz-form-item",57),t.TgZ(167,"nz-form-label",58),t._uU(168,"User Agent"),t.qZA(),t.TgZ(169,"nz-form-control",59),t.TgZ(170,"textarea",60,61),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.userAgent=a}),t.qZA(),t.qZA(),t.YNc(172,ma,1,1,"ng-template",null,62,t.W1O),t.TgZ(174,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.header.userAgent=a?r.globalSettings.header.userAgent:null}),t._uU(175,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(176,"nz-form-item",57),t.TgZ(177,"nz-form-label",63),t._uU(178,"Cookie"),t.qZA(),t.TgZ(179,"nz-form-control",64),t.TgZ(180,"textarea",65,66),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.cookie=a}),t.qZA(),t.qZA(),t.TgZ(182,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.header.cookie=a?r.globalSettings.header.cookie:null}),t._uU(183,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),o=t.MAs(23),a=t.MAs(48),r=t.MAs(122),d=t.MAs(134),f=t.MAs(138),x=t.MAs(145),E=t.MAs(149),F=t.MAs(156),w=t.MAs(160),I=t.MAs(171),R=t.MAs(173),ne=t.MAs(181),l=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",l.pathTemplatePattern)("ngModel",l.model.output.pathTemplate)("disabled",null===l.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==l.options.output.pathTemplate),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(1),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(5),t.Q6J("nzTooltipTitle",o),t.xp6(5),t.Q6J("ngModel",l.model.recorder.streamFormat)("disabled",null===l.options.recorder.streamFormat)("nzOptions",l.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.streamFormat),t.xp6(2),t.Q6J("ngIf","fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(1),t.Q6J("ngIf","fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(5),t.Q6J("ngModel",l.model.recorder.qualityNumber)("disabled",null===l.options.recorder.qualityNumber)("nzOptions",l.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",l.model.recorder.saveCover)("disabled",null===l.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.saveCover),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",l.model.recorder.coverSaveStrategy)("disabled",null===l.options.recorder.coverSaveStrategy||!l.options.recorder.saveCover)("nzOptions",l.coverSaveStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.coverSaveStrategy),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(5),t.Q6J("ngModel",l.model.recorder.disconnectionTimeout)("disabled",null===l.options.recorder.disconnectionTimeout)("nzOptions",l.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.bufferSize),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(8),t.Q6J("ngModel",l.model.danmaku.recordGiftSend)("disabled",null===l.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordFreeGifts)("disabled",null===l.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordGuardBuy)("disabled",null===l.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordSuperChat)("disabled",null===l.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.danmuUname)("disabled",null===l.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.saveRawDanmaku)("disabled",null===l.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.saveRawDanmaku),t.xp6(5),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.remuxToMp4)("disabled",null===l.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",r),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.deleteSource)("disabled",null===l.options.postprocessing.deleteSource||!l.options.postprocessing.remuxToMp4)("nzOptions",l.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.deleteSource),t.xp6(6),t.Q6J("nzTooltipTitle",d),t.xp6(4),t.Q6J("nzErrorTip",f),t.xp6(1),t.Q6J("pattern",l.baseUrlPattern)("ngModel",l.model.biliApi.baseApiUrl)("disabled",null===l.options.biliApi.baseApiUrl),t.xp6(3),t.Q6J("nzChecked",null!==l.options.biliApi.baseApiUrl),t.xp6(3),t.Q6J("nzTooltipTitle",x),t.xp6(4),t.Q6J("nzErrorTip",E),t.xp6(1),t.Q6J("pattern",l.baseUrlPattern)("ngModel",l.model.biliApi.baseLiveApiUrl)("disabled",null===l.options.biliApi.baseLiveApiUrl),t.xp6(3),t.Q6J("nzChecked",null!==l.options.biliApi.baseLiveApiUrl),t.xp6(3),t.Q6J("nzTooltipTitle",F),t.xp6(4),t.Q6J("nzErrorTip",w),t.xp6(1),t.Q6J("pattern",l.baseUrlPattern)("ngModel",l.model.biliApi.basePlayInfoApiUrl)("disabled",null===l.options.biliApi.basePlayInfoApiUrl),t.xp6(3),t.Q6J("nzChecked",null!==l.options.biliApi.basePlayInfoApiUrl),t.xp6(8),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",I.valid&&l.options.header.userAgent!==l.taskOptions.header.userAgent&&l.options.header.userAgent!==l.globalSettings.header.userAgent?"warning":I)("nzErrorTip",R),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.userAgent)("disabled",null===l.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==l.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",ne.valid&&l.options.header.cookie!==l.taskOptions.header.cookie&&l.options.header.cookie!==l.globalSettings.header.cookie?"warning":ne),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.cookie)("disabled",null===l.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==l.options.header.cookie)}}let fa=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.baseUrlPattern=N.yE,this.pathTemplatePattern=N._m,this.streamFormatOptions=(0,U.Z)(N.tp),this.recordingModeOptions=(0,U.Z)(N.kV),this.fmp4StreamTimeoutOptions=(0,U.Z)(N.D4),this.qualityOptions=(0,U.Z)(N.O6),this.readTimeoutOptions=(0,U.Z)(N.D4),this.disconnectionTimeoutOptions=(0,U.Z)(N.$w),this.bufferOptions=(0,U.Z)(N.Rc),this.deleteStrategies=(0,U.Z)(N.rc),this.coverSaveStrategies=(0,U.Z)(N.J_)}ngOnChanges(){this.options=(0,U.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,V.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const o of Object.keys(this.options)){const d=this.globalSettings[o];Reflect.set(e,o,new Proxy(this.options[o],{get:(f,x)=>{var E;return null!==(E=Reflect.get(f,x))&&void 0!==E?E:Reflect.get(d,x)},set:(f,x,E)=>Reflect.set(f,x,E)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(g.F,5),2&e){let a;t.iGM(a=t.CRH())&&(o.ngForm=a.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["pathTemplateErrorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],["class","setting-item filesize-limit",4,"ngIf"],["class","setting-item duration-limit",4,"ngIf"],["ngModelGroup","recorder",1,"form-group","recorder"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["streamFormatTip",""],[1,"setting-control","select"],["name","streamFormat",3,"ngModel","disabled","nzOptions","ngModelChange"],["class","setting-item",4,"ngIf"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["name","qualityNumber",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch"],["name","saveCover",3,"ngModel","disabled","ngModelChange"],["coverSaveStrategyTip",""],["name","coverSaveStrategy",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","biliApi",1,"form-group","biliapi"],["baseApiUrlTip",""],["type","text","required","","nz-input","","name","baseApiUrl",3,"pattern","ngModel","disabled","ngModelChange"],["baseApiUrlErrorTip",""],["baseLiveApiUrlTip",""],["type","text","required","","nz-input","","name","baseLiveApiUrl",3,"pattern","ngModel","disabled","ngModelChange"],["baseLiveApiUrlErrorTip",""],["basePalyInfoApiUrlTip",""],["type","text","required","","nz-input","","name","basePlayInfoApiUrl",3,"pattern","ngModel","disabled","ngModelChange"],["basePlayInfoApiUrlErrorTip",""],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["userAgentErrorTip",""],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"],[1,"setting-item","filesize-limit"],["filesizeLimitTip",""],[1,"setting-control","input"],["name","filesizeLimit",3,"ngModel","disabled","ngModelChange"],[1,"setting-item","duration-limit"],["durationLimitTip",""],["name","durationLimit",3,"ngModel","disabled","ngModelChange"],["fmp4StreamTimeoutTip",""],["name","fmp4StreamTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeout","ngModel"],["recordingModeTip",""],["name","recordingMode",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()})("nzAfterOpen",function(){return o.afterOpen.emit()})("nzAfterClose",function(){return o.afterClose.emit()}),t.YNc(1,ha,184,91,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkDisabled",null==o.ngForm||null==o.ngForm.form?null:o.ngForm.form.invalid)},directives:[Y.du,Y.Hf,g._Y,g.JL,g.F,Q.Lr,g.Mq,p.SK,Q.Nx,p.t3,Q.iK,Q.Fd,$.Zp,g.Fj,g.Q7,g.c5,g.JJ,g.On,_.O5,vt.Ie,Ii.i,Ni.q,_t.Vq,ct.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}.filesize-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%], .duration-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}@media screen and (max-width: 319px){.filesize-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%], .duration-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%]{margin-left:0!important}}"],changeDetection:0}),n})();function Xt(n,i,e,o,a,r,d){try{var f=n[r](d),x=f.value}catch(E){return void e(E)}f.done?i(x):Promise.resolve(x).then(o,a)}var xt=s(5254),za=s(3753),Ta=s(2313);const Dt=new Map,Mt=new Map;let xa=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,o="object"){return"object"===o?Mt.has(e)?(0,Z.of)(Mt.get(e)):(0,xt.D)(this.fetchImage(e)).pipe((0,K.U)(a=>URL.createObjectURL(a)),(0,K.U)(a=>this.domSanitizer.bypassSecurityTrustUrl(a)),(0,P.b)(a=>Mt.set(e,a)),(0,et.K)(()=>(0,Z.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):Dt.has(e)?(0,Z.of)(Dt.get(e)):(0,xt.D)(this.fetchImage(e)).pipe((0,X.w)(a=>this.createDataURL(a)),(0,P.b)(a=>Dt.set(e,a)),(0,et.K)(()=>(0,Z.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function Ca(n){return function(){var i=this,e=arguments;return new Promise(function(o,a){var r=n.apply(i,e);function d(x){Xt(r,o,a,d,f,"next",x)}function f(x){Xt(r,o,a,d,f,"throw",x)}d(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const o=new FileReader,a=(0,za.R)(o,"load").pipe((0,K.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(o.result)));return o.readAsDataURL(e),a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ta.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function Da(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-info-panel",21),t.NdJ("close",function(){return t.CHM(e),t.oxw(2).showInfoPanel=!1}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)}}const Ma=function(n){return[n,"detail"]};function Ea(n,i){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,Da,1,1,"app-info-panel",19),t._UZ(8,"app-status-display",20),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(10,Ma,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,6,t.lcZ(4,8,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("ngIf",e.showInfoPanel),t.xp6(1),t.Q6J("status",e.data.task_status)}}function Oa(n,i){if(1&n&&(t._UZ(0,"nz-avatar",22),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function ka(n,i){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function va(n,i){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function Aa(n,i){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function Pa(n,i){if(1&n&&(t.TgZ(0,"p",23),t.TgZ(1,"span",24),t.TgZ(2,"a",25),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",26),t.ynx(5,27),t.YNc(6,ka,4,0,"nz-tag",28),t.YNc(7,va,4,0,"nz-tag",29),t.YNc(8,Aa,4,0,"nz-tag",30),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function ba(n,i){if(1&n&&(t.TgZ(0,"span",44),t.TgZ(1,"a",25),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function Sa(n,i){if(1&n&&(t.TgZ(0,"p",37),t.TgZ(1,"span",38),t.TgZ(2,"span",39),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,ba,3,2,"span",40),t.TgZ(5,"span",41),t.TgZ(6,"a",25),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",42),t.TgZ(9,"a",25),t.TgZ(10,"nz-tag",43),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function ya(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function Fa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",47),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function Za(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(a){return t.CHM(e),t.oxw(2).settingsDialogVisible=a})("confirm",function(a){return t.CHM(e),t.oxw(2).changeTaskOptions(a)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function wa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",49),t.qZA(),t.YNc(2,Za,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function Ia(n,i){if(1&n&&(t.TgZ(0,"div",54),t._UZ(1,"i",55),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function Na(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",56),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",55),t.qZA()}}function Ba(n,i){if(1&n&&(t.YNc(0,Ia,2,1,"div",52),t.YNc(1,Na,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function Ua(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",57),t.TgZ(1,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(13,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfoPanel=!0}),t._uU(14,"\u663e\u793a\u5f55\u5236\u4fe1\u606f"),t.qZA(),t.qZA()}}function Ra(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",61),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const La=function(){return{padding:"0"}};function Ja(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,Ra,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,La))("nzVisible",e.menuDrawerVisible)}}const Qa=function(n,i,e,o){return[n,i,e,o]},qa=function(){return{padding:"0.5rem"}},Wa=function(){return{size:"large"}};let Ya=(()=>{class n{constructor(e,o,a,r,d,f,x){this.changeDetector=o,this.message=a,this.modal=r,this.settingService=d,this.taskManager=f,this.appTaskSettings=x,this.stopped=!1,this.destroyed=new C.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=h.cG,e.observe(nt[0]).pipe((0,O.R)(this.destroyed)).subscribe(E=>{this.useDrawer=E.matches,o.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}get showInfoPanel(){return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel)}set showInfoPanel(e){this.appTaskSettings.updateSettings(this.roomId,{showInfoPanel:e})}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===h.cG.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===h.cG.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==h.cG.STOPPED?e&&this.data.task_status.running_status==h.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopTask(this.roomId,e).subscribe(o,a)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==h.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(o,a)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){(0,qt.$R)(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","biliApi","header","danmaku","recorder","postprocessing"])).subscribe(([e,o])=>{this.taskOptions=e,this.globalSettings=o,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,dt.X)(3,300)).subscribe(o=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},o=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${o.message}`)})}cutStream(){this.data.task_status.running_status===h.cG.RECORDING&&this.taskManager.canCutStream(this.roomId).subscribe(e=>{e&&this.taskManager.cutStream(this.roomId).subscribe()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(v.Yg),t.Y36(t.sBO),t.Y36(Ct.dD),t.Y36(Y.Sf),t.Y36(Pi.R),t.Y36(zt),t.Y36(bi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("stopped",o.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"data","close",4,"ngIf"],[3,"status"],[3,"data","close"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,Ea,9,12,"ng-template",null,3,t.W1O),t.YNc(5,Oa,3,7,"ng-template",null,4,t.W1O),t.YNc(7,Pa,9,6,"ng-template",null,5,t.W1O),t.YNc(9,Sa,12,7,"ng-template",null,6,t.W1O),t.YNc(11,ya,1,4,"ng-template",null,7,t.W1O),t.YNc(13,Fa,2,2,"ng-template",null,8,t.W1O),t.YNc(15,wa,3,1,"ng-template",null,9,t.W1O),t.YNc(17,Ba,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,Ua,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,Ja,2,4,"nz-drawer",14)),2&e){const a=t.MAs(4),r=t.MAs(6),d=t.MAs(8),f=t.MAs(10),x=t.MAs(12),E=t.MAs(14),F=t.MAs(16),w=t.MAs(18),I=t.MAs(23);t.Q6J("nzCover",a)("nzHoverable",!0)("nzActions",t.l5B(12,Qa,E,F,x,w))("nzBodyStyle",t.DdM(17,qa)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!o.data)("nzAvatar",t.DdM(18,Wa)),t.xp6(1),t.Q6J("nzAvatar",r)("nzTitle",d)("nzDescription",f),t.xp6(19),t.Q6J("ngTemplateOutlet",I),t.xp6(3),t.Q6J("ngIf",o.useDrawer)}},directives:[m.bd,de,m.l7,tt.yS,j.SY,_.O5,Si.i,wi,Ot.Dz,_.RF,_.n9,Et,z.Ls,Tt.w,ct.i,g.JJ,g.On,fa,G.cm,G.RR,_.tP,ot.wO,ot.r9,H.Vz,H.SQ],pipes:[_.Ov,xa],styles:['.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.stopped[_nghost-%COMP%]{filter:grayscale(100%)}a[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]:hover{color:#1890ff}a[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.cover-wrapper[_ngcontent-%COMP%]{--cover-ratio: 264 / 470;--cover-height: calc(var(--card-width) * var(--cover-ratio));position:relative;width:var(--card-width);height:var(--cover-height)}.cover-wrapper[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:100%;max-height:var(--cover-height);object-fit:cover}.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:.5rem;font-size:1.2rem;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 1em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}nz-card-meta[_ngcontent-%COMP%]{margin:0}.meta-title[_ngcontent-%COMP%]{margin:0;display:flex;column-gap:1em}.meta-title[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{color:#fb7299;font-size:1rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta-title[_ngcontent-%COMP%] .live-status[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;position:relative;bottom:1px}.meta-desc[_ngcontent-%COMP%]{margin:0;display:flex}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}@media screen and (max-width: 320px){.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .room-id-label[_ngcontent-%COMP%]{display:none}}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%]{margin-left:auto}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;border-radius:30px;padding:0 1em}.action-icon[_ngcontent-%COMP%]{font-size:16px}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}'],changeDetection:0}),n})();function Ka(n,i){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function Ga(n,i){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",i.$implicit)}function $a(n,i){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,Ga,1,1,"app-task-item",5),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.dataList)("ngForTrackBy",e.trackByRoomId)}}let Va=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,o){return o.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,o){if(1&e&&(t.YNc(0,Ka,2,0,"div",0),t.YNc(1,$a,3,2,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",0===o.dataList.length)("ngIfElse",a)}},directives:[_.O5,Pt.p9,_.sg,Ya],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:100%;margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var ja=s(2643),Ha=s(1406);function Xa(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function tr(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function er(n,i){if(1&n&&(t.YNc(0,Xa,2,0,"ng-container",8),t.YNc(1,tr,2,0,"ng-container",8)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function nr(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function or(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,er,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,nr,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),o=t.oxw();t.xp6(1),t.Q6J("formGroup",o.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",o.pattern),t.xp6(4),t.Q6J("ngForOf",o.resultMessages)}}const ir=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,ar=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let rr=(()=>{class n{constructor(e,o,a){this.changeDetector=o,this.taskManager=a,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=ar,this.formGroup=e.group({input:["",[g.kI.required,g.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let o;o=e.startsWith("http")?[parseInt(ir.exec(e)[1])]:new Set(e.split(/\s+/).map(a=>parseInt(a))),(0,xt.D)(o).pipe((0,Ha.b)(a=>this.taskManager.addTask(a)),(0,P.b)(a=>{this.resultMessages.push(a),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(a=>"success"===a.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.qu),t.Y36(t.sBO),t.Y36(zt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()}),t.YNc(1,or,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkLoading",o.pending)("nzOkDisabled",o.formGroup.invalid)("nzCancelDisabled",o.pending)("nzClosable",!o.pending)("nzMaskClosable",!o.pending)},directives:[Y.du,Y.Hf,g._Y,g.JL,Q.Lr,g.sg,p.SK,Q.Nx,p.t3,Q.Fd,$.Zp,g.Fj,g.Q7,g.JJ,g.u,g.c5,_.O5,_.sg,Re],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),lr=(()=>{class n{transform(e,o=""){return console.debug("filter tasks by '%s'",o),[...this.filterByTerm(e,o)]}filterByTerm(e,o){return function*sr(n,i){for(const e of n)i(e)&&(yield e)}(e,a=>""===(o=o.trim())||a.user_info.name.includes(o)||a.room_info.title.toString().includes(o)||a.room_info.area_name.toString().includes(o)||a.room_info.room_id.toString().includes(o)||a.room_info.short_room_id.toString().includes(o))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function cr(n,i){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function _r(n,i){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const te="app-tasks-selection",ee="app-tasks-reverse",ur=[{path:":id/detail",component:si},{path:"",component:(()=>{class n{constructor(e,o,a,r){this.changeDetector=e,this.notification=o,this.storage=a,this.taskService=r,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(te);return null!==e?e:h.jf.ALL}retrieveReverse(){return"true"===this.storage.getData(ee)}storeSelection(e){this.storage.setData(te,e)}storeReverse(e){this.storage.setData(ee,e.toString())}syncTaskData(){this.dataSubscription=(0,Z.of)((0,Z.of)(0),(0,Qt.F)(1e3)).pipe((0,Wt.u)(),(0,X.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,et.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,dt.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Yt.zb),t.Y36(jt.V),t.Y36(mt.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(d){return o.onSelectionChanged(d)})("reverseChange",function(d){return o.onReverseChanged(d)})("filterChange",function(d){return o.filterTerm=d}),t.qZA(),t.YNc(1,cr,1,2,"nz-spin",1),t.YNc(2,_r,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(a),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const a=t.MAs(3);t.Q6J("selection",o.selection)("reverse",o.reverse),t.xp6(1),t.Q6J("ngIf",o.loading)("ngIfElse",a)}},directives:[Ai,_.O5,bt.W,Va,at.ix,ja.dQ,Tt.w,j.SY,z.Ls,rr],pipes:[lr],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0;overflow:hidden}.add-task-button[_ngcontent-%COMP%]{position:fixed;bottom:5vh;right:5vw}"],changeDetection:0}),n})()}];let pr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[tt.Bz.forChild(ur)],tt.Bz]}),n})(),gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,g.u5,g.UX,v.xu,J,p.Jb,m.vh,kt,Ot.Rt,z.PV,kt,j.cg,oe,ct.m,G.b1,at.sL,Y.Qp,Q.U5,$.o7,vt.Wr,ve,rt.aF,At.S,Pt.Xo,bt.j,Le,H.BL,_t.LV,mn,q.HQ,An,_o,To.forRoot({echarts:()=>s.e(45).then(s.bind(s,8045))}),pr,xo.m]]}),n})()},1715:(T,M,s)=>{s.d(M,{F:()=>t});var _=s(6498),g=s(353),v=s(4241);function t(c=0,D=g.P){return(!(0,v.k)(c)||c<0)&&(c=0),(!D||"function"!=typeof D.schedule)&&(D=g.P),new _.y(b=>(b.add(D.schedule(S,c,{subscriber:b,counter:0,period:c})),b))}function S(c){const{subscriber:D,counter:b,period:J}=c;D.next(b),this.schedule({subscriber:D,counter:b+1,period:J},J)}},1746:(T,M,s)=>{s.d(M,{$R:()=>c});var _=s(3009),g=s(6688),v=s(3489),t=s(5430),S=s(1177);function c(...z){const u=z[z.length-1];return"function"==typeof u&&z.pop(),(0,_.n)(z,void 0).lift(new D(u))}class D{constructor(u){this.resultSelector=u}call(u,C){return C.subscribe(new b(u,this.resultSelector))}}class b extends v.L{constructor(u,C,O=Object.create(null)){super(u),this.resultSelector=C,this.iterators=[],this.active=0,this.resultSelector="function"==typeof C?C:void 0}_next(u){const C=this.iterators;(0,g.k)(u)?C.push(new p(u)):C.push("function"==typeof u[t.hZ]?new J(u[t.hZ]()):new m(this.destination,this,u))}_complete(){const u=this.iterators,C=u.length;if(this.unsubscribe(),0!==C){this.active=C;for(let O=0;Othis.index}hasCompleted(){return this.array.length===this.index}}class m extends S.Ds{constructor(u,C,O){super(u),this.parent=C,this.observable=O,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[t.hZ](){return this}next(){const u=this.buffer;return 0===u.length&&this.isComplete?{value:null,done:!0}:{value:u.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(u){this.buffer.push(u),this.parent.checkIterators()}subscribe(){return(0,S.ft)(this.observable,new S.IY(this))}}}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/183.ee55fc76717674c3.js b/src/blrec/data/webapp/183.ee55fc76717674c3.js new file mode 100644 index 0000000..c6ec18e --- /dev/null +++ b/src/blrec/data/webapp/183.ee55fc76717674c3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[183],{3692:(x,M,s)=>{s.d(M,{f:()=>E});var _=s(2134),g=s(5e3);let E=(()=>{class t{transform(c,D){if("string"==typeof c)c=parseFloat(c);else if("number"!=typeof c||isNaN(c))return"N/A";return(D=Object.assign({bitrate:!1,precision:3,spacer:" "},D)).bitrate?(0,_.AX)(c,D.spacer,D.precision):(0,_.N4)(c,D.spacer,D.precision)}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=g.Yjl({name:"datarate",type:t,pure:!0}),t})()},3520:(x,M,s)=>{s.d(M,{U:()=>E});const _={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};var g=s(5e3);let E=(()=>{class t{transform(c){return _[c]}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=g.Yjl({name:"quality",type:t,pure:!0}),t})()},5141:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{i:()=>InfoPanelComponent});var _angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5e3),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1715),rxjs__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(1746),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(534),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7221),src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(7106),_shared_task_model__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2948),ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5278),_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(844),_angular_common__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(9808),_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1755),_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3692),_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3520);function InfoPanelComponent_ul_3_ng_container_36_Template(x,M){1&x&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.ynx(0),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(1,", bluray"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.BQk())}function InfoPanelComponent_ul_3_li_38_Template(x,M){if(1&x&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(0,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(1,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(2,"\u6d41\u7f16\u7801\u5668"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(3,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()),2&x){const s=_angular_core__WEBPACK_IMPORTED_MODULE_3__.oxw(2);_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Oqu(null==s.profile.streams[0]||null==s.profile.streams[0].tags?null:s.profile.streams[0].tags.encoder)}}const _c0=function(){return{bitrate:!0}};function InfoPanelComponent_ul_3_Template(x,M){if(1&x&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(0,"ul",3),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(1,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(2,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(3,"\u89c6\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(4,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(5,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(7,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(9,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(10),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(11,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(12),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(13,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(14,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(15,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(16,"\u97f3\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(17,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(18,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(19),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(20,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(21),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(22,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(23),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(24,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(25),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(26,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(27,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(28,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(29,"\u683c\u5f0f\u753b\u8d28"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(30,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(31,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(32),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(33,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(34),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(35,"quality"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.YNc(36,InfoPanelComponent_ul_3_ng_container_36_Template,2,0,"ng-container",7),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(37,") "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.YNc(38,InfoPanelComponent_ul_3_li_38_Template,5,1,"li",8),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(39,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(40,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(41,"\u6d41\u4e3b\u673a\u540d"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(42,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(43),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(44,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(45,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__._UZ(47,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(48,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(49),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(50,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(51,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(52,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(53,"\u5f55\u5236\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__._UZ(54,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(55,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(56),_angular_core__WEBPACK_IMPORTED_MODULE_3__.ALo(57,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()),2&x){const s=_angular_core__WEBPACK_IMPORTED_MODULE_3__.oxw();let _;_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[0]?null:s.profile.streams[0].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.AsE(" ",null==s.profile.streams[0]?null:s.profile.streams[0].width,"x",null==s.profile.streams[0]?null:s.profile.streams[0].height," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",s.fps," fps"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.xi3(13,19,1e3*s.metadata.videodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_3__.DdM(32,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].sample_rate," HZ"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].channel_layout," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.xi3(26,22,1e3*s.metadata.audiodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_3__.DdM(33,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",s.data.task_status.real_stream_format?s.data.task_status.real_stream_format:"N/A"," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.AsE(" ",s.data.task_status.real_quality_number?_angular_core__WEBPACK_IMPORTED_MODULE_3__.lcZ(35,25,s.data.task_status.real_quality_number):"N/A"," (",null!==(_=s.data.task_status.real_quality_number)&&void 0!==_?_:"N/A",""),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("ngIf",s.isBlurayStreamQuality()),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("ngIf",null==s.profile.streams[0]||null==s.profile.streams[0].tags?null:s.profile.streams[0].tags.encoder),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",s.data.task_status.stream_host," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("value",s.data.task_status.dl_rate),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.xi3(50,27,8*s.data.task_status.dl_rate,_angular_core__WEBPACK_IMPORTED_MODULE_3__.DdM(34,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("value",s.data.task_status.rec_rate),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_3__.lcZ(57,30,s.data.task_status.rec_rate)," ")}}let InfoPanelComponent=(()=>{class InfoPanelComponent{constructor(x,M,s){this.changeDetector=x,this.notification=M,this.taskService=s,this.metadata=null,this.close=new _angular_core__WEBPACK_IMPORTED_MODULE_3__.vpe,this.RunningStatus=_shared_task_model__WEBPACK_IMPORTED_MODULE_4__.cG}get fps(){var _a,_b;const avgFrameRate=null===(_b=null===(_a=this.profile)||void 0===_a?void 0:_a.streams[0])||void 0===_b?void 0:_b.avg_frame_rate;return avgFrameRate?eval(avgFrameRate).toFixed():"N/A"}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(x){x.preventDefault(),x.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)((0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)(0),(0,rxjs__WEBPACK_IMPORTED_MODULE_6__.F)(1e3)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.u)(),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.w)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_9__.$R)(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(x=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",x.message),x}),(0,src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_11__.X)(3,1e3)).subscribe(([x,M])=>{this.profile=x,this.metadata=M,this.changeDetector.markForCheck()},x=>{this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var x;null===(x=this.dataSubscription)||void 0===x||x.unsubscribe()}}return InfoPanelComponent.\u0275fac=function x(M){return new(M||InfoPanelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_3__.sBO),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_12__.zb),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__.M))},InfoPanelComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Xpm({type:InfoPanelComponent,selectors:[["app-info-panel"]],inputs:{data:"data",profile:"profile",metadata:"metadata"},outputs:{close:"close"},decls:4,vars:1,consts:[[1,"info-panel"],["title","\u5173\u95ed",1,"close-panel",3,"click"],["class","info-list",4,"ngIf"],[1,"info-list"],[1,"info-item"],[1,"label"],[1,"value"],[4,"ngIf"],["class","info-item",4,"ngIf"],[3,"value"]],template:function x(M,s){1&M&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(0,"div",0),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(1,"button",1),_angular_core__WEBPACK_IMPORTED_MODULE_3__.NdJ("click",function(g){return s.closePanel(g)}),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(2," [x] "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.YNc(3,InfoPanelComponent_ul_3_Template,58,35,"ul",2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()),2&M&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("ngIf",s.data.task_status.running_status===s.RunningStatus.RECORDING&&s.profile&&s.profile.streams&&s.profile.format&&s.metadata))},directives:[_angular_common__WEBPACK_IMPORTED_MODULE_13__.O5,_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_14__.w],pipes:[_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_1__.f,_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_2__.U],styles:['@charset "UTF-8";.info-panel[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.info-panel[_ngcontent-%COMP%]{position:absolute;top:2.55rem;bottom:2rem;left:0rem;right:0rem;width:100%;font-size:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:4px;height:4px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#eee;border-radius:2px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fff}.info-panel[_ngcontent-%COMP%] .close-panel[_ngcontent-%COMP%]{position:absolute;top:0rem;right:0rem;width:2rem;height:2rem;padding:0;color:#fff;background:transparent;border:none;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;width:100%;height:100%}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;margin:0;width:5rem;text-align:right}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block;margin:0;text-align:left}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child):before{content:", "}app-wave-graph[_ngcontent-%COMP%]{margin-right:1rem}'],changeDetection:0}),InfoPanelComponent})()},1755:(x,M,s)=>{s.d(M,{w:()=>E});var _=s(1715),g=s(5e3);let E=(()=>{class t{constructor(c){this.changeDetector=c,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let D=0;D<=this.width;D+=2)this.data.push(0),this.points.push({x:D,y:this.height})}get polylinePoints(){return this.points.map(c=>`${c.x},${c.y}`).join(" ")}ngOnInit(){this.subscription=(0,_.F)(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let c=Math.max(...this.data);this.points=this.data.map((D,P)=>({x:Math.min(2*P,this.width),y:(1-D/(c||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var c;null===(c=this.subscription)||void 0===c||c.unsubscribe()}}return t.\u0275fac=function(c){return new(c||t)(g.Y36(g.sBO))},t.\u0275cmp=g.Xpm({type:t,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(c,D){1&c&&(g.O4$(),g.TgZ(0,"svg"),g._UZ(1,"polyline",0),g.qZA()),2&c&&(g.uIk("width",D.width)("height",D.height),g.xp6(1),g.uIk("stroke",D.stroke)("points",D.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),t})()},844:(x,M,s)=>{s.d(M,{M:()=>D});var _=s(4850),g=s(2340),E=s(2948),t=s(5e3),S=s(520);const c=g.N.apiUrl;let D=(()=>{class P{constructor(p){this.http=p}getAllTaskData(p=E.jf.ALL){return this.http.get(c+"/api/v1/tasks/data",{params:{select:p}})}getTaskData(p){return this.http.get(c+`/api/v1/tasks/${p}/data`)}getVideoFileDetails(p){return this.http.get(c+`/api/v1/tasks/${p}/videos`)}getDanmakuFileDetails(p){return this.http.get(c+`/api/v1/tasks/${p}/danmakus`)}getTaskParam(p){return this.http.get(c+`/api/v1/tasks/${p}/param`)}getMetadata(p){return this.http.get(c+`/api/v1/tasks/${p}/metadata`)}getStreamProfile(p){return this.http.get(c+`/api/v1/tasks/${p}/profile`)}updateAllTaskInfos(){return this.http.post(c+"/api/v1/tasks/info",null)}updateTaskInfo(p){return this.http.post(c+`/api/v1/tasks/${p}/info`,null)}addTask(p){return this.http.post(c+`/api/v1/tasks/${p}`,null)}removeTask(p){return this.http.delete(c+`/api/v1/tasks/${p}`)}removeAllTasks(){return this.http.delete(c+"/api/v1/tasks")}startTask(p){return this.http.post(c+`/api/v1/tasks/${p}/start`,null)}startAllTasks(){return this.http.post(c+"/api/v1/tasks/start",null)}stopTask(p,m=!1,z=!1){return this.http.post(c+`/api/v1/tasks/${p}/stop`,{force:m,background:z})}stopAllTasks(p=!1,m=!1){return this.http.post(c+"/api/v1/tasks/stop",{force:p,background:m})}enableTaskMonitor(p){return this.http.post(c+`/api/v1/tasks/${p}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(c+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(p,m=!1){return this.http.post(c+`/api/v1/tasks/${p}/monitor/disable`,{background:m})}disableAllMonitors(p=!1){return this.http.post(c+"/api/v1/tasks/monitor/disable",{background:p})}enableTaskRecorder(p){return this.http.post(c+`/api/v1/tasks/${p}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(c+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(p,m=!1,z=!1){return this.http.post(c+`/api/v1/tasks/${p}/recorder/disable`,{force:m,background:z})}disableAllRecorders(p=!1,m=!1){return this.http.post(c+"/api/v1/tasks/recorder/disable",{force:p,background:m})}canCutStream(p){return this.http.get(c+`/api/v1/tasks/${p}/cut`).pipe((0,_.U)(z=>z.data.result))}cutStream(p){return this.http.post(c+`/api/v1/tasks/${p}/cut`,null)}}return P.\u0275fac=function(p){return new(p||P)(t.LFG(S.eN))},P.\u0275prov=t.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},2948:(x,M,s)=>{s.d(M,{jf:()=>_,cG:()=>g,ii:()=>E,cS:()=>t});var _=(()=>{return(c=_||(_={})).ALL="all",c.PREPARING="preparing",c.LIVING="living",c.ROUNDING="rounding",c.MONITOR_ENABLED="monitor_enabled",c.MONITOR_DISABLED="monitor_disabled",c.RECORDER_ENABLED="recorder_enabled",c.RECORDER_DISABLED="recorder_disabled",c.STOPPED="stopped",c.WAITTING="waitting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",_;var c})(),g=(()=>{return(c=g||(g={})).STOPPED="stopped",c.WAITING="waiting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",g;var c})(),E=(()=>{return(c=E||(E={})).WAITING="waiting",c.REMUXING="remuxing",c.INJECTING="injecting",E;var c})(),t=(()=>{return(c=t||(t={})).RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",c.COMPLETED="completed",c.MISSING="missing",c.BROKEN="broken",t;var c})()},3183:(x,M,s)=>{s.r(M),s.d(M,{TasksModule:()=>Xa});var _=s(9808),g=s(4182),E=s(5113),t=s(5e3);class S{constructor(i,e){this._document=e;const o=this._textarea=this._document.createElement("textarea"),a=o.style;a.position="fixed",a.top=a.opacity="0",a.left="-999em",o.setAttribute("aria-hidden","true"),o.value=i,this._document.body.appendChild(o)}copy(){const i=this._textarea;let e=!1;try{if(i){const o=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),o&&o.focus()}}catch(o){}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let c=(()=>{class n{constructor(e){this._document=e}copy(e){const o=this.beginCopy(e),a=o.copy();return o.destroy(),a}beginCopy(e){return new S(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),R=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var p=s(1894),m=s(7484),z=s(647),u=s(655),C=s(8929),O=s(7625),Z=s(8693),v=s(1721),k=s(226);function q(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(a){return t.CHM(e),t.oxw().closeTag(a)}),t.qZA()}}const ot=["*"];let Mt=(()=>{class n{constructor(e,o,a,r){this.cdr=e,this.renderer=o,this.elementRef=a,this.directionality=r,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new C.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,o=new RegExp(`(ant-tag-(?:${[...Z.uf,...Z.Bh].join("|")}))`,"g"),a=e.classList.toString(),r=[];let d=o.exec(a);for(;null!==d;)r.push(d[1]),d=o.exec(a);e.classList.remove(...r)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,Z.o2)(this.nzColor)||(0,Z.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:o}=e;o&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(k.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o.updateCheckedStatus()}),2&e&&(t.Udp("background-color",o.isPresetColor?"":o.nzColor),t.ekj("ant-tag-has-color",o.nzColor&&!o.isPresetColor)("ant-tag-checkable","checkable"===o.nzMode)("ant-tag-checkable-checked",o.nzChecked)("ant-tag-rtl","rtl"===o.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:ot,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,o){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,q,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===o.nzMode))},directives:[_.O5,z.Ls],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,v.yF)()],n.prototype,"nzChecked",void 0),n})(),ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[k.vT,_.ez,g.u5,z.PV]]}),n})();var Ot=s(6699);const ne=["nzType","avatar"];function oe(n,i){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function ie(n,i){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function ae(n,i){if(1&n&&t._UZ(0,"li"),2&n){const e=i.index,o=t.oxw(3);t.Udp("width",o.toCSSUnit(o.widthList[e]))}}function re(n,i){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,ae,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function se(n,i){if(1&n&&(t.ynx(0),t.YNc(1,oe,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,ie,1,2,"h3",3),t.YNc(4,re,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function le(n,i){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const ce=["*"];let _e=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-active",o.nzActive)("ant-skeleton-block",o.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,u.gn)([(0,v.yF)()],n.prototype,"nzBlock",void 0),n})(),ue=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const o=`${this.nzSize}px`;this.styleMap={width:o,height:o,"line-height":o}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:ne,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,o){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===o.nzShape)("ant-skeleton-avatar-circle","circle"===o.nzShape)("ant-skeleton-avatar-lg","large"===o.nzSize)("ant-skeleton-avatar-sm","small"===o.nzSize),t.Q6J("ngStyle",o.styleMap))},directives:[_.PC],encapsulation:2,changeDetection:0}),n})(),pe=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],o.addClass(a.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,v.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,o=!!this.nzParagraph;let a="";return!e&&o?a="38%":e&&o&&(a="50%"),Object.assign({width:a},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,o=!!this.nzTitle,a={};return(!e||!o)&&(a.width="61%"),a.rows=!e&&o?3:2,Object.assign(Object.assign({},a),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:o}=this.paragraph;let a=[];return e&&Array.isArray(e)?a=e:e&&!Array.isArray(e)&&(a=[],a[o-1]=e),a}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-with-avatar",!!o.nzAvatar)("ant-skeleton-active",o.nzActive)("ant-skeleton-round",!!o.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:ce,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.F$t(),t.YNc(0,se,5,3,"ng-container",0),t.YNc(1,le,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",o.nzLoading),t.xp6(1),t.Q6J("ngIf",!o.nzLoading))},directives:[ue,_.O5,_e,_.sg],encapsulation:2,changeDetection:0}),n})(),vt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[k.vT,_.ez]]}),n})();var V=s(404),lt=s(6462),K=s(3677),it=s(6042),W=s(7957),L=s(4546),G=s(1047),Et=s(6114),ge=s(4832),de=s(2845),me=s(6950),he=s(5664),B=s(969),fe=s(4170);let ve=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[k.vT,_.ez,it.sL,de.U8,fe.YI,z.PV,B.T,me.e4,ge.g,V.cg,he.rt]]}),n})();var at=s(3868),kt=s(5737),At=s(685),Pt=s(7525),Ee=s(8076),y=s(9439);function ke(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function Ae(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Pe(n,i){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,Ae,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function Se(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function ye(n,i){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,Se,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function be(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Pe,2,1,"span",7),t.YNc(2,ye,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function Fe(n,i){1&n&&t._UZ(0,"i",15)}function Ze(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function we(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ze,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Ie(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Fe,1,0,"ng-template",null,13,t.W1O),t.YNc(3,we,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),o=t.oxw(2);t.xp6(3),t.Q6J("ngIf",o.nzCloseText)("ngIfElse",e)}}function Ne(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,ke,2,2,"ng-container",2),t.YNc(2,be,3,2,"div",3),t.YNc(3,Ie,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let Be=(()=>{class n{constructor(e,o,a){this.nzConfigService=e,this.cdr=o,this.directionality=a,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new C.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:o,nzDescription:a,nzType:r,nzBanner:d}=e;if(o&&(this.isShowIconSet=!0),r)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}a&&(this.iconTheme=this.nzDescription?"outline":"fill"),d&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.jY),t.Y36(t.sBO),t.Y36(k.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,o){1&e&&t.YNc(0,Ne,4,23,"div",0),2&e&&t.Q6J("ngIf",!o.closed)},directives:[_.O5,z.Ls,B.f],encapsulation:2,data:{animation:[Ee.Rq]},changeDetection:0}),(0,u.gn)([(0,y.oS)(),(0,v.yF)()],n.prototype,"nzCloseable",void 0),(0,u.gn)([(0,y.oS)(),(0,v.yF)()],n.prototype,"nzShowIcon",void 0),(0,u.gn)([(0,v.yF)()],n.prototype,"nzBanner",void 0),(0,u.gn)([(0,v.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),Ue=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[k.vT,_.ez,z.PV,B.T]]}),n})();var j=s(4147),ct=s(5197);function Re(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function Le(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.hij(" ",e(o.nzPercent)," ")}}const Je=function(n){return{$implicit:n}};function Qe(n,i){if(1&n&&t.YNc(0,Le,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,Je,e.nzPercent))}}function qe(n,i){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Re,2,1,"ng-container",6),t.YNc(2,Qe,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===o.status||"success"===o.status)&&!o.nzFormat)("ngIfElse",e)}}function We(n,i){if(1&n&&t.YNc(0,qe,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function Ye(n,i){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function Ke(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,Ye,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function Ge(n,i){}function $e(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ke,4,11,"div",11),t.YNc(2,Ge,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Ve(n,i){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",i.$implicit)}function je(n,i){}function He(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,Ve,1,1,"div",19),t.YNc(2,je,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Xe(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,$e,3,2,"ng-container",2),t.YNc(2,He,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function tn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=i.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function en(n,i){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,tn,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function nn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",o.pathString)("stroke-linecap",o.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",o.nzPercent?o.strokeWidth:0)}}function on(n,i){1&n&&t.O4$()}function an(n,i){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,en,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,nn,1,5,"path",23),t.qZA(),t.YNc(5,on,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}const yt=n=>{let i=[];return Object.keys(n).forEach(e=>{const o=n[e],a=function rn(n){return+n.replace("%","")}(e);isNaN(a)||i.push({key:a,value:o})}),i=i.sort((e,o)=>e.key-o.key),i};let cn=0;const bt="progress",_n=new Map([["success","check"],["exception","close"]]),un=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),pn=n=>`${n}%`;let Ft=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzConfigService=o,this.directionality=a,this._nzModuleName=bt,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=cn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=r=>`${r}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new C.xQ}get formatter(){return this.nzFormat||pn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:o,nzGapPosition:a,nzStrokeLinecap:r,nzStrokeColor:d,nzGapDegree:f,nzType:T,nzStatus:l,nzPercent:b,nzSuccessPercent:N,nzStrokeWidth:U}=e;l&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(b||N)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,v.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(l||b||N||d)&&this.updateIcon(),d&&this.setStrokeColor(),(a||r||f||T||b||d||d)&&this.getCirclePaths(),(b||o||U)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(bt).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=_n.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),o="small"===this.nzSize?2:14,a=[];for(let r=0;r{const Q=2===e.length&&0===U;return{stroke:this.isGradient&&!Q?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Q?un.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(N||0)/100*(r-d)}px ${r}px`,strokeDashoffset:`-${d/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,o=this.isGradient=!!e&&"string"!=typeof e;o&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:i="#1890ff",to:e="#1890ff",direction:o="to right"}=n,a=(0,u._T)(n,["from","to","direction"]);return 0!==Object.keys(a).length?`linear-gradient(${o}, ${yt(a).map(({key:d,value:f})=>`${f} ${d}%`).join(", ")})`:`linear-gradient(${o}, ${i}, ${e})`})(e):o&&this.isCircleStyle?this.circleGradient=(n=>yt(this.nzStrokeColor).map(({key:i,value:e})=>({offset:`${i}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(y.jY),t.Y36(k.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,o){1&e&&(t.YNc(0,We,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,Xe,3,2,"div",2),t.YNc(4,an,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===o.nzType)("ant-progress-small","small"===o.nzSize)("ant-progress-show-info",o.nzShowInfo)("ant-progress-circle",o.isCircleStyle)("ant-progress-steps",o.isSteps)("ant-progress-rtl","rtl"===o.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+o.status),t.xp6(1),t.Q6J("ngIf","line"===o.nzType),t.xp6(1),t.Q6J("ngIf",o.isCircleStyle))},directives:[_.O5,z.Ls,B.f,_.mk,_.tP,_.sg,_.PC],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,y.oS)()],n.prototype,"nzShowInfo",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzStrokeColor",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,v.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,u.gn)([(0,v.Rn)()],n.prototype,"nzPercent",void 0),(0,u.gn)([(0,y.oS)(),(0,v.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,u.gn)([(0,y.oS)(),(0,v.Rn)()],n.prototype,"nzGapDegree",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzGapPosition",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,u.gn)([(0,v.Rn)()],n.prototype,"nzSteps",void 0),n})(),gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[k.vT,_.ez,z.PV,B.T]]}),n})();var J=s(592),Zt=s(925);let dn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();const mn=function(n){return{$implicit:n}};function hn(n,i){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,mn,e.nzValue))}}function fn(n,i){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function Cn(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function zn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,fn,2,1,"span",4),t.YNc(2,Cn,2,1,"span",5),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.displayInt),t.xp6(1),t.Q6J("ngIf",e.displayDecimal)}}function Tn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function xn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function Dn(n,i){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,xn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function Mn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function On(n,i){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,Mn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let vn=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,_.dv)(this.locale_id,_.wE.Decimal),o=String(this.nzValue),[a,r]=o.split(e);this.displayInt=a,this.displayDecimal=r?`${e}${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,hn,1,4,"ng-container",1),t.YNc(2,zn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!o.nzValueTemplate))},directives:[_.O5,_.tP],encapsulation:2,changeDetection:0}),n})(),wt=(()=>{class n{constructor(e,o){this.cdr=e,this.directionality=o,this.nzValueStyle={},this.dir="ltr",this.destroy$=new C.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(k.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Tn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,Dn,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,On,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===o.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",o.nzTitle),t.xp6(1),t.Q6J("ngStyle",o.nzValueStyle),t.xp6(1),t.Q6J("ngIf",o.nzPrefix),t.xp6(1),t.Q6J("nzValue",o.nzValue)("nzValueTemplate",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",o.nzSuffix))},directives:[vn,B.f,_.PC,_.O5],encapsulation:2,changeDetection:0}),n})(),En=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[k.vT,_.ez,Zt.ud,B.T,dn]]}),n})();var It=s(6787),kn=s(1059),H=s(7545),An=s(7138),A=s(2994),Pn=s(6947),_t=s(4090);function Sn(n,i){1&n&&t.Hsn(0)}const yn=["*"];function bn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function Fn(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,bn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Zn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function wn(n,i){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Zn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function In(n,i){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,Fn,2,1,"div",4),t.YNc(2,wn,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function Nn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Bn(n,i){}function Un(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Nn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Bn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Rn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Ln(n,i){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Rn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Jn(n,i){}function Qn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ln,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,Jn,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function qn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Un,7,5,"ng-container",2),t.YNc(2,Qn,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function Wn(n,i){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,qn,3,2,"ng-container",11),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Yn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Wn,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function Kn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Gn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Kn,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function $n(n,i){}function Vn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,$n,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function jn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,Gn,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,Vn,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function Hn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,jn,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function Xn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function to(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,Xn,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function eo(n,i){}function no(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,eo,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function oo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,to,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,no,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function io(n,i){if(1&n&&(t.ynx(0),t.YNc(1,oo,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function ao(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Hn,2,1,"ng-container",2),t.YNc(2,io,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let ut=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new C.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(t.Rgc,7),2&e){let a;t.iGM(a=t.CRH())&&(o.content=a.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:yn,decls:1,vars:0,template:function(e,o){1&e&&(t.F$t(),t.YNc(0,Sn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,u.gn)([(0,v.Rn)()],n.prototype,"nzSpan",void 0),n})();const so={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let Nt=(()=>{class n{constructor(e,o,a,r){this.nzConfigService=e,this.cdr=o,this.breakpointService=a,this.directionality=r,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=so,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=_t.G_.md,this.destroy$=new C.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,kn.O)(this.items),(0,O.R)(this.destroy$));(0,It.T)(e,e.pipe((0,H.w)(()=>(0,It.T)(...this.items.map(o=>o.inputChange$)).pipe((0,An.e)(16)))),this.breakpointService.subscribe(_t.WV).pipe((0,A.b)(o=>this.breakpoint=o))).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],o=0;const a=this.realColumn=this.getColumn(),r=this.items.toArray(),d=r.length,f=[],T=()=>{f.push(e),e=[],o=0};for(let l=0;l=a?(o>a&&(0,Pn.ZK)(`"nzColumn" is ${a} but we have row length ${o}`),e.push({title:N,content:U,span:a-(o-Q)}),T()):l===d-1?(e.push({title:N,content:U,span:a-(o-Q)}),T()):e.push({title:N,content:U,span:Q})}this.itemMatrix=f}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.jY),t.Y36(t.sBO),t.Y36(_t.r3),t.Y36(k.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,o,a){if(1&e&&t.Suo(a,ut,4),2&e){let r;t.iGM(r=t.CRH())&&(o.items=r)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,o){2&e&&t.ekj("ant-descriptions-bordered",o.nzBordered)("ant-descriptions-middle","middle"===o.nzSize)("ant-descriptions-small","small"===o.nzSize)("ant-descriptions-rtl","rtl"===o.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,o){1&e&&(t.YNc(0,In,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,Yn,2,1,"ng-container",2),t.YNc(5,ao,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",o.nzTitle||o.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===o.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===o.nzLayout))},directives:[_.O5,B.f,_.sg,_.tP],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,v.yF)(),(0,y.oS)()],n.prototype,"nzBordered",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzColumn",void 0),(0,u.gn)([(0,y.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,y.oS)(),(0,v.yF)()],n.prototype,"nzColon",void 0),n})(),lo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[k.vT,_.ez,B.T,Zt.ud]]}),n})();var F=s(1086),rt=s(8896),Bt=s(353),co=s(6498),_o=s(3489);const Ut={leading:!0,trailing:!1};class mo{constructor(i,e,o,a){this.duration=i,this.scheduler=e,this.leading=o,this.trailing=a}call(i,e){return e.subscribe(new ho(i,this.duration,this.scheduler,this.leading,this.trailing))}}class ho extends _o.L{constructor(i,e,o,a,r){super(i),this.duration=e,this.scheduler=o,this.leading=a,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(i){this.throttled?this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(fo,this.duration,{subscriber:this})),this.leading?this.destination.next(i):this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const i=this.throttled;i&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),i.unsubscribe(),this.remove(i),this.throttled=null)}}function fo(n){const{subscriber:i}=n;i.clearThrottle()}class pt{constructor(i){this.changes=i}static of(i){return new pt(i)}notEmpty(i){if(this.changes[i]){const e=this.changes[i].currentValue;if(null!=e)return(0,F.of)(e)}return rt.E}has(i){return this.changes[i]?(0,F.of)(this.changes[i].currentValue):rt.E}notFirst(i){return this.changes[i]&&!this.changes[i].isFirstChange()?(0,F.of)(this.changes[i].currentValue):rt.E}notFirstAndEmpty(i){if(this.changes[i]&&!this.changes[i].isFirstChange()){const e=this.changes[i].currentValue;if(null!=e)return(0,F.of)(e)}return rt.E}}const Rt=new t.OlP("NGX_ECHARTS_CONFIG");let Lt=(()=>{class n{constructor(e,o,a){this.el=o,this.ngZone=a,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.resize$=new C.xQ,this.echarts=e.echarts}ngOnChanges(e){const o=pt.of(e);o.notFirstAndEmpty("options").subscribe(a=>this.onOptionsChange(a)),o.notFirstAndEmpty("merge").subscribe(a=>this.setOption(a)),o.has("loading").subscribe(a=>this.toggleLoading(!!a)),o.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function go(n,i=Bt.P,e=Ut){return o=>o.lift(new mo(n,i,e.leading,e.trailing))}(100,Bt.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,o){if(this.chart)try{this.chart.setOption(e,o)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){return(0,u.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const o=window.getComputedStyle(e,null).getPropertyValue("height");(!o||"0px"===o)&&(!e.style.height||"0px"===e.style.height)&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:a})=>a(e,this.theme,this.initOpts)))}initChart(){return(0,u.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,u.mG)(this,void 0,void 0,function*(){!e||(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe((0,H.w)(o=>new co.y(a=>(o.on(e,r=>this.ngZone.run(()=>a.next(r))),()=>{this.chart&&(this.chart.isDisposed()||o.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Rt),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[t.TTD]}),n})(),Co=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Rt,useValue:e}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();var zo=s(4466),X=s(2302),Jt=s(1715),Qt=s(1746),qt=s(534),tt=s(7221),gt=s(7106),Wt=s(5278),dt=s(844),To=s(7512),xo=s(5545);let Do=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.userInfo.name),t.xp6(2),t.Oqu(o.userInfo.gender),t.xp6(2),t.Oqu(o.userInfo.uid),t.xp6(2),t.Oqu(o.userInfo.level),t.xp6(2),t.hij(" ",o.userInfo.sign," "))},directives:[m.bd,Nt,ut],styles:[""],changeDetection:0}),n})();function Mo(n,i){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Oo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function vo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Eo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function ko(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function Ao(n,i){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e," ")}}function Po(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let So=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,Mo,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,Oo,2,0,"ng-container",10),t.YNc(14,vo,2,0,"ng-container",10),t.YNc(15,Eo,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,ko,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,Ao,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,Po,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.roomInfo.title),t.xp6(2),t.AsE(" ",o.roomInfo.parent_area_name," - ",o.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",o.roomInfo.short_room_id),t.xp6(2),t.hij(" ",o.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",o.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==o.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.description.split("\n")))},directives:[m.bd,Nt,ut,_.O5,_.RF,_.n9,_.sg,Mt],pipes:[_.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})();var h=s(2948),$=s(2134);let Yt=(()=>{class n{transform(e){return(0,$.LU)(e,!0)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})();var mt=s(3692),yo=s(855);let st=(()=>{class n{transform(e,o){return yo(e,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();var Kt=s(3520);function bo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"duration")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_elapsed))}}function Fo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_rate))}}const Zo=function(){return{spacer:" "}};function wo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.rec_total,t.DdM(4,Zo)))}}function Io(n,i){if(1&n&&(t._uU(0),t.ALo(1,"quality")),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_quality_number?t.lcZ(1,1,e.taskStatus.real_quality_number)+" ("+e.taskStatus.real_quality_number+")":"")}}let No=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===h.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,$.N4)(a.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u5f55\u5236\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:o=>(0,$.N4)(o)}},series:[{name:"\u5f55\u5236\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),this.taskStatus.rec_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:17,vars:17,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValueTemplate"],["recordingElapsed",""],["recordingRate",""],["recordedTotal",""],["recordingQuality",""],[3,"nzTitle","nzValue"],["echarts","",1,"rec-rate-chart",3,"loading","options","merge"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,bo,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,Fo,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,wo,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,Io,2,3,"ng-template",null,6,t.W1O),t._UZ(14,"nz-statistic",7),t.ALo(15,"number"),t.qZA(),t._UZ(16,"div",8),t.qZA()),2&e){const a=t.MAs(4),r=t.MAs(7),d=t.MAs(10),f=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",r),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",f),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,o.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[m.bd,wt,Lt],pipes:[Yt,mt.f,st,Kt.U,_.JJ],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.rec-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})();function Bo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function Uo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const Ro=function(){return{bitrate:!0}};function Lo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,8*e.taskStatus.dl_rate,t.DdM(4,Ro)))}}const Jo=function(){return{spacer:" "}};function Qo(n,i){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.dl_total,t.DdM(4,Jo)))}}let qo=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===h.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,$.AX)(a.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u4e0b\u8f7d\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:function(o){return(0,$.AX)(o)}}},series:[{name:"\u4e0b\u8f7d\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),8*this.taskStatus.dl_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-network-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:15,vars:12,consts:[["nzTitle","\u7f51\u7edc\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[1,"stream-host",3,"nzTitle","nzValueTemplate"],["streamHost",""],[3,"nzTitle","nzValueTemplate"],["realStreamFormat",""],["downloadRate",""],["downloadTotal",""],["echarts","",1,"dl-rate-chart",3,"loading","options","merge"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Bo,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,Uo,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,Lo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,Qo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const a=t.MAs(4),r=t.MAs(7),d=t.MAs(10),f=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",r),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",f),t.xp6(3),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[m.bd,wt,Lt],pipes:[mt.f,st],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.stream-host[_ngcontent-%COMP%]{grid-column:1/3;grid-row:1}.dl-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})(),ht=(()=>{class n{transform(e){var o,a;return e?e.startsWith("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":null!==(a=e.split("\\").pop())&&void 0!==a?a:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),Gt=(()=>{class n{transform(e){return e&&0!==e.total?Math.round(e.count/e.total*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),Wo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case h.ii.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case h.ii.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let a;t.Q6J("nzTitle",o.title)("nzLoading",o.loading),t.xp6(1),t.Q6J("title",o.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(a=o.taskStatus.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzPercent",null===o.taskStatus.postprocessing_progress?0:t.lcZ(5,7,o.taskStatus.postprocessing_progress))}},directives:[m.bd,Ft],pipes:[ht,Gt],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const Yo=new Map([[h.cS.RECORDING,"\u5f55\u5236\u4e2d"],[h.cS.INJECTING,"\u5904\u7406\u4e2d"],[h.cS.REMUXING,"\u5904\u7406\u4e2d"],[h.cS.COMPLETED,"\u5df2\u5b8c\u6210"],[h.cS.MISSING,"\u4e0d\u5b58\u5728"],[h.cS.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let Ko=(()=>{class n{transform(e){var o;return null!==(o=Yo.get(e))&&void 0!==o?o:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function Go(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function $o(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const $t=[h.cS.RECORDING,h.cS.INJECTING,h.cS.REMUXING,h.cS.COMPLETED,h.cS.MISSING];let Vo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=h.cS,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,o)=>e.path.localeCompare(o.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,o)=>{switch(e){case"video":return o.path.endsWith(".flv")||o.path.endsWith(".mp4");case"danmaku":return o.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,o)=>e.size-o.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,o)=>$t.indexOf(e.status)-$t.indexOf(o.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[h.cS.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[h.cS.INJECTING,h.cS.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[h.cS.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[h.cS.MISSING]}],filterFn:(e,o)=>e.some(a=>a.some(r=>r===o.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,o){return o.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,Go,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,$o,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(2);t.Q6J("nzLoading",o.loading),t.xp6(1),t.Q6J("nzLoading",o.loading)("nzData",o.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",o.columns),t.xp6(2),t.Q6J("ngForOf",a.data)("ngForTrackBy",o.trackByPath)}},directives:[m.bd,J.N8,J.Om,J.$Z,_.sg,J.Uo,J._C,J.qD,J.p0],pipes:[ht,_.JJ,st,Ko],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function jo(n,i){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function Ho(n,i){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function Xo(n,i){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ti(n,i){if(1&n&&t._UZ(0,"app-task-network-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ei(n,i){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ni(n,i){if(1&n&&(t.YNc(0,jo,1,2,"app-task-user-info-detail",2),t.YNc(1,Ho,1,2,"app-task-room-info-detail",3),t.YNc(2,Xo,1,2,"app-task-recording-detail",4),t.YNc(3,ti,1,2,"app-task-network-detail",4),t.YNc(4,ei,1,2,"app-task-postprocessing-detail",4),t._UZ(5,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const oi=function(){return{"max-width":"unset"}},ii=function(){return{"row-gap":"1em"}};let ai=(()=>{class n{constructor(e,o,a,r,d){this.route=e,this.router=o,this.changeDetector=a,this.notification=r,this.taskService=d,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,F.of)((0,F.of)(0),(0,Jt.F)(1e3)).pipe((0,qt.u)(),(0,H.w)(()=>(0,Qt.$R)(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,tt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,gt.X)(10,3e3)).subscribe(([e,o,a])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=o,this.danmakuFileDetails=a,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(X.gz),t.Y36(X.F0),t.Y36(t.sBO),t.Y36(Wt.zb),t.Y36(dt.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,o){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ni,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",o.loading)("pageStyles",t.DdM(3,oi))("contentStyles",t.DdM(4,ii))},directives:[To.q,xo.Y,_.O5,Do,So,No,qo,Wo,Vo],styles:[""],changeDetection:0}),n})();var Vt=s(2323),ri=s(13),si=s(5778),Y=s(4850);const et=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var ft=s(9727);let Ct=(()=>{class n{constructor(e,o){this.message=e,this.taskService=o}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,Y.U)(e=>e.map(o=>o.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,A.b)(()=>{this.message.success(`[${e}] \u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e`)},o=>{this.message.error(`[${e}] \u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${o.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,A.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,Y.U)(o=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,tt.K)(o=>{let a;return a=409==o.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==o.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==o.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${o.message}`},(0,F.of)(a)}),(0,Y.U)(o=>(o.message=`${e}: ${o.message}`,o)),(0,A.b)(o=>{this.message[o.type](o.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,A.b)(()=>{this.message.success(`[${e}] \u4efb\u52a1\u5df2\u5220\u9664`)},o=>{this.message.error(`[${e}] \u5220\u9664\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,A.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}startTask(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u8fd0\u884c\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,A.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u8fd0\u884c\u4efb\u52a1`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,A.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}stopTask(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u505c\u6b62\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.stopTask(e,o).pipe((0,A.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u505c\u6b62\u4efb\u52a1`)},r=>{this.message.remove(a),this.message.error(`[${e}] \u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${r.message}`)}))}stopAllTasks(e=!1){const o=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,A.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},a=>{this.message.remove(o),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}enableRecorder(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u5f00\u542f\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,A.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u5f00\u542f\u5f55\u5236`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u5f00\u542f\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}enableAllRecorders(){const e=this.message.loading("\u6b63\u5728\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableAllRecorders().pipe((0,A.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},o=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${o.message}`)}))}disableRecorder(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u5173\u95ed\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,o).pipe((0,A.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u5173\u95ed\u5f55\u5236`)},r=>{this.message.remove(a),this.message.error(`[${e}] \u5173\u95ed\u5f55\u5236\u51fa\u9519: ${r.message}`)}))}disableAllRecorders(e=!1){const o=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,A.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},a=>{this.message.remove(o),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}canCutStream(e){return this.taskService.canCutStream(e).pipe((0,A.b)(o=>{o||this.message.warning(`[${e}] \u4e0d\u652f\u6301\u6587\u4ef6\u5207\u5272~`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,A.b)(()=>{this.message.success(`[${e}] \u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1`)},o=>{403==o.status?this.message.warning(`[${e}] \u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002`):this.message.error(`[${e}] \u5207\u5272\u6587\u4ef6\u51fa\u9519: ${o.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ft.dD),t.LFG(dt.M))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var zt=s(2683),nt=s(4219);function li(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),o=t.MAs(9),a=t.MAs(11),r=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",r)}}function ci(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),o=t.MAs(9),a=t.MAs(11),r=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",r)}}function _i(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),o=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function ui(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function pi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.YNc(1,ui,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function gi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function di(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const a=t.MAs(2),r=t.oxw();return a.value="",r.onFilterInput("")}),t.qZA()}}function mi(n,i){if(1&n&&t.YNc(0,di,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const a=t.MAs(2);return t.oxw().onFilterInput(a.value)}),t.qZA(),t.qZA(),t.YNc(3,mi,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function fi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function Ci(n,i){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function Ti(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function xi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),o=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",o)}}function Di(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Mi=function(){return{padding:"0"}};function Oi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().drawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,xi,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Di,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),o=t.MAs(23);t.Q6J("nzTitle",o)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,Mi))("nzVisible",e.menuDrawerVisible)}}function vi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let Ei=(()=>{class n{constructor(e,o,a,r,d,f){this.message=a,this.modal=r,this.clipboard=d,this.taskManager=f,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new C.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new C.xQ,this.selections=[{label:"\u5168\u90e8",value:h.jf.ALL},{label:"\u5f55\u5236\u4e2d",value:h.jf.RECORDING},{label:"\u5f55\u5236\u5f00",value:h.jf.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:h.jf.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:h.jf.MONITOR_ENABLED},{label:"\u505c\u6b62",value:h.jf.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:h.jf.LIVING},{label:"\u8f6e\u64ad",value:h.jf.ROUNDING},{label:"\u95f2\u7f6e",value:h.jf.PREPARING}],o.observe(et).pipe((0,O.R)(this.destroyed)).subscribe(T=>{this.useDrawer=T.breakpoints[et[0]],this.useSelector=T.breakpoints[et[1]],this.useRadioGroup=T.breakpoints[et[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,ri.b)(300),(0,si.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,o)=>{this.taskManager.removeAllTasks().subscribe(e,o)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopAllTasks(e).subscribe(o,a)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableAllRecorders(e).subscribe(o,a)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,Y.U)(e=>e.join(" ")),(0,A.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(E.Yg),t.Y36(ft.dD),t.Y36(W.Sf),t.Y36(c),t.Y36(Ct))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,li,8,4,"ng-container",1),t.YNc(2,ci,8,4,"ng-container",1),t.YNc(3,_i,3,2,"ng-container",1),t.qZA(),t.YNc(4,pi,2,2,"ng-template",null,2,t.W1O),t.YNc(6,gi,1,2,"ng-template",null,3,t.W1O),t.YNc(8,hi,5,1,"ng-template",null,4,t.W1O),t.YNc(10,fi,4,3,"ng-template",null,5,t.W1O),t.YNc(12,Ci,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,zi,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,Ti,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Oi,4,7,"nz-drawer",11),t.YNc(22,vi,3,0,"ng-template",null,12,t.W1O)),2&e){const a=t.MAs(18);t.ekj("use-drawer",o.useDrawer),t.xp6(1),t.Q6J("ngIf",o.useRadioGroup),t.xp6(1),t.Q6J("ngIf",o.useSelector),t.xp6(1),t.Q6J("ngIf",o.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",a),t.xp6(5),t.Q6J("ngIf",o.useDrawer)}},directives:[_.O5,_.tP,kt.g,at.Dg,g.JJ,g.On,_.sg,at.Of,at.Bq,ct.Vq,zt.w,G.gB,G.ke,G.Zp,z.Ls,it.ix,K.wA,K.cm,K.RR,nt.wO,nt.r9,nt.YV,j.Vz,j.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var ki=s(5136);let Ai=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var o;const a=this.storage.getData(this.getStorageKey(e));return a&&null!==(o=JSON.parse(a))&&void 0!==o?o:{}}updateSettings(e,o){o=Object.assign(this.getSettings(e),o);const a=JSON.stringify(o);this.storage.setData(this.getStorageKey(e),a)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Vt.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Pi=s(5141);const jt=function(){return{spacer:""}};function Si(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"datarate"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.rec_elapsed)," "),t.xp6(3),t.hij(" ",t.xi3(9,8,e.status.rec_rate,t.DdM(22,jt))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,jt))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u603b\u8ba1\uff1a",t.xi3(14,14,e.status.danmu_total,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,17,e.status.danmu_total,"1.0-0")," "),t.xp6(3),t.hij(" ",e.status.real_quality_number?t.lcZ(19,20,e.status.real_quality_number):""," ")}}function yi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function bi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let Fi=(()=>{class n{constructor(){this.RunningStatus=h.cG}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u7528\u65f6","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u603b\u8ba1","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,o){1&e&&(t.ynx(0,0),t.YNc(1,Si,20,24,"div",1),t.YNc(2,yi,7,13,"div",1),t.YNc(3,bi,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",o.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.REMUXING))},directives:[_.RF,_.n9,V.SY,Ft],pipes:[Yt,mt.f,st,_.JJ,Kt.U,ht,Gt],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var w=s(3523),I=s(8737),Zi=s(6457),wi=s(4501);function Ii(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function Ni(n,i){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function Bi(n,i){if(1&n&&(t.YNc(0,Ii,2,0,"ng-container",57),t.YNc(1,Ni,2,0,"ng-container",57)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ui(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u5927\u5c0f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1a\u6570\u5b57 + \u5355\u4f4d(GB, MB, KB, B) "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"0 B"),t.qZA(),t._UZ(8,"br"),t.qZA())}function Ri(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",58),t.TgZ(1,"nz-form-label",14),t._uU(2,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.YNc(3,Ui,9,0,"ng-template",null,59,t.W1O),t.TgZ(5,"nz-form-control",60),t.TgZ(6,"app-input-filesize",61),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.output.filesizeLimit=a}),t.qZA(),t.qZA(),t.TgZ(7,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.output.filesizeLimit=a?r.globalSettings.output.filesizeLimit:null}),t._uU(8,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.output.filesizeLimit)("disabled",null===o.options.output.filesizeLimit),t.xp6(1),t.Q6J("nzChecked",null!==o.options.output.filesizeLimit)}}function Li(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u65f6\u957f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1aHH:MM:SS "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"00:00:00"),t.qZA(),t._UZ(8,"br"),t.qZA())}function Ji(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",62),t.TgZ(1,"nz-form-label",14),t._uU(2,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.YNc(3,Li,9,0,"ng-template",null,63,t.W1O),t.TgZ(5,"nz-form-control",60),t.TgZ(6,"app-input-duration",64),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.output.durationLimit=a}),t.qZA(),t.qZA(),t.TgZ(7,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.output.durationLimit=a?r.globalSettings.output.durationLimit:null}),t._uU(8,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.output.durationLimit)("disabled",null===o.options.output.durationLimit),t.xp6(1),t.Q6J("nzChecked",null!==o.options.output.durationLimit)}}function Qi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function qi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function Wi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",14),t._uU(2,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(3,qi,8,0,"ng-template",null,65,t.W1O),t.TgZ(5,"nz-form-control",16),t.TgZ(6,"nz-select",66,67),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.fmp4StreamTimeout=a}),t.qZA(),t.qZA(),t.TgZ(8,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.fmp4StreamTimeout=a?r.globalSettings.recorder.fmp4StreamTimeout:null}),t._uU(9,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.recorder.fmp4StreamTimeout)("disabled",null===o.options.recorder.fmp4StreamTimeout)("nzOptions",o.fmp4StreamTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==o.options.recorder.fmp4StreamTimeout)}}function Yi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u6807\u51c6\u6a21\u5f0f: \u5bf9\u4e0b\u8f7d\u7684\u6d41\u6570\u636e\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(2,"br"),t._uU(3," \u539f\u59cb\u6a21\u5f0f: \u76f4\u63a5\u4e0b\u8f7d\u6d41\u6570\u636e\uff0c\u6ca1\u6709\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u4e0d\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(4,"br"),t.qZA())}function Ki(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",14),t._uU(2,"\u5f55\u5236\u6a21\u5f0f"),t.qZA(),t.YNc(3,Yi,5,0,"ng-template",null,68,t.W1O),t.TgZ(5,"nz-form-control",16),t.TgZ(6,"nz-select",69),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.recordingMode=a}),t.qZA(),t.qZA(),t.TgZ(7,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.recordingMode=a?r.globalSettings.recorder.recordingMode:null}),t._uU(8,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.recorder.recordingMode)("disabled",null===o.options.recorder.recordingMode)("nzOptions",o.recordingModeOptions),t.xp6(1),t.Q6J("nzChecked",null!==o.options.recorder.recordingMode)}}function Gi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function $i(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",70),t._uU(2,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(3,"nz-form-control",71),t.TgZ(4,"nz-select",72,73),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.readTimeout=a}),t.qZA(),t.qZA(),t.TgZ(6,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.readTimeout=a?r.globalSettings.recorder.readTimeout:null}),t._uU(7,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(5),o=t.oxw(2);t.xp6(3),t.Q6J("nzValidateStatus",e.value>3?"warning":e),t.xp6(1),t.Q6J("ngModel",o.model.recorder.readTimeout)("disabled",null===o.options.recorder.readTimeout)("nzOptions",o.readTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==o.options.recorder.readTimeout)}}function Vi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",74),t._uU(2,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(3,"nz-form-control",16),t.TgZ(4,"nz-select",75),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.bufferSize=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.bufferSize=a?r.globalSettings.recorder.bufferSize:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.model.recorder.bufferSize)("disabled",null===e.options.recorder.bufferSize)("nzOptions",e.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==e.options.recorder.bufferSize)}}function ji(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",13),t.TgZ(1,"nz-form-label",76),t._uU(2,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(3,"nz-form-control",22),t.TgZ(4,"nz-switch",77),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.postprocessing.injectExtraMetadata=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.postprocessing.injectExtraMetadata=a?r.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.model.postprocessing.injectExtraMetadata)("disabled",null===e.options.postprocessing.injectExtraMetadata||!!e.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==e.options.postprocessing.injectExtraMetadata)}}function Hi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function Xi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function ta(n,i){1&n&&t.YNc(0,Xi,2,0,"ng-container",57),2&n&&t.Q6J("ngIf",i.$implicit.hasError("required"))}function ea(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.output.pathTemplate=a}),t.qZA(),t.YNc(10,Bi,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.output.pathTemplate=a?r.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(14,Ri,9,4,"nz-form-item",10),t.YNc(15,Ji,9,4,"nz-form-item",11),t.qZA(),t.TgZ(16,"div",12),t.TgZ(17,"h2"),t._uU(18,"\u5f55\u5236"),t.qZA(),t.TgZ(19,"nz-form-item",13),t.TgZ(20,"nz-form-label",14),t._uU(21,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(22,Qi,14,0,"ng-template",null,15,t.W1O),t.TgZ(24,"nz-form-control",16),t.TgZ(25,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.streamFormat=a}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.streamFormat=a?r.globalSettings.recorder.streamFormat:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(28,Wi,10,5,"nz-form-item",18),t.YNc(29,Ki,9,5,"nz-form-item",18),t.TgZ(30,"nz-form-item",13),t.TgZ(31,"nz-form-label",19),t._uU(32,"\u753b\u8d28"),t.qZA(),t.TgZ(33,"nz-form-control",16),t.TgZ(34,"nz-select",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.qualityNumber=a}),t.qZA(),t.qZA(),t.TgZ(35,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.qualityNumber=a?r.globalSettings.recorder.qualityNumber:null}),t._uU(36,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(37,"nz-form-item",13),t.TgZ(38,"nz-form-label",21),t._uU(39,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(40,"nz-form-control",22),t.TgZ(41,"nz-switch",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.saveCover=a}),t.qZA(),t.qZA(),t.TgZ(42,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.saveCover=a?r.globalSettings.recorder.saveCover:null}),t._uU(43,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(44,"nz-form-item",13),t.TgZ(45,"nz-form-label",14),t._uU(46,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(47,Gi,8,0,"ng-template",null,24,t.W1O),t.TgZ(49,"nz-form-control",16),t.TgZ(50,"nz-select",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.coverSaveStrategy=a}),t.qZA(),t.qZA(),t.TgZ(51,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.coverSaveStrategy=a?r.globalSettings.recorder.coverSaveStrategy:null}),t._uU(52,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(53,$i,8,5,"nz-form-item",18),t.TgZ(54,"nz-form-item",13),t.TgZ(55,"nz-form-label",26),t._uU(56,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(57,"nz-form-control",16),t.TgZ(58,"nz-select",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=a}),t.qZA(),t.qZA(),t.TgZ(59,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.bufferSize=a?r.globalSettings.recorder.bufferSize:null}),t._uU(60,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(61,Vi,7,5,"nz-form-item",18),t.qZA(),t.TgZ(62,"div",28),t.TgZ(63,"h2"),t._uU(64,"\u5f39\u5e55"),t.qZA(),t.TgZ(65,"nz-form-item",13),t.TgZ(66,"nz-form-label",29),t._uU(67,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(68,"nz-form-control",22),t.TgZ(69,"nz-switch",30),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=a}),t.qZA(),t.qZA(),t.TgZ(70,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordGiftSend=a?r.globalSettings.danmaku.recordGiftSend:null}),t._uU(71,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(72,"nz-form-item",13),t.TgZ(73,"nz-form-label",31),t._uU(74,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(75,"nz-form-control",22),t.TgZ(76,"nz-switch",32),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=a}),t.qZA(),t.qZA(),t.TgZ(77,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordFreeGifts=a?r.globalSettings.danmaku.recordFreeGifts:null}),t._uU(78,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(79,"nz-form-item",13),t.TgZ(80,"nz-form-label",33),t._uU(81,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(82,"nz-form-control",22),t.TgZ(83,"nz-switch",34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=a}),t.qZA(),t.qZA(),t.TgZ(84,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordGuardBuy=a?r.globalSettings.danmaku.recordGuardBuy:null}),t._uU(85,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(86,"nz-form-item",13),t.TgZ(87,"nz-form-label",35),t._uU(88,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(89,"nz-form-control",22),t.TgZ(90,"nz-switch",36),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=a}),t.qZA(),t.qZA(),t.TgZ(91,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordSuperChat=a?r.globalSettings.danmaku.recordSuperChat:null}),t._uU(92,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(93,"nz-form-item",13),t.TgZ(94,"nz-form-label",37),t._uU(95,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(96,"nz-form-control",22),t.TgZ(97,"nz-switch",38),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.danmuUname=a}),t.qZA(),t.qZA(),t.TgZ(98,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.danmuUname=a?r.globalSettings.danmaku.danmuUname:null}),t._uU(99,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(100,"nz-form-item",13),t.TgZ(101,"nz-form-label",39),t._uU(102,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(103,"nz-form-control",22),t.TgZ(104,"nz-switch",40),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=a}),t.qZA(),t.qZA(),t.TgZ(105,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.saveRawDanmaku=a?r.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(106,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(107,"div",41),t.TgZ(108,"h2"),t._uU(109,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.YNc(110,ji,7,3,"nz-form-item",18),t.TgZ(111,"nz-form-item",13),t.TgZ(112,"nz-form-label",42),t._uU(113,"\u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(114,"nz-form-control",22),t.TgZ(115,"nz-switch",43),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=a}),t.qZA(),t.qZA(),t.TgZ(116,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.postprocessing.remuxToMp4=a?r.globalSettings.postprocessing.remuxToMp4:null}),t._uU(117,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(118,"nz-form-item",13),t.TgZ(119,"nz-form-label",14),t._uU(120,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(121,Hi,7,0,"ng-template",null,44,t.W1O),t.TgZ(123,"nz-form-control",16),t.TgZ(124,"nz-select",45),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=a}),t.qZA(),t.qZA(),t.TgZ(125,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.postprocessing.deleteSource=a?r.globalSettings.postprocessing.deleteSource:null}),t._uU(126,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(127,"div",46),t.TgZ(128,"h2"),t._uU(129,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(130,"nz-form-item",47),t.TgZ(131,"nz-form-label",48),t._uU(132,"User Agent"),t.qZA(),t.TgZ(133,"nz-form-control",49),t.TgZ(134,"textarea",50,51),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.userAgent=a}),t.qZA(),t.qZA(),t.YNc(136,ta,1,1,"ng-template",null,52,t.W1O),t.TgZ(138,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.header.userAgent=a?r.globalSettings.header.userAgent:null}),t._uU(139,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(140,"nz-form-item",47),t.TgZ(141,"nz-form-label",53),t._uU(142,"Cookie"),t.qZA(),t.TgZ(143,"nz-form-control",54),t.TgZ(144,"textarea",55,56),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.cookie=a}),t.qZA(),t.qZA(),t.TgZ(146,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.header.cookie=a?r.globalSettings.header.cookie:null}),t._uU(147,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),o=t.MAs(23),a=t.MAs(48),r=t.MAs(122),d=t.MAs(135),f=t.MAs(137),T=t.MAs(145),l=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",l.pathTemplatePattern)("ngModel",l.model.output.pathTemplate)("disabled",null===l.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==l.options.output.pathTemplate),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(1),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(5),t.Q6J("nzTooltipTitle",o),t.xp6(5),t.Q6J("ngModel",l.model.recorder.streamFormat)("disabled",null===l.options.recorder.streamFormat)("nzOptions",l.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.streamFormat),t.xp6(2),t.Q6J("ngIf","fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(1),t.Q6J("ngIf","fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(5),t.Q6J("ngModel",l.model.recorder.qualityNumber)("disabled",null===l.options.recorder.qualityNumber)("nzOptions",l.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",l.model.recorder.saveCover)("disabled",null===l.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.saveCover),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",l.model.recorder.coverSaveStrategy)("disabled",null===l.options.recorder.coverSaveStrategy||!l.options.recorder.saveCover)("nzOptions",l.coverSaveStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.coverSaveStrategy),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(5),t.Q6J("ngModel",l.model.recorder.disconnectionTimeout)("disabled",null===l.options.recorder.disconnectionTimeout)("nzOptions",l.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.bufferSize),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(8),t.Q6J("ngModel",l.model.danmaku.recordGiftSend)("disabled",null===l.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordFreeGifts)("disabled",null===l.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordGuardBuy)("disabled",null===l.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordSuperChat)("disabled",null===l.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.danmuUname)("disabled",null===l.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.saveRawDanmaku)("disabled",null===l.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.saveRawDanmaku),t.xp6(5),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.remuxToMp4)("disabled",null===l.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",r),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.deleteSource)("disabled",null===l.options.postprocessing.deleteSource||!l.options.postprocessing.remuxToMp4)("nzOptions",l.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",d.valid&&l.options.header.userAgent!==l.taskOptions.header.userAgent&&l.options.header.userAgent!==l.globalSettings.header.userAgent?"warning":d)("nzErrorTip",f),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.userAgent)("disabled",null===l.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==l.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",T.valid&&l.options.header.cookie!==l.taskOptions.header.cookie&&l.options.header.cookie!==l.globalSettings.header.cookie?"warning":T),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.cookie)("disabled",null===l.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==l.options.header.cookie)}}let na=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.pathTemplatePattern=I._m,this.streamFormatOptions=(0,w.Z)(I.tp),this.recordingModeOptions=(0,w.Z)(I.kV),this.fmp4StreamTimeoutOptions=(0,w.Z)(I.D4),this.qualityOptions=(0,w.Z)(I.O6),this.readTimeoutOptions=(0,w.Z)(I.D4),this.disconnectionTimeoutOptions=(0,w.Z)(I.$w),this.bufferOptions=(0,w.Z)(I.Rc),this.deleteStrategies=(0,w.Z)(I.rc),this.coverSaveStrategies=(0,w.Z)(I.J_)}ngOnChanges(){this.options=(0,w.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,$.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const o of Object.keys(this.options)){const d=this.globalSettings[o];Reflect.set(e,o,new Proxy(this.options[o],{get:(f,T)=>{var l;return null!==(l=Reflect.get(f,T))&&void 0!==l?l:Reflect.get(d,T)},set:(f,T,l)=>Reflect.set(f,T,l)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(g.F,5),2&e){let a;t.iGM(a=t.CRH())&&(o.ngForm=a.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["pathTemplateErrorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],["class","setting-item filesize-limit",4,"ngIf"],["class","setting-item duration-limit",4,"ngIf"],["ngModelGroup","recorder",1,"form-group","recorder"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["streamFormatTip",""],[1,"setting-control","select"],["name","streamFormat",3,"ngModel","disabled","nzOptions","ngModelChange"],["class","setting-item",4,"ngIf"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["name","qualityNumber",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch"],["name","saveCover",3,"ngModel","disabled","ngModelChange"],["coverSaveStrategyTip",""],["name","coverSaveStrategy",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["userAgentErrorTip",""],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"],[1,"setting-item","filesize-limit"],["filesizeLimitTip",""],[1,"setting-control","input"],["name","filesizeLimit",3,"ngModel","disabled","ngModelChange"],[1,"setting-item","duration-limit"],["durationLimitTip",""],["name","durationLimit",3,"ngModel","disabled","ngModelChange"],["fmp4StreamTimeoutTip",""],["name","fmp4StreamTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeout","ngModel"],["recordingModeTip",""],["name","recordingMode",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()})("nzAfterOpen",function(){return o.afterOpen.emit()})("nzAfterClose",function(){return o.afterClose.emit()}),t.YNc(1,ea,148,73,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkDisabled",null==o.ngForm||null==o.ngForm.form?null:o.ngForm.form.invalid)},directives:[W.du,W.Hf,g._Y,g.JL,g.F,L.Lr,g.Mq,p.SK,L.Nx,p.t3,L.iK,L.Fd,G.Zp,g.Fj,g.Q7,g.c5,g.JJ,g.On,_.O5,Et.Ie,Zi.i,wi.q,ct.Vq,lt.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}.filesize-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%], .duration-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}@media screen and (max-width: 319px){.filesize-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%], .duration-limit[_ngcontent-%COMP%] .setting-control.input[_ngcontent-%COMP%]{margin-left:0!important}}"],changeDetection:0}),n})();function Ht(n,i,e,o,a,r,d){try{var f=n[r](d),T=f.value}catch(l){return void e(l)}f.done?i(T):Promise.resolve(T).then(o,a)}var Tt=s(5254),ia=s(3753),aa=s(2313);const xt=new Map,Dt=new Map;let ra=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,o="object"){return"object"===o?Dt.has(e)?(0,F.of)(Dt.get(e)):(0,Tt.D)(this.fetchImage(e)).pipe((0,Y.U)(a=>URL.createObjectURL(a)),(0,Y.U)(a=>this.domSanitizer.bypassSecurityTrustUrl(a)),(0,A.b)(a=>Dt.set(e,a)),(0,tt.K)(()=>(0,F.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):xt.has(e)?(0,F.of)(xt.get(e)):(0,Tt.D)(this.fetchImage(e)).pipe((0,H.w)(a=>this.createDataURL(a)),(0,A.b)(a=>xt.set(e,a)),(0,tt.K)(()=>(0,F.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function oa(n){return function(){var i=this,e=arguments;return new Promise(function(o,a){var r=n.apply(i,e);function d(T){Ht(r,o,a,d,f,"next",T)}function f(T){Ht(r,o,a,d,f,"throw",T)}d(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const o=new FileReader,a=(0,ia.R)(o,"load").pipe((0,Y.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(o.result)));return o.readAsDataURL(e),a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(aa.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function sa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"app-info-panel",21),t.NdJ("close",function(){return t.CHM(e),t.oxw(2).showInfoPanel=!1}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)}}const la=function(n){return[n,"detail"]};function ca(n,i){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,sa,1,1,"app-info-panel",19),t._UZ(8,"app-status-display",20),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(10,la,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,6,t.lcZ(4,8,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("ngIf",e.showInfoPanel),t.xp6(1),t.Q6J("status",e.data.task_status)}}function ua(n,i){if(1&n&&(t._UZ(0,"nz-avatar",22),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function pa(n,i){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function ga(n,i){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function da(n,i){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function ma(n,i){if(1&n&&(t.TgZ(0,"p",23),t.TgZ(1,"span",24),t.TgZ(2,"a",25),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",26),t.ynx(5,27),t.YNc(6,pa,4,0,"nz-tag",28),t.YNc(7,ga,4,0,"nz-tag",29),t.YNc(8,da,4,0,"nz-tag",30),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function ha(n,i){if(1&n&&(t.TgZ(0,"span",44),t.TgZ(1,"a",25),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function fa(n,i){if(1&n&&(t.TgZ(0,"p",37),t.TgZ(1,"span",38),t.TgZ(2,"span",39),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,ha,3,2,"span",40),t.TgZ(5,"span",41),t.TgZ(6,"a",25),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",42),t.TgZ(9,"a",25),t.TgZ(10,"nz-tag",43),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function Ca(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function za(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",47),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function Ta(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(a){return t.CHM(e),t.oxw(2).settingsDialogVisible=a})("confirm",function(a){return t.CHM(e),t.oxw(2).changeTaskOptions(a)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function xa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",49),t.qZA(),t.YNc(2,Ta,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function Da(n,i){if(1&n&&(t.TgZ(0,"div",54),t._UZ(1,"i",55),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function Ma(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",56),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",55),t.qZA()}}function Oa(n,i){if(1&n&&(t.YNc(0,Da,2,1,"div",52),t.YNc(1,Ma,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function va(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",57),t.TgZ(1,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(13,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfoPanel=!0}),t._uU(14,"\u663e\u793a\u5f55\u5236\u4fe1\u606f"),t.qZA(),t.qZA()}}function Ea(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",61),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const ka=function(){return{padding:"0"}};function Aa(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,Ea,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,ka))("nzVisible",e.menuDrawerVisible)}}const Pa=function(n,i,e,o){return[n,i,e,o]},Sa=function(){return{padding:"0.5rem"}},ya=function(){return{size:"large"}};let ba=(()=>{class n{constructor(e,o,a,r,d,f,T){this.changeDetector=o,this.message=a,this.modal=r,this.settingService=d,this.taskManager=f,this.appTaskSettings=T,this.stopped=!1,this.destroyed=new C.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=h.cG,e.observe(et[0]).pipe((0,O.R)(this.destroyed)).subscribe(l=>{this.useDrawer=l.matches,o.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}get showInfoPanel(){return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel)}set showInfoPanel(e){this.appTaskSettings.updateSettings(this.roomId,{showInfoPanel:e})}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===h.cG.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===h.cG.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==h.cG.STOPPED?e&&this.data.task_status.running_status==h.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopTask(this.roomId,e).subscribe(o,a)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==h.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(o,a)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){(0,Qt.$R)(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,o])=>{this.taskOptions=e,this.globalSettings=o,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,gt.X)(3,300)).subscribe(o=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},o=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${o.message}`)})}cutStream(){this.data.task_status.running_status===h.cG.RECORDING&&this.taskManager.canCutStream(this.roomId).subscribe(e=>{e&&this.taskManager.cutStream(this.roomId).subscribe()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(E.Yg),t.Y36(t.sBO),t.Y36(ft.dD),t.Y36(W.Sf),t.Y36(ki.R),t.Y36(Ct),t.Y36(Ai))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("stopped",o.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"data","close",4,"ngIf"],[3,"status"],[3,"data","close"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,ca,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ua,3,7,"ng-template",null,4,t.W1O),t.YNc(7,ma,9,6,"ng-template",null,5,t.W1O),t.YNc(9,fa,12,7,"ng-template",null,6,t.W1O),t.YNc(11,Ca,1,4,"ng-template",null,7,t.W1O),t.YNc(13,za,2,2,"ng-template",null,8,t.W1O),t.YNc(15,xa,3,1,"ng-template",null,9,t.W1O),t.YNc(17,Oa,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,va,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,Aa,2,4,"nz-drawer",14)),2&e){const a=t.MAs(4),r=t.MAs(6),d=t.MAs(8),f=t.MAs(10),T=t.MAs(12),l=t.MAs(14),b=t.MAs(16),N=t.MAs(18),U=t.MAs(23);t.Q6J("nzCover",a)("nzHoverable",!0)("nzActions",t.l5B(12,Pa,l,b,T,N))("nzBodyStyle",t.DdM(17,Sa)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!o.data)("nzAvatar",t.DdM(18,ya)),t.xp6(1),t.Q6J("nzAvatar",r)("nzTitle",d)("nzDescription",f),t.xp6(19),t.Q6J("ngTemplateOutlet",U),t.xp6(3),t.Q6J("ngIf",o.useDrawer)}},directives:[m.bd,pe,m.l7,X.yS,V.SY,_.O5,Pi.i,Fi,Ot.Dz,_.RF,_.n9,Mt,z.Ls,zt.w,lt.i,g.JJ,g.On,na,K.cm,K.RR,_.tP,nt.wO,nt.r9,j.Vz,j.SQ],pipes:[_.Ov,ra],styles:['.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.stopped[_nghost-%COMP%]{filter:grayscale(100%)}a[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]:hover{color:#1890ff}a[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.cover-wrapper[_ngcontent-%COMP%]{--cover-ratio: 264 / 470;--cover-height: calc(var(--card-width) * var(--cover-ratio));position:relative;width:var(--card-width);height:var(--cover-height)}.cover-wrapper[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:100%;max-height:var(--cover-height);object-fit:cover}.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:.5rem;font-size:1.2rem;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 1em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}nz-card-meta[_ngcontent-%COMP%]{margin:0}.meta-title[_ngcontent-%COMP%]{margin:0;display:flex;column-gap:1em}.meta-title[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{color:#fb7299;font-size:1rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta-title[_ngcontent-%COMP%] .live-status[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;position:relative;bottom:1px}.meta-desc[_ngcontent-%COMP%]{margin:0;display:flex}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}@media screen and (max-width: 320px){.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .room-id-label[_ngcontent-%COMP%]{display:none}}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%]{margin-left:auto}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;border-radius:30px;padding:0 1em}.action-icon[_ngcontent-%COMP%]{font-size:16px}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}'],changeDetection:0}),n})();function Fa(n,i){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function Za(n,i){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",i.$implicit)}function wa(n,i){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,Za,1,1,"app-task-item",5),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.dataList)("ngForTrackBy",e.trackByRoomId)}}let Ia=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,o){return o.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,o){if(1&e&&(t.YNc(0,Fa,2,0,"div",0),t.YNc(1,wa,3,2,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",0===o.dataList.length)("ngIfElse",a)}},directives:[_.O5,At.p9,_.sg,ba],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:100%;margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var Na=s(2643),Ba=s(1406);function Ua(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function Ra(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function La(n,i){if(1&n&&(t.YNc(0,Ua,2,0,"ng-container",8),t.YNc(1,Ra,2,0,"ng-container",8)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ja(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function Qa(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,La,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,Ja,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),o=t.oxw();t.xp6(1),t.Q6J("formGroup",o.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",o.pattern),t.xp6(4),t.Q6J("ngForOf",o.resultMessages)}}const qa=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,Wa=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let Ya=(()=>{class n{constructor(e,o,a){this.changeDetector=o,this.taskManager=a,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=Wa,this.formGroup=e.group({input:["",[g.kI.required,g.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let o;o=e.startsWith("http")?[parseInt(qa.exec(e)[1])]:new Set(e.split(/\s+/).map(a=>parseInt(a))),(0,Tt.D)(o).pipe((0,Ba.b)(a=>this.taskManager.addTask(a)),(0,A.b)(a=>{this.resultMessages.push(a),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(a=>"success"===a.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(g.qu),t.Y36(t.sBO),t.Y36(Ct))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()}),t.YNc(1,Qa,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkLoading",o.pending)("nzOkDisabled",o.formGroup.invalid)("nzCancelDisabled",o.pending)("nzClosable",!o.pending)("nzMaskClosable",!o.pending)},directives:[W.du,W.Hf,g._Y,g.JL,L.Lr,g.sg,p.SK,L.Nx,p.t3,L.Fd,G.Zp,g.Fj,g.Q7,g.JJ,g.u,g.c5,_.O5,_.sg,Be],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),Ga=(()=>{class n{transform(e,o=""){return console.debug("filter tasks by '%s'",o),[...this.filterByTerm(e,o)]}filterByTerm(e,o){return function*Ka(n,i){for(const e of n)i(e)&&(yield e)}(e,a=>""===(o=o.trim())||a.user_info.name.includes(o)||a.room_info.title.toString().includes(o)||a.room_info.area_name.toString().includes(o)||a.room_info.room_id.toString().includes(o)||a.room_info.short_room_id.toString().includes(o))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function $a(n,i){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function Va(n,i){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const Xt="app-tasks-selection",te="app-tasks-reverse",ja=[{path:":id/detail",component:ai},{path:"",component:(()=>{class n{constructor(e,o,a,r){this.changeDetector=e,this.notification=o,this.storage=a,this.taskService=r,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(Xt);return null!==e?e:h.jf.ALL}retrieveReverse(){return"true"===this.storage.getData(te)}storeSelection(e){this.storage.setData(Xt,e)}storeReverse(e){this.storage.setData(te,e.toString())}syncTaskData(){this.dataSubscription=(0,F.of)((0,F.of)(0),(0,Jt.F)(1e3)).pipe((0,qt.u)(),(0,H.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,tt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,gt.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Wt.zb),t.Y36(Vt.V),t.Y36(dt.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(d){return o.onSelectionChanged(d)})("reverseChange",function(d){return o.onReverseChanged(d)})("filterChange",function(d){return o.filterTerm=d}),t.qZA(),t.YNc(1,$a,1,2,"nz-spin",1),t.YNc(2,Va,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(a),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const a=t.MAs(3);t.Q6J("selection",o.selection)("reverse",o.reverse),t.xp6(1),t.Q6J("ngIf",o.loading)("ngIfElse",a)}},directives:[Ei,_.O5,Pt.W,Ia,it.ix,Na.dQ,zt.w,V.SY,z.Ls,Ya],pipes:[Ga],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0;overflow:hidden}.add-task-button[_ngcontent-%COMP%]{position:fixed;bottom:5vh;right:5vw}"],changeDetection:0}),n})()}];let Ha=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[X.Bz.forChild(ja)],X.Bz]}),n})(),Xa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,g.u5,g.UX,E.xu,R,p.Jb,m.vh,vt,Ot.Rt,z.PV,vt,V.cg,ee,lt.m,K.b1,it.sL,W.Qp,L.U5,G.o7,Et.Wr,ve,at.aF,kt.S,At.Xo,Pt.j,Ue,j.BL,ct.LV,gn,J.HQ,En,lo,Co.forRoot({echarts:()=>s.e(45).then(s.bind(s,8045))}),Ha,zo.m]]}),n})()},1715:(x,M,s)=>{s.d(M,{F:()=>t});var _=s(6498),g=s(353),E=s(4241);function t(c=0,D=g.P){return(!(0,E.k)(c)||c<0)&&(c=0),(!D||"function"!=typeof D.schedule)&&(D=g.P),new _.y(P=>(P.add(D.schedule(S,c,{subscriber:P,counter:0,period:c})),P))}function S(c){const{subscriber:D,counter:P,period:R}=c;D.next(P),this.schedule({subscriber:D,counter:P+1,period:R},R)}},1746:(x,M,s)=>{s.d(M,{$R:()=>c});var _=s(3009),g=s(6688),E=s(3489),t=s(5430),S=s(1177);function c(...z){const u=z[z.length-1];return"function"==typeof u&&z.pop(),(0,_.n)(z,void 0).lift(new D(u))}class D{constructor(u){this.resultSelector=u}call(u,C){return C.subscribe(new P(u,this.resultSelector))}}class P extends E.L{constructor(u,C,O=Object.create(null)){super(u),this.resultSelector=C,this.iterators=[],this.active=0,this.resultSelector="function"==typeof C?C:void 0}_next(u){const C=this.iterators;(0,g.k)(u)?C.push(new p(u)):C.push("function"==typeof u[t.hZ]?new R(u[t.hZ]()):new m(this.destination,this,u))}_complete(){const u=this.iterators,C=u.length;if(this.unsubscribe(),0!==C){this.active=C;for(let O=0;Othis.index}hasCompleted(){return this.array.length===this.index}}class m extends S.Ds{constructor(u,C,O){super(u),this.parent=C,this.observable=O,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[t.hZ](){return this}next(){const u=this.buffer;return 0===u.length&&this.isComplete?{value:null,done:!0}:{value:u.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(u){this.buffer.push(u),this.parent.checkIterators()}subscribe(){return(0,S.ft)(this.observable,new S.IY(this))}}}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/205.cf2caa9b46b14212.js b/src/blrec/data/webapp/205.cf2caa9b46b14212.js new file mode 100644 index 0000000..928ed34 --- /dev/null +++ b/src/blrec/data/webapp/205.cf2caa9b46b14212.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[205],{9205:(Vr,wt,c)=>{c.r(wt),c.d(wt,{SettingsModule:()=>Ur});var p=c(9808),r=c(4182),pt=c(7525),_e=c(1945),fe=c(7484),l=c(4546),b=c(1047),D=c(6462),Ft=c(6114),U=c(3868),t=c(5e3),dt=c(404),Ce=c(925),et=c(226);let xe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[et.vT,p.ez,Ce.ud,dt.cg]]}),n})();var it=c(5197),_=c(7957),I=c(6042),H=c(647),St=c(6699),$=c(969),F=c(655),S=c(1721),ot=c(8929),Oe=c(8514),gt=c(1086),be=c(6787),Me=c(591),Te=c(2986),At=c(7545),at=c(7625),yt=c(685),m=c(1894);const N=["*"];function Be(n,o){1&n&&t.Hsn(0)}const qe=["nz-list-item-actions",""];function Ue(n,o){}function Ie(n,o){1&n&&t._UZ(0,"em",3)}function Ve(n,o){if(1&n&&(t.TgZ(0,"li"),t.YNc(1,Ue,0,0,"ng-template",1),t.YNc(2,Ie,1,0,"em",2),t.qZA()),2&n){const e=o.$implicit,i=o.last;t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngIf",!i)}}function Je(n,o){}const Zt=function(n,o){return{$implicit:n,index:o}};function Qe(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Je,0,0,"ng-template",9),t.BQk()),2&n){const e=o.$implicit,i=o.index,a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,Zt,e,i))}}function Le(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Qe,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function Ye(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzHeader)}}function We(n,o){if(1&n&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Ye,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzHeader)}}function Re(n,o){1&n&&t._UZ(0,"div"),2&n&&t.Udp("min-height",53,"px")}function He(n,o){}function $e(n,o){if(1&n&&(t.TgZ(0,"div",13),t.YNc(1,He,0,0,"ng-template",9),t.qZA()),2&n){const e=o.$implicit,i=o.index,a=t.oxw(2);t.Q6J("nzSpan",a.nzGrid.span||null)("nzXs",a.nzGrid.xs||null)("nzSm",a.nzGrid.sm||null)("nzMd",a.nzGrid.md||null)("nzLg",a.nzGrid.lg||null)("nzXl",a.nzGrid.xl||null)("nzXXl",a.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,Zt,e,i))}}function Ge(n,o){if(1&n&&(t.TgZ(0,"div",11),t.YNc(1,$e,2,12,"div",12),t.qZA()),2&n){const e=t.oxw();t.Q6J("nzGutter",e.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function je(n,o){if(1&n&&t._UZ(0,"nz-list-empty",14),2&n){const e=t.oxw();t.Q6J("nzNoResult",e.nzNoResult)}}function Xe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzFooter)}}function Ke(n,o){if(1&n&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,Xe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzFooter)}}function tn(n,o){}function en(n,o){}function nn(n,o){if(1&n&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,en,0,0,"ng-template",6),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzPagination)}}const on=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],an=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function rn(n,o){if(1&n&&t._UZ(0,"ul",6),2&n){const e=t.oxw(2);t.Q6J("nzActions",e.nzActions)}}function sn(n,o){if(1&n&&(t.YNc(0,rn,1,1,"ul",5),t.Hsn(1)),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzActions&&e.nzActions.length>0)}}function ln(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzContent)}}function cn(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ln,2,1,"ng-container",8),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzContent)}}function gn(n,o){if(1&n&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,cn,2,1,"ng-container",7)),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.nzContent)}}function un(n,o){1&n&&t.Hsn(0,3)}function mn(n,o){}function pn(n,o){}function dn(n,o){}function hn(n,o){}function _n(n,o){if(1&n&&(t.YNc(0,mn,0,0,"ng-template",9),t.YNc(1,pn,0,0,"ng-template",9),t.YNc(2,dn,0,0,"ng-template",9),t.YNc(3,hn,0,0,"ng-template",9)),2&n){const e=t.oxw(),i=t.MAs(3),a=t.MAs(5),s=t.MAs(1);t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function fn(n,o){}function Cn(n,o){}function vn(n,o){}function zn(n,o){if(1&n&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,vn,0,0,"ng-template",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra)}}function xn(n,o){}function On(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,fn,0,0,"ng-template",9),t.YNc(3,Cn,0,0,"ng-template",9),t.qZA(),t.YNc(4,zn,2,1,"nz-list-item-extra",7),t.YNc(5,xn,0,0,"ng-template",9),t.BQk()),2&n){const e=t.oxw(),i=t.MAs(3),a=t.MAs(1),s=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngIf",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}const bn=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Mn=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let ft=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),Dt=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item-action"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,5),2&e){let a;t.iGM(a=t.CRH())&&(i.templateRef=a.first)}},exportAs:["nzListItemAction"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,Be,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),Et=(()=>{class n{constructor(e,i){this.ngZone=e,this.cdr=i,this.nzActions=[],this.actions=[],this.destroy$=new ot.xQ,this.inputActionChanges$=new ot.xQ,this.contentChildrenChanges$=(0,Oe.P)(()=>this.nzListItemActions?(0,gt.of)(null):this.ngZone.onStable.asObservable().pipe((0,Te.q)(1),(0,At.w)(()=>this.contentChildrenChanges$))),(0,be.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,at.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(a=>a.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,Dt,4),2&e){let s;t.iGM(s=t.CRH())&&(i.nzListItemActions=s)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[t.TTD],attrs:qe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(e,i){1&e&&t.YNc(0,Ve,3,2,"li",0),2&e&&t.Q6J("ngForOf",i.actions)},directives:[p.sg,p.tP,p.O5],encapsulation:2,changeDetection:0}),n})(),Ct=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(e,i){1&e&&t._UZ(0,"nz-embed-empty",0),2&e&&t.Q6J("nzComponentName","list")("specificContent",i.nzNoResult)},directives:[yt.gB],encapsulation:2,changeDetection:0}),n})(),vt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),zt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),xt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:N,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),Nt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),n})(),Ot=(()=>{class n{constructor(e){this.directionality=e,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new Me.X(this.nzItemLayout),this.destroy$=new ot.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,at.R)(this.destroy$)).subscribe(i=>{this.dir=i})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(e){e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(et.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,zt,5),t.Suo(a,xt,5),t.Suo(a,Nt,5)),2&e){let s;t.iGM(s=t.CRH())&&(i.nzListFooterComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListPaginationComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListLoadMoreDirective=s.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(e,i){2&e&&t.ekj("ant-list-rtl","rtl"===i.dir)("ant-list-vertical","vertical"===i.nzItemLayout)("ant-list-lg","large"===i.nzSize)("ant-list-sm","small"===i.nzSize)("ant-list-split",i.nzSplit)("ant-list-bordered",i.nzBordered)("ant-list-loading",i.nzLoading)("ant-list-something-after-last-item",i.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[t.TTD],ngContentSelectors:an,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(e,i){if(1&e&&(t.F$t(on),t.YNc(0,Le,3,1,"ng-template",null,0,t.W1O),t.YNc(2,We,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,Re,1,2,"div",3),t.YNc(7,Ge,2,2,"div",4),t.YNc(8,je,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,Ke,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,tn,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,nn,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&e){const a=t.MAs(1);t.xp6(2),t.Q6J("ngIf",i.nzHeader),t.xp6(2),t.Q6J("nzSpinning",i.nzLoading),t.xp6(2),t.Q6J("ngIf",i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzGrid&&i.nzDataSource)("ngIfElse",a),t.xp6(1),t.Q6J("ngIf",!i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzFooter),t.xp6(2),t.Q6J("ngTemplateOutlet",i.nzLoadMore),t.xp6(2),t.Q6J("ngIf",i.nzPagination)}},directives:[vt,pt.W,Ct,zt,xt,p.sg,p.tP,p.O5,$.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,S.yF)()],n.prototype,"nzBordered",void 0),(0,F.gn)([(0,S.yF)()],n.prototype,"nzLoading",void 0),(0,F.gn)([(0,S.yF)()],n.prototype,"nzSplit",void 0),n})(),Bt=(()=>{class n{constructor(e,i,a,s){this.parentComp=a,this.cdr=s,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,i.addClass(e.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(e=>{this.itemLayout=e,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Ot),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,ft,5),2&e){let s;t.iGM(s=t.CRH())&&(i.listItemExtraDirective=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("ant-list-item-no-flex",i.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:Mn,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(e,i){if(1&e&&(t.F$t(bn),t.YNc(0,sn,2,1,"ng-template",null,0,t.W1O),t.YNc(2,gn,3,1,"ng-template",null,1,t.W1O),t.YNc(4,un,1,0,"ng-template",null,2,t.W1O),t.YNc(6,_n,4,4,"ng-template",null,3,t.W1O),t.YNc(8,On,6,4,"ng-container",4)),2&e){const a=t.MAs(7);t.xp6(8),t.Q6J("ngIf",i.isVerticalAndExtra)("ngIfElse",a)}},directives:[Et,ft,p.O5,$.f,p.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,S.yF)()],n.prototype,"nzNoFlex",void 0),n})(),wn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[et.vT,p.ez,pt.j,m.Jb,St.Rt,$.T,yt.Xo]]}),n})();var ut=c(3677),Fn=c(5737),V=c(592),Sn=c(8076),G=c(9439),qt=c(4832);const Ut=["*"];function An(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("nzType",e||"right")("nzRotate",i.nzActive?90:0)}}function yn(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,An,2,2,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExpandedIcon)}}function Zn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzHeader)}}function kn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzExtra)}}function Dn(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,kn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}const It="collapse";let Vt=(()=>{class n{constructor(e,i,a){this.nzConfigService=e,this.cdr=i,this.directionality=a,this._nzModuleName=It,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new ot.xQ,this.nzConfigService.getConfigChangeEventForComponent(It).pipe((0,at.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,at.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(e){this.listOfNzCollapsePanelComponent.push(e)}removePanel(e){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(e),1)}click(e){this.nzAccordion&&!e.nzActive&&this.listOfNzCollapsePanelComponent.filter(i=>i!==e).forEach(i=>{i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),e.nzActive=!e.nzActive,e.nzActiveChange.emit(e.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(G.jY),t.Y36(t.sBO),t.Y36(et.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(e,i){2&e&&t.ekj("ant-collapse-icon-position-left","left"===i.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===i.nzExpandIconPosition)("ant-collapse-ghost",i.nzGhost)("ant-collapse-borderless",!i.nzBordered)("ant-collapse-rtl","rtl"===i.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:Ut,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,F.gn)([(0,G.oS)(),(0,S.yF)()],n.prototype,"nzAccordion",void 0),(0,F.gn)([(0,G.oS)(),(0,S.yF)()],n.prototype,"nzBordered",void 0),(0,F.gn)([(0,G.oS)(),(0,S.yF)()],n.prototype,"nzGhost",void 0),n})();const Jt="collapsePanel";let En=(()=>{class n{constructor(e,i,a,s){this.nzConfigService=e,this.cdr=i,this.nzCollapseComponent=a,this.noAnimation=s,this._nzModuleName=Jt,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new ot.xQ,this.nzConfigService.getConfigChangeEventForComponent(Jt).pipe((0,at.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}clickHeader(){this.nzDisabled||this.nzCollapseComponent.click(this)}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzCollapseComponent.addPanel(this)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(G.jY),t.Y36(t.sBO),t.Y36(Vt,1),t.Y36(qt.P,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(e,i){2&e&&t.ekj("ant-collapse-no-arrow",!i.nzShowArrow)("ant-collapse-item-active",i.nzActive)("ant-collapse-item-disabled",i.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:Ut,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return i.clickHeader()}),t.YNc(1,yn,2,1,"div",1),t.YNc(2,Zn,2,1,"ng-container",2),t.YNc(3,Dn,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&e&&(t.uIk("aria-expanded",i.nzActive),t.xp6(1),t.Q6J("ngIf",i.nzShowArrow),t.xp6(1),t.Q6J("nzStringTemplateOutlet",i.nzHeader),t.xp6(1),t.Q6J("ngIf",i.nzExtra),t.xp6(1),t.ekj("ant-collapse-content-active",i.nzActive),t.Q6J("@.disabled",null==i.noAnimation?null:i.noAnimation.nzNoAnimation)("@collapseMotion",i.nzActive?"expanded":"hidden"))},directives:[p.O5,$.f,H.Ls],encapsulation:2,data:{animation:[Sn.J_]},changeDetection:0}),(0,F.gn)([(0,S.yF)()],n.prototype,"nzActive",void 0),(0,F.gn)([(0,S.yF)()],n.prototype,"nzDisabled",void 0),(0,F.gn)([(0,G.oS)(),(0,S.yF)()],n.prototype,"nzShowArrow",void 0),n})(),Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[et.vT,p.ez,H.PV,$.T,qt.g]]}),n})();var Bn=c(4466),A=c(7221),y=c(7106),E=c(2306),J=c(5278),Z=c(5136);let Qt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["output","logging","biliApi","header","danmaku","recorder","postprocessing","space"]).pipe((0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get settings:",a),this.notification.error("\u83b7\u53d6\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(J.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var k=c(4850);let Lt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["emailNotification"]).pipe((0,k.U)(a=>a.emailNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get email notification settings:",a),this.notification.error("\u83b7\u53d6\u90ae\u4ef6\u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(J.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Yt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["serverchanNotification"]).pipe((0,k.U)(a=>a.serverchanNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get ServerChan notification settings:",a),this.notification.error("\u83b7\u53d6 ServerChan \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(J.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Wt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["pushdeerNotification"]).pipe((0,k.U)(a=>a.pushdeerNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get PushDeer notification settings:",a),this.notification.error("\u83b7\u53d6 pushdeer \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(J.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Rt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["pushplusNotification"]).pipe((0,k.U)(a=>a.pushplusNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get pushplus notification settings:",a),this.notification.error("\u83b7\u53d6 pushplus \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(J.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ht=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["telegramNotification"]).pipe((0,k.U)(a=>a.telegramNotification),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get telegram notification settings:",a),this.notification.error("\u83b7\u53d6 telegram \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(J.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),$t=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["webhooks"]).pipe((0,k.U)(a=>a.webhooks),(0,y.X)(3,300),(0,A.K)(a=>{throw this.logger.error("Failed to get webhook settings:",a),this.notification.error("\u83b7\u53d6 Webhook \u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(J.zb),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var C=c(2302),bt=c(2198),Gt=c(2014),qn=c(7770),Un=c(353),jt=c(4704),O=c(2340);const x="RouterScrollService",Xt="defaultViewport",Kt="customViewport";let In=(()=>{class n{constructor(e,i,a,s){this.router=e,this.activatedRoute=i,this.viewportScroller=a,this.logger=s,this.addQueue=[],this.addBeforeNavigationQueue=[],this.removeQueue=[],this.routeStrategies=[],this.scrollDefaultViewport=!0,this.customViewportToScroll=null,O.N.traceRouterScrolling&&this.logger.trace(`${x}:: constructor`),O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Subscribing to router events`);const g=this.router.events.pipe((0,bt.h)(u=>u instanceof C.OD||u instanceof C.m2),(0,Gt.R)((u,d)=>{var f,w;O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Updating the known scroll positions`);const W=Object.assign({},u.positions);return d instanceof C.OD&&this.scrollDefaultViewport&&(O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Storing the scroll position of the default viewport`),W[`${d.id}-${Xt}`]=this.viewportScroller.getScrollPosition()),d instanceof C.OD&&this.customViewportToScroll&&(O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Storing the scroll position of the custom viewport`),W[`${d.id}-${Kt}`]=this.customViewportToScroll.scrollTop),{event:d,positions:W,trigger:d instanceof C.OD?d.navigationTrigger:u.trigger,idToRestore:d instanceof C.OD&&d.restoredState&&d.restoredState.navigationId+1||u.idToRestore,routeData:null===(w=null===(f=this.activatedRoute.firstChild)||void 0===f?void 0:f.routeConfig)||void 0===w?void 0:w.data}}),(0,bt.h)(u=>!!u.trigger),(0,qn.QV)(Un.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const d=this.routeStrategies.find(R=>u.event.url.indexOf(R.partialRoute)>-1),f=d&&d.behaviour===jt.g.KEEP_POSITION||!1,w=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===jt.g.KEEP_POSITION||!1,W=f||w;if(u.event instanceof C.m2){this.processRemoveQueue(this.removeQueue);const R=u.trigger&&"imperative"===u.trigger||!1,he=!W||R;O.N.traceRouterScrolling&&(this.logger.trace(`${x}:: Existing strategy with keep position behavior? `,f),this.logger.trace(`${x}:: Route data with keep position behavior? `,w),this.logger.trace(`${x}:: Imperative trigger? `,R),this.logger.debug(`${x}:: Should scroll? `,he)),he?(this.scrollDefaultViewport&&(O.N.traceRouterScrolling&&this.logger.debug(`${x}:: Scrolling the default viewport`),this.viewportScroller.scrollToPosition([0,0])),this.customViewportToScroll&&(O.N.traceRouterScrolling&&this.logger.debug(`${x}:: Scrolling a custom viewport: `,this.customViewportToScroll),this.customViewportToScroll.scrollTop=0)):(O.N.traceRouterScrolling&&this.logger.debug(`${x}:: Not scrolling`),this.scrollDefaultViewport&&this.viewportScroller.scrollToPosition(u.positions[`${u.idToRestore}-${Xt}`]),this.customViewportToScroll&&(this.customViewportToScroll.scrollTop=u.positions[`${u.idToRestore}-${Kt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(Ir=>Ir.partialRoute),!0),this.processAddQueue(this.addQueue),this.addQueue=[],this.removeQueue=[],this.addBeforeNavigationQueue=[]}else this.processAddQueue(this.addBeforeNavigationQueue)})}addStrategyOnceBeforeNavigationForPartialRoute(e,i){O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Adding a strategy once for before navigation towards [${e}]: `,i),this.addBeforeNavigationQueue.push({partialRoute:e,behaviour:i,onceBeforeNavigation:!0})}addStrategyForPartialRoute(e,i){O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Adding a strategy for partial route: [${e}]`,i),this.addQueue.push({partialRoute:e,behaviour:i})}removeStrategyForPartialRoute(e){O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Removing strategory for: [${e}]: `),this.removeQueue.push(e)}setCustomViewportToScroll(e){O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Setting a custom viewport to scroll: `,e),this.customViewportToScroll=e}disableScrollDefaultViewport(){O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Disabling scrolling the default viewport`),this.scrollDefaultViewport=!1}enableScrollDefaultViewPort(){O.N.traceRouterScrolling&&this.logger.trace(`${x}:: Enabling scrolling the default viewport`),this.scrollDefaultViewport=!0}processAddQueue(e){for(const i of e)-1===this.routeStrategyPosition(i.partialRoute)&&this.routeStrategies.push(i)}processRemoveQueue(e,i=!1){for(const a of e){const s=this.routeStrategyPosition(a);!i&&s>-1&&this.routeStrategies[s].onceBeforeNavigation||s>-1&&this.routeStrategies.splice(s,1)}}routeStrategyPosition(e){return this.routeStrategies.map(i=>i.partialRoute).indexOf(e)}ngOnDestroy(){O.N.traceRouterScrolling&&this.logger.trace(`${x}:: ngOnDestroy`),this.scrollPositionRestorationSubscription&&this.scrollPositionRestorationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(C.F0),t.LFG(C.gz),t.LFG(p.EM),t.LFG(E.Kf))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Q=c(4670),Vn=c(3496),Jn=c(1149),Qn=c(7242);const M=function Ln(n,o){var e={};return o=(0,Qn.Z)(o,3),(0,Jn.Z)(n,function(i,a,s){(0,Vn.Z)(e,a,o(i,a,s))}),e};var j=c(9089),mt=c(2994),Yn=c(4884),Wn=c(4116),te=c(4825),ee=c(4177),ne=c(8706),Rn=c(5202),Hn=c(1986),$n=c(7583),Kn=Object.prototype.hasOwnProperty;var ni=c(1854),ii=c(2134),Mt=c(9727);function T(n){const o="result"in n;return M(n.diff,()=>o)}let P=(()=>{class n{constructor(e,i){this.message=e,this.settingService=i}syncSettings(e,i,a,s=!0){return a.pipe((0,Gt.R)(([,g],u)=>[g,u,(0,ii.e5)(u,g,s)],[i,i,{}]),(0,bt.h)(([,,g])=>!function ti(n){if(null==n)return!0;if((0,ne.Z)(n)&&((0,ee.Z)(n)||"string"==typeof n||"function"==typeof n.splice||(0,Rn.Z)(n)||(0,$n.Z)(n)||(0,te.Z)(n)))return!n.length;var o=(0,Wn.Z)(n);if("[object Map]"==o||"[object Set]"==o)return!n.size;if((0,Hn.Z)(n))return!(0,Yn.Z)(n).length;for(var e in n)if(Kn.call(n,e))return!1;return!0}(g)),(0,At.w)(([g,u,d])=>this.settingService.changeSettings({[e]:d}).pipe((0,y.X)(3,300),(0,mt.b)(f=>{console.assert((0,ni.Z)(f[e],u),"result settings should equal current settings",{curr:u,result:f[e]})},f=>{this.message.error(`\u8bbe\u7f6e\u51fa\u9519: ${f.message}`)}),(0,k.U)(f=>({prev:g,curr:u,diff:d,result:f[e]})),(0,A.K)(f=>(0,gt.of)({prev:g,curr:u,diff:d,error:f})))),(0,mt.b)(g=>console.debug(`${e} settings sync detail:`,g)))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Mt.dD),t.LFG(Z.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=c(8737),L=(()=>{return(n=L||(L={}))[n.EACCES=13]="EACCES",n[n.ENOTDIR=20]="ENOTDIR",L;var n})(),oi=c(520);const ai=O.N.apiUrl;let ie=(()=>{class n{constructor(e){this.http=e}validateDir(e){return this.http.post(ai+"/api/v1/validation/dir",{path:e})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(oi.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ri(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function si(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function li(n,o){1&n&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function ci(n,o){1&n&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function gi(n,o){if(1&n&&(t.YNc(0,ri,2,0,"ng-container",6),t.YNc(1,si,2,0,"ng-container",6),t.YNc(2,li,2,0,"ng-container",6),t.YNc(3,ci,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",e.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",e.hasError("failedToValidate"))}}function ui(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,gi,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}let mi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.validationService=a,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.outDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,k.U)(g=>{switch(g.code){case L.ENOTDIR:return{error:!0,notADirectory:!0};case L.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,A.K)(()=>(0,gt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.group({outDir:["",[r.kI.required],[this.outDirAsyncValidator]]})}get control(){return this.settingsForm.get("outDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(ie))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-outdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u9a8c...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","outDir"],["errorTip",""],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,ui,7,2,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var rt=c(2643),B=c(2683);function pi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function di(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function hi(n,o){if(1&n&&(t.YNc(0,pi,2,0,"ng-container",12),t.YNc(1,di,2,0,"ng-container",12)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function _i(n,o){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.qZA()),2&n){const e=o.$implicit;t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.desc)}}function fi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"input",5),t.YNc(5,hi,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.TgZ(7,"nz-collapse"),t.TgZ(8,"nz-collapse-panel",7),t.TgZ(9,"nz-table",8,9),t.TgZ(11,"thead"),t.TgZ(12,"tr"),t.TgZ(13,"th"),t._uU(14,"\u53d8\u91cf"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"\u8bf4\u660e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"tbody"),t.YNc(18,_i,5,2,"tr",10),t.qZA(),t.qZA(),t.TgZ(19,"p",11),t.TgZ(20,"strong"),t._uU(21," \u6ce8\u610f\uff1a\u53d8\u91cf\u540d\u5fc5\u987b\u653e\u5728\u82b1\u62ec\u53f7\u4e2d\uff01\u4f7f\u7528\u65e5\u671f\u65f6\u95f4\u53d8\u91cf\u4ee5\u907f\u514d\u547d\u540d\u51b2\u7a81\uff01 "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.MAs(10),a=t.oxw();t.xp6(1),t.Q6J("formGroup",a.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",a.pathTemplatePattern),t.xp6(5),t.Q6J("nzData",a.pathTemplateVariables)("nzPageSize",11)("nzShowPagination",!1)("nzSize","small"),t.xp6(9),t.Q6J("ngForOf",i.data)}}function Ci(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.pathTemplateDefault),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let vi=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.pathTemplatePattern=h._m,this.pathTemplateDefault=h.ip,this.pathTemplateVariables=h.Dr,this.settingsForm=e.group({pathTemplate:["",[r.kI.required,r.kI.pattern(this.pathTemplatePattern)]]})}get control(){return this.settingsForm.get("pathTemplate")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}restoreDefault(){this.control.setValue(this.pathTemplateDefault)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-path-template-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u8def\u5f84\u6a21\u677f","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","pathTemplate",3,"pattern"],["errorTip",""],["nzHeader","\u6a21\u677f\u53d8\u91cf\u8bf4\u660e"],[3,"nzData","nzPageSize","nzShowPagination","nzSize"],["table",""],[4,"ngFor","ngForOf"],[1,"footnote"],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,fi,22,8,"ng-container",1),t.YNc(2,Ci,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,r.c5,p.O5,Vt,En,V.N8,V.Om,V.$Z,V.Uo,V._C,V.p0,p.sg,_.Uh,I.ix,rt.dQ,B.w],styles:[".footnote[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:0}"],changeDetection:0}),n})();var zi=c(6457),xi=c(4501);function Oi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u5927\u5c0f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1a\u6570\u5b57 + \u5355\u4f4d(GB, MB, KB, B) "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"0 B"),t.qZA(),t._UZ(8,"br"),t.qZA())}function bi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8\u5206\u5272\u6587\u4ef6\u4ee5\u9650\u5236\u5f55\u64ad\u6587\u4ef6\u65f6\u957f "),t._UZ(2,"br"),t._uU(3," \u683c\u5f0f\uff1aHH:MM:SS "),t._UZ(4,"br"),t._uU(5," \u4e0d\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u8bbe\u7f6e\u4e3a "),t.TgZ(6,"strong"),t._uU(7,"00:00:00"),t.qZA(),t._UZ(8,"br"),t.qZA())}let Mi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({outDir:[""],pathTemplate:[""],filesizeLimit:["",[r.kI.required,r.kI.min(0),r.kI.max(0xf9ff5c28f5)]],durationLimit:["",[r.kI.required,r.kI.min(0),r.kI.max(359999)]]})}get outDirControl(){return this.settingsForm.get("outDir")}get pathTemplateControl(){return this.settingsForm.get("pathTemplate")}get filesizeLimitControl(){return this.settingsForm.get("filesizeLimit")}get durationLimitControl(){return this.settingsForm.get("durationLimit")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("output",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-output-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:15,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["outDirEditDialog",""],["pathTemplateEditDialog",""],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["filesizeLimitTip",""],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","filesizeLimit"],["durationLimitTip",""],["formControlName","durationLimit"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-outdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.outDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-path-template-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.pathTemplateControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"nz-form-item",8),t.TgZ(18,"nz-form-label",9),t._uU(19,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.YNc(20,Oi,9,0,"ng-template",null,10,t.W1O),t.TgZ(22,"nz-form-control",11),t._UZ(23,"app-input-filesize",12),t.qZA(),t.qZA(),t.TgZ(24,"nz-form-item",8),t.TgZ(25,"nz-form-label",9),t._uU(26,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.YNc(27,bi,9,0,"ng-template",null,13,t.W1O),t.TgZ(29,"nz-form-control",11),t._UZ(30,"app-input-duration",14),t.qZA(),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(21),s=t.MAs(28);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.outDir?i.outDirControl:"warning"),t.xp6(2),t.hij("",i.outDirControl.value," "),t.xp6(1),t.Q6J("value",i.outDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.pathTemplate?i.pathTemplateControl:"warning"),t.xp6(2),t.hij("",i.pathTemplateControl.value," "),t.xp6(1),t.Q6J("value",i.pathTemplateControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.filesizeLimit?i.filesizeLimitControl:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.durationLimit?i.durationLimitControl:"warning")}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,mi,vi,zi.i,r.JJ,r.u,xi.q],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var q=c(3523);let Y=(()=>{class n{constructor(){}get actionable(){var e;return(null===(e=this.directive)||void 0===e?void 0:e.valueAccessor)instanceof D.i}onClick(e){var i;e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),(null===(i=this.directive)||void 0===i?void 0:i.valueAccessor)instanceof D.i&&this.directive.control.setValue(!this.directive.control.value))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","appSwitchActionable",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,r.u,5),2&e){let s;t.iGM(s=t.CRH())&&(i.directive=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("click",function(s){return i.onClick(s)}),2&e&&t.ekj("actionable",i.actionable)}}),n})();function Ti(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function Pi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function wi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",2),t._uU(2,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(3,Pi,8,0,"ng-template",null,19,t.W1O),t.TgZ(5,"nz-form-control",4),t._UZ(6,"nz-select",20),t.qZA(),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw();t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.fmp4StreamTimeout?i.fmp4StreamTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.fmp4StreamTimeoutOptions)}}function Fi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u6807\u51c6\u6a21\u5f0f: \u5bf9\u4e0b\u8f7d\u7684\u6d41\u6570\u636e\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(2,"br"),t._uU(3," \u539f\u59cb\u6a21\u5f0f: \u76f4\u63a5\u4e0b\u8f7d\u6d41\u6570\u636e\uff0c\u6ca1\u6709\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u4e0d\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(4,"br"),t.qZA())}function Si(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",2),t._uU(2,"\u5f55\u5236\u6a21\u5f0f"),t.qZA(),t.YNc(3,Fi,5,0,"ng-template",null,21,t.W1O),t.TgZ(5,"nz-form-control",4),t._UZ(6,"nz-select",22),t.qZA(),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw();t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordingMode?i.recordingModeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.recordingModeOptions)}}function Ai(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function yi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",23),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function Zi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",24),t._uU(2,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(3,"nz-form-control",4),t._UZ(4,"nz-select",25),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("nzWarningTip",e.syncStatus.readTimeout?"\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01":e.syncFailedWarningTip)("nzValidateStatus",e.syncStatus.readTimeout&&e.readTimeoutControl.value<=3?e.readTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",e.readTimeoutOptions)}}function ki(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",26),t._uU(2,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(3,"nz-form-control",4),t._UZ(4,"nz-select",27),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("nzWarningTip",e.syncFailedWarningTip)("nzValidateStatus",e.syncStatus.bufferSize?e.bufferSizeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",e.bufferOptions)}}let Di=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.streamFormatOptions=(0,q.Z)(h.tp),this.recordingModeOptions=(0,q.Z)(h.kV),this.fmp4StreamTimeoutOptions=(0,q.Z)(h.D4),this.qualityOptions=(0,q.Z)(h.O6),this.readTimeoutOptions=(0,q.Z)(h.D4),this.disconnectionTimeoutOptions=(0,q.Z)(h.$w),this.bufferOptions=(0,q.Z)(h.Rc),this.coverSaveStrategies=(0,q.Z)(h.J_),this.settingsForm=e.group({streamFormat:[""],recordingMode:[""],qualityNumber:[""],fmp4StreamTimeout:[""],readTimeout:[""],disconnectionTimeout:[""],bufferSize:[""],saveCover:[""],coverSaveStrategy:[""]})}get streamFormatControl(){return this.settingsForm.get("streamFormat")}get recordingModeControl(){return this.settingsForm.get("recordingMode")}get qualityNumberControl(){return this.settingsForm.get("qualityNumber")}get fmp4StreamTimeoutControl(){return this.settingsForm.get("fmp4StreamTimeout")}get readTimeoutControl(){return this.settingsForm.get("readTimeout")}get disconnectionTimeoutControl(){return this.settingsForm.get("disconnectionTimeout")}get bufferSizeControl(){return this.settingsForm.get("bufferSize")}get saveCoverControl(){return this.settingsForm.get("saveCover")}get coverSaveStrategyControl(){return this.settingsForm.get("coverSaveStrategy")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("recorder",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-recorder-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:35,vars:22,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["streamFormatTip",""],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","streamFormat",3,"nzOptions"],["class","setting-item",4,"ngIf"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["formControlName","qualityNumber",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","saveCover"],["coverSaveStrategyTip",""],[1,"setting-control","radio",3,"nzWarningTip","nzValidateStatus"],["formControlName","coverSaveStrategy",3,"nzDisabled"],[4,"ngFor","ngForOf"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["formControlName","disconnectionTimeout",3,"nzOptions"],["fmp4StreamTimeoutTip",""],["formControlName","fmp4StreamTimeout",3,"nzOptions"],["recordingModeTip",""],["formControlName","recordingMode",3,"nzOptions"],["nz-radio-button","",3,"nzValue"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["formControlName","readTimeout",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["formControlName","bufferSize",3,"nzOptions"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(4,Ti,14,0,"ng-template",null,3,t.W1O),t.TgZ(6,"nz-form-control",4),t._UZ(7,"nz-select",5),t.qZA(),t.qZA(),t.YNc(8,wi,7,4,"nz-form-item",6),t.YNc(9,Si,7,4,"nz-form-item",6),t.TgZ(10,"nz-form-item",1),t.TgZ(11,"nz-form-label",7),t._uU(12,"\u753b\u8d28"),t.qZA(),t.TgZ(13,"nz-form-control",4),t._UZ(14,"nz-select",8),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",9),t.TgZ(16,"nz-form-label",10),t._uU(17,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(18,"nz-form-control",11),t._UZ(19,"nz-switch",12),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",1),t.TgZ(21,"nz-form-label",2),t._uU(22,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(23,Ai,8,0,"ng-template",null,13,t.W1O),t.TgZ(25,"nz-form-control",14),t.TgZ(26,"nz-radio-group",15),t.YNc(27,yi,3,2,"ng-container",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(28,Zi,5,3,"nz-form-item",6),t.TgZ(29,"nz-form-item",1),t.TgZ(30,"nz-form-label",17),t._uU(31,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(32,"nz-form-control",4),t._UZ(33,"nz-select",18),t.qZA(),t.qZA(),t.YNc(34,ki,5,3,"nz-form-item",6),t.qZA()),2&e){const a=t.MAs(5),s=t.MAs(24);t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.streamFormat?i.streamFormatControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.streamFormatOptions),t.xp6(1),t.Q6J("ngIf","fmp4"===i.streamFormatControl.value),t.xp6(1),t.Q6J("ngIf","fmp4"===i.streamFormatControl.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.qualityNumber?i.qualityNumberControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.qualityOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveCover?i.saveCoverControl:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.coverSaveStrategy?i.coverSaveStrategyControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.saveCoverControl.value),t.xp6(1),t.Q6J("ngForOf",i.coverSaveStrategies),t.xp6(1),t.Q6J("ngIf","flv"===i.streamFormatControl.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.disconnectionTimeout?i.disconnectionTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.disconnectionTimeoutOptions),t.xp6(1),t.Q6J("ngIf","flv"===i.streamFormatControl.value||"fmp4"===i.streamFormatControl.value&&"standard"===i.recordingModeControl.value)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,it.Vq,r.JJ,r.u,p.O5,Y,D.i,U.Dg,p.sg,U.Of,U.Bq],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Ei=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({danmuUname:[""],recordGiftSend:[""],recordFreeGifts:[""],recordGuardBuy:[""],recordSuperChat:[""],saveRawDanmaku:[""]})}get danmuUnameControl(){return this.settingsForm.get("danmuUname")}get recordGiftSendControl(){return this.settingsForm.get("recordGiftSend")}get recordFreeGiftsControl(){return this.settingsForm.get("recordFreeGifts")}get recordGuardBuyControl(){return this.settingsForm.get("recordGuardBuy")}get recordSuperChatControl(){return this.settingsForm.get("recordSuperChat")}get saveRawDanmakuControl(){return this.settingsForm.get("saveRawDanmaku")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("danmaku",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-danmaku-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:13,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recordGiftSend"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordFreeGifts"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordGuardBuy"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordSuperChat"],["nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["formControlName","danmuUname"],["nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["formControlName","saveRawDanmaku"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",7),t._uU(13,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",9),t._uU(18,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",10),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",1),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(24,"nz-form-control",3),t._UZ(25,"nz-switch",12),t.qZA(),t.qZA(),t.TgZ(26,"nz-form-item",1),t.TgZ(27,"nz-form-label",13),t._uU(28,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(29,"nz-form-control",3),t._UZ(30,"nz-switch",14),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGiftSend?i.recordGiftSendControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordFreeGifts?i.recordFreeGiftsControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGuardBuy?i.recordGuardBuyControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordSuperChat?i.recordSuperChatControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.danmuUname?i.danmuUnameControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveRawDanmaku?i.saveRawDanmakuControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ni(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function Bi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",13),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}let qi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.deleteStrategies=h.rc,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({injectExtraMetadata:[""],remuxToMp4:[""],deleteSource:[""]})}get injectExtraMetadataControl(){return this.settingsForm.get("injectExtraMetadata")}get remuxToMp4Control(){return this.settingsForm.get("remuxToMp4")}get deleteSourceControl(){return this.settingsForm.get("deleteSource")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("postprocessing",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-post-processing-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:19,vars:11,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","injectExtraMetadata",3,"nzDisabled"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["formControlName","remuxToMp4"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["deleteSourceTip",""],[1,"setting-control","radio",3,"nzWarningTip","nzValidateStatus"],["formControlName","deleteSource",3,"nzDisabled"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"\u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",7),t.TgZ(12,"nz-form-label",8),t._uU(13,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(14,Ni,7,0,"ng-template",null,9,t.W1O),t.TgZ(16,"nz-form-control",10),t.TgZ(17,"nz-radio-group",11),t.YNc(18,Bi,3,2,"ng-container",12),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(15);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.injectExtraMetadata?i.injectExtraMetadataControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",i.remuxToMp4Control.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.remuxToMp4?i.remuxToMp4Control:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.deleteSource?i.deleteSourceControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.remuxToMp4Control.value),t.xp6(1),t.Q6J("ngForOf",i.deleteStrategies)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u,U.Dg,p.sg,U.Of,U.Bq],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Ui=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.intervalOptions=[{label:"\u4e0d\u68c0\u6d4b",value:0},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],this.thresholdOptions=[{label:"1 GB",value:1024**3},{label:"3 GB",value:1024**3*3},{label:"5 GB",value:1024**3*5},{label:"10 GB",value:1024**3*10},{label:"20 GB",value:1024**3*20}],this.settingsForm=e.group({recycleRecords:[""],checkInterval:[""],spaceThreshold:[""]})}get recycleRecordsControl(){return this.settingsForm.get("recycleRecords")}get checkIntervalControl(){return this.settingsForm.get("checkInterval")}get spaceThresholdControl(){return this.settingsForm.get("spaceThreshold")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("space",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-disk-space-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:16,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","checkInterval",3,"nzOptions"],["formControlName","spaceThreshold",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recycleRecords"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u95f4\u9694"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-select",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u9608\u503c"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-select",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",6),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u7a7a\u95f4\u4e0d\u8db3\u5220\u9664\u65e7\u5f55\u64ad\u6587\u4ef6"),t.qZA(),t.TgZ(14,"nz-form-control",7),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.checkInterval?i.checkIntervalControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.intervalOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.spaceThreshold?i.spaceThresholdControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.thresholdOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recycleRecords?i.recycleRecordsControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,it.Vq,r.JJ,r.u,Y,D.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ii(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function Vi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"json"),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" \u8f93\u5165\u65e0\u6548: ",t.lcZ(2,1,e.getError("baseUrl").value)," ")}}function Ji(n,o){if(1&n&&(t.YNc(0,Ii,2,0,"ng-container",7),t.YNc(1,Vi,3,3,"ng-container",7)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("baseUrl"))}}function Qi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"textarea",5),t.YNc(5,Ji,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("rows",5)}}function Li(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.defaultBaseApiUrl),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let Yi=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value=[],this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.defaultBaseApiUrl=h.QL,this.settingsForm=e.group({baseApiUrls:["",[r.kI.required,n=>{const i=n.value.split("\n").map(a=>a.trim()).filter(a=>!!a).filter(a=>!/^https?:\/\/\S+$/.test(a));return i.length>0?{baseUrl:{value:i}}:null}]]})}get control(){return this.settingsForm.get("baseApiUrls")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value.join("\n")),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){const i=this.control.value.split("\n").map(a=>a.trim()).filter(a=>!!a);this.confirm.emit(i),this.close()}restoreDefault(){this.control.setValue(this.defaultBaseApiUrl)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-base-api-url-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539\u4e3b\u7ad9 API \u4e3b\u673a\u5730\u5740","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["wrap","soft","nz-input","","required","","formControlName","baseApiUrls",3,"rows"],["errorTip",""],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzDanger","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,Qi,7,3,"ng-container",1),t.YNc(2,Li,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,_.Uh,I.ix,rt.dQ,B.w],pipes:[p.Ts],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Wi(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function Ri(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"json"),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" \u8f93\u5165\u65e0\u6548: ",t.lcZ(2,1,e.getError("baseUrl").value)," ")}}function Hi(n,o){if(1&n&&(t.YNc(0,Wi,2,0,"ng-container",7),t.YNc(1,Ri,3,3,"ng-container",7)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("baseUrl"))}}function $i(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"textarea",5),t.YNc(5,Hi,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("rows",5)}}function Gi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.defaultBaseLiveApiUrl),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let ji=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value=[],this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.defaultBaseLiveApiUrl=h.gZ,this.settingsForm=e.group({baseLiveApiUrls:["",[r.kI.required,n=>{const i=n.value.split("\n").map(a=>a.trim()).filter(a=>!!a).filter(a=>!/^https?:\/\/\S+$/.test(a));return i.length>0?{baseUrl:{value:i}}:null}]]})}get control(){return this.settingsForm.get("baseLiveApiUrls")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value.join("\n")),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){const i=this.control.value.split("\n").map(a=>a.trim()).filter(a=>!!a);this.confirm.emit(i),this.close()}restoreDefault(){this.control.setValue(this.defaultBaseLiveApiUrl)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-base-live-api-url-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539\u76f4\u64ad API \u4e3b\u673a\u5730\u5740","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["wrap","soft","nz-input","","required","","formControlName","baseLiveApiUrls",3,"rows"],["errorTip",""],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzDanger","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,$i,7,3,"ng-container",1),t.YNc(2,Gi,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,_.Uh,I.ix,rt.dQ,B.w],pipes:[p.Ts],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Xi(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u80fd\u4e3a\u7a7a "),t.BQk())}function Ki(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"json"),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" \u8f93\u5165\u65e0\u6548: ",t.lcZ(2,1,e.getError("baseUrl").value)," ")}}function to(n,o){if(1&n&&(t.YNc(0,Xi,2,0,"ng-container",7),t.YNc(1,Ki,3,3,"ng-container",7)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("baseUrl"))}}function eo(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"textarea",5),t.YNc(5,to,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("rows",5)}}function no(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.defaultBasePlayInfoApiUrl),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let io=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value=[],this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.defaultBasePlayInfoApiUrl=h.gZ,this.settingsForm=e.group({basePlayInfoApiUrls:["",[r.kI.required,n=>{const i=n.value.split("\n").map(a=>a.trim()).filter(a=>!!a).filter(a=>!/^https?:\/\/\S+$/.test(a));return i.length>0?{baseUrl:{value:i}}:null}]]})}get control(){return this.settingsForm.get("basePlayInfoApiUrls")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value.join("\n")),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){const i=this.control.value.split("\n").map(a=>a.trim()).filter(a=>!!a);this.confirm.emit(i),this.close()}restoreDefault(){this.control.setValue(this.defaultBasePlayInfoApiUrl)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-base-play-info-api-url-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:3,vars:2,consts:[["nzTitle","\u4fee\u6539\u76f4\u64ad\u6d41 API \u4e3b\u673a\u5730\u5740","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange"],[4,"nzModalContent"],[3,"nzModalFooter"],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["wrap","soft","nz-input","","required","","formControlName","basePlayInfoApiUrls",3,"rows"],["errorTip",""],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzDanger","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,eo,7,3,"ng-container",1),t.YNc(2,no,6,2,"ng-template",2),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,_.Uh,I.ix,rt.dQ,B.w],pipes:[p.Ts],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function oo(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1,"\u8bbe\u7f6e\u5185\u5bb9\uff1a\u53d1\u9001\u4e3b\u7ad9 API \u8bf7\u6c42\u6240\u7528\u7684\u4e3b\u673a\u7684\u5730\u5740\uff0c\u4e00\u884c\u4e00\u4e2a\u3002"),t.qZA(),t.TgZ(2,"p"),t._uU(3,"\u8bf7\u6c42\u65b9\u5f0f\uff1a\u5148\u7528\u7b2c\u4e00\u4e2a\u53d1\u9001\u8bf7\u6c42\uff0c\u51fa\u9519\u5c31\u7528\u7b2c\u4e8c\u4e2a\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002"),t.qZA(),t.TgZ(4,"p"),t._uU(5,"\u4e3b\u8981\u76ee\u7684\uff1a\u7f13\u89e3\u8bf7\u6c42\u8fc7\u591a\u88ab\u98ce\u63a7"),t.qZA())}function ao(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u8bbe\u7f6e\u5185\u5bb9\uff1a\u53d1\u9001\u76f4\u64ad API (\u76f4\u64ad\u6d41 API getRoomPlayInfo \u9664\u5916) \u8bf7\u6c42\u6240\u7528\u7684\u4e3b\u673a\u7684\u5730\u5740\uff0c\u4e00\u884c\u4e00\u4e2a\u3002 "),t.qZA(),t.TgZ(2,"p"),t._uU(3,"\u8bf7\u6c42\u65b9\u5f0f\uff1a\u5148\u7528\u7b2c\u4e00\u4e2a\u53d1\u9001\u8bf7\u6c42\uff0c\u51fa\u9519\u5c31\u7528\u7b2c\u4e8c\u4e2a\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002"),t.qZA(),t.TgZ(4,"p"),t._uU(5,"\u4e3b\u8981\u76ee\u7684\uff1a\u7f13\u89e3\u8bf7\u6c42\u8fc7\u591a\u88ab\u98ce\u63a7"),t.qZA())}function ro(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u8bbe\u7f6e\u5185\u5bb9\uff1a\u53d1\u9001\u76f4\u64ad\u6d41 API (getRoomPlayInfo) \u8bf7\u6c42\u6240\u7528\u7684\u4e3b\u673a\u7684\u5730\u5740\uff0c\u4e00\u884c\u4e00\u4e2a\u3002 "),t.qZA(),t.TgZ(2,"p"),t._uU(3," \u8bf7\u6c42\u65b9\u5f0f\uff1a\u540c\u65f6\u5e76\u53d1\u5411\u5168\u90e8 API \u4e3b\u673a\u53d1\u9001\u8bf7\u6c42\uff08\u4ece\u5168\u90e8\u6210\u529f\u7684\u8bf7\u6c42\u7ed3\u679c\u4e2d\u63d0\u53d6\u76f4\u64ad\u6d41\u8d28\u91cf\u8f83\u597d\u7684\u76f4\u64ad\u6d41\u5730\u5740\uff09 "),t.qZA(),t.TgZ(4,"p"),t._uU(5,"\u4e3b\u8981\u76ee\u7684\uff1a\u6539\u53d8\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u7684 CDN"),t.qZA(),t.TgZ(6,"p"),t._uU(7," P.S\uff1a\u56fd\u5916 IP \u7684\u8bf7\u6c42\u7ed3\u679c\u6ca1\u6709 HLS(fmp4) \u6d41\uff0c\u8981\u540c\u65f6\u652f\u6301 fmp4 \u548c flv \u53ef\u4ee5\u6df7\u7528\u56fd\u5185\u548c\u56fd\u5916\u7684 API \u4e3b\u673a\u3002 "),t.qZA())}let so=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({baseApiUrls:[[]],baseLiveApiUrls:[[]],basePlayInfoApiUrls:[[]]})}get baseApiUrlsControl(){return this.settingsForm.get("baseApiUrls")}get baseLiveApiUrlsControl(){return this.settingsForm.get("baseLiveApiUrls")}get basePlayInfoApiUrlsControl(){return this.settingsForm.get("basePlayInfoApiUrls")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("biliApi",this.settings,this.settingsForm.valueChanges,!1).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-bili-api-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:16,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label",3,"nzTooltipTitle"],["baseApiUrlsTip",""],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["baseApiUrlsEditDialog",""],["baseLiveApiUrlsTip",""],["baseLiveApiUrlsEditDialog",""],["basePalyInfoApiUrlTip",""],["basePlayInfoApiUrlsEditDialog",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(10).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u4e3b\u7ad9 API \u4e3b\u673a\u5730\u5740"),t.qZA(),t.YNc(4,oo,6,0,"ng-template",null,3,t.W1O),t.TgZ(6,"nz-form-control",4),t.TgZ(7,"nz-form-text",5),t._uU(8),t.qZA(),t.TgZ(9,"app-base-api-url-edit-dialog",6,7),t.NdJ("confirm",function(g){return i.baseApiUrlsControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(20).open()}),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u76f4\u64ad API \u4e3b\u673a\u5730\u5740"),t.qZA(),t.YNc(14,ao,6,0,"ng-template",null,8,t.W1O),t.TgZ(16,"nz-form-control",4),t.TgZ(17,"nz-form-text",5),t._uU(18),t.qZA(),t.TgZ(19,"app-base-live-api-url-edit-dialog",6,9),t.NdJ("confirm",function(g){return i.baseLiveApiUrlsControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(30).open()}),t.TgZ(22,"nz-form-label",2),t._uU(23,"\u76f4\u64ad\u6d41 API \u4e3b\u673a\u5730\u5740"),t.qZA(),t.YNc(24,ro,8,0,"ng-template",null,10,t.W1O),t.TgZ(26,"nz-form-control",4),t.TgZ(27,"nz-form-text",5),t._uU(28),t.qZA(),t.TgZ(29,"app-base-play-info-api-url-edit-dialog",6,11),t.NdJ("confirm",function(g){return i.basePlayInfoApiUrlsControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(5),s=t.MAs(15),g=t.MAs(25);t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",a),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.baseApiUrls?i.baseApiUrlsControl:"warning"),t.xp6(2),t.hij("",i.baseApiUrlsControl.value," "),t.xp6(1),t.Q6J("value",i.baseApiUrlsControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.baseLiveApiUrls?i.baseLiveApiUrlsControl:"warning"),t.xp6(2),t.hij("",i.baseLiveApiUrlsControl.value," "),t.xp6(1),t.Q6J("value",i.baseLiveApiUrlsControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",g),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.basePlayInfoApiUrls?i.basePlayInfoApiUrlsControl:"warning"),t.xp6(2),t.hij("",i.basePlayInfoApiUrlsControl.value," "),t.xp6(1),t.Q6J("value",i.basePlayInfoApiUrlsControl.value)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,Yi,ji,io],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-form-control[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"],changeDetection:0}),n})();function lo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function co(n,o){1&n&&t.YNc(0,lo,2,0,"ng-container",6),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function go(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.YNc(5,co,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",i.warningTip)("nzValidateStatus",i.control.valid&&i.control.value.trim()!==i.value?"warning":i.control)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)}}let uo=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=e.group({userAgent:["",[r.kI.required]]})}get control(){return this.settingsForm.get("userAgent")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-agent-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 User Agent","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["required","","nz-input","","formControlName","userAgent",3,"rows"],["errorTip",""],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,go,7,5,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function mo(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",e.warningTip)("nzValidateStatus",e.control.valid&&e.control.value.trim()!==e.value?"warning":e.control),t.xp6(1),t.Q6J("rows",5)}}let po=(()=>{class n{constructor(e,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=e.group({cookie:[""]})}get control(){return this.settingsForm.get("cookie")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-cookie-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 Cookie","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus"],["wrap","soft","nz-input","","formControlName","cookie",3,"rows"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,mo,5,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),ho=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({userAgent:["",[r.kI.required]],cookie:[""]})}get userAgentControl(){return this.settingsForm.get("userAgent")}get cookieControl(){return this.settingsForm.get("cookie")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("header",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-header-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:17,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["userAgentEditDialog",""],["cookieEditDialog",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"User Agent"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-user-agent-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.userAgentControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"Cookie"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-cookie-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.cookieControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.userAgent?i.userAgentControl:"warning"),t.xp6(2),t.hij("",i.userAgentControl.value," "),t.xp6(1),t.Q6J("value",i.userAgentControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.cookie?i.cookieControl:"warning"),t.xp6(2),t.hij("",i.cookieControl.value," "),t.xp6(1),t.Q6J("value",i.cookieControl.value))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,uo,po],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var _o=Math.ceil,fo=Math.max;var zo=c(3093),oe=c(6667),st=c(1999);var bo=/\s/;var Po=/^\s+/;const Fo=function wo(n){return n&&n.slice(0,function Mo(n){for(var o=n.length;o--&&bo.test(n.charAt(o)););return o}(n)+1).replace(Po,"")};var So=c(6460),Ao=/^[-+]0x[0-9a-f]+$/i,yo=/^0b[01]+$/i,Zo=/^0o[0-7]+$/i,ko=parseInt;const Pt=function Bo(n){return n?1/0===(n=function Do(n){if("number"==typeof n)return n;if((0,So.Z)(n))return NaN;if((0,st.Z)(n)){var o="function"==typeof n.valueOf?n.valueOf():n;n=(0,st.Z)(o)?o+"":o}if("string"!=typeof n)return 0===n?n:+n;n=Fo(n);var e=yo.test(n);return e||Zo.test(n)?ko(n.slice(2),e?2:8):Ao.test(n)?NaN:+n}(n))||-1/0===n?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0},se=function qo(n){return function(o,e,i){return i&&"number"!=typeof i&&function xo(n,o,e){if(!(0,st.Z)(e))return!1;var i=typeof o;return!!("number"==i?(0,ne.Z)(e)&&(0,oe.Z)(o,e.length):"string"==i&&o in e)&&(0,zo.Z)(e[o],n)}(o,e,i)&&(e=i=void 0),o=Pt(o),void 0===e?(e=o,o=0):e=Pt(e),function Co(n,o,e,i){for(var a=-1,s=fo(_o((o-n)/(e||1)),0),g=Array(s);s--;)g[i?s:++a]=n,n+=e;return g}(o,e,i=void 0===i?o{class n{constructor(e,i,a){this.changeDetector=i,this.validationService=a,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.logDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,k.U)(g=>{switch(g.code){case L.ENOTDIR:return{error:!0,notADirectory:!0};case L.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,A.K)(()=>(0,gt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.group({logDir:["",[r.kI.required],[this.logDirAsyncValidator]]})}get control(){return this.settingsForm.get("logDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(ie))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-logdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u8bc1...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","logDir"],["errorTip",""],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Yo,7,2,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Ro=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.logLevelOptions=[{label:"VERBOSE",value:"NOTSET"},{label:"DEBUG",value:"DEBUG"},{label:"INFO",value:"INFO"},{label:"WARNING",value:"WARNING"},{label:"ERROR",value:"ERROR"},{label:"CRITICAL",value:"CRITICAL"}],this.maxBytesOptions=se(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=se(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=e.group({logDir:[""],consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get logDirControl(){return this.settingsForm.get("logDir")}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("logging",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-logging-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:24,vars:14,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["logDirEditDialog",""],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","consoleLogLevel",3,"nzOptions"],[1,"setting-item"],["formControlName","maxBytes",3,"nzOptions"],["formControlName","backupCount",3,"nzOptions"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-logdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.logDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",7),t.TgZ(10,"nz-form-label",8),t._uU(11,"\u7ec8\u7aef\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b"),t.qZA(),t.TgZ(12,"nz-form-control",9),t._UZ(13,"nz-select",10),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",11),t.TgZ(15,"nz-form-label",8),t._uU(16,"\u65e5\u5fd7\u6587\u4ef6\u5206\u5272\u5927\u5c0f"),t.qZA(),t.TgZ(17,"nz-form-control",9),t._UZ(18,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(19,"nz-form-item",11),t.TgZ(20,"nz-form-label",8),t._uU(21,"\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u6570\u91cf"),t.qZA(),t.TgZ(22,"nz-form-control",9),t._UZ(23,"nz-select",13),t.qZA(),t.qZA(),t.qZA()}2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.logDir?i.logDirControl:"warning"),t.xp6(2),t.hij("",i.logDirControl.value," "),t.xp6(1),t.Q6J("value",i.logDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.consoleLogLevel?i.consoleLogLevelControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.logLevelOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.maxBytes?i.maxBytesControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.maxBytesOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.backupCount?i.backupCountControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.backupOptions))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,l.EF,Wo,Y,it.Vq,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),Ho=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-notification-settings"]],decls:25,vars:0,consts:[["routerLink","email-notification",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"],["routerLink","serverchan-notification",1,"setting-item"],["routerLink","pushdeer-notification",1,"setting-item"],["routerLink","pushplus-notification",1,"setting-item"],["routerLink","telegram-notification",1,"setting-item"]],template:function(e,i){1&e&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"\u90ae\u7bb1\u901a\u77e5"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA(),t.TgZ(5,"a",4),t.TgZ(6,"span",1),t._uU(7,"ServerChan \u901a\u77e5"),t.qZA(),t.TgZ(8,"span",2),t._UZ(9,"i",3),t.qZA(),t.qZA(),t.TgZ(10,"a",5),t.TgZ(11,"span",1),t._uU(12,"PushDeer \u901a\u77e5"),t.qZA(),t.TgZ(13,"span",2),t._UZ(14,"i",3),t.qZA(),t.qZA(),t.TgZ(15,"a",6),t.TgZ(16,"span",1),t._uU(17,"pushplus \u901a\u77e5"),t.qZA(),t.TgZ(18,"span",2),t._UZ(19,"i",3),t.qZA(),t.qZA(),t.TgZ(20,"a",7),t.TgZ(21,"span",1),t._uU(22,"telegram \u901a\u77e5"),t.qZA(),t.TgZ(23,"span",2),t._UZ(24,"i",3),t.qZA(),t.qZA())},directives:[C.yS,B.w,H.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),$o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-settings"]],decls:5,vars:0,consts:[["routerLink","webhooks",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"]],template:function(e,i){1&e&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"Webhooks"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA())},directives:[C.yS,B.w,H.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();const Go=["innerContent"];let jo=(()=>{class n{constructor(e,i,a,s){this.changeDetector=e,this.route=i,this.logger=a,this.routerScrollService=s}ngOnInit(){this.route.data.subscribe(e=>{this.settings=e.settings,this.changeDetector.markForCheck()})}ngAfterViewInit(){this.innerContent?this.routerScrollService.setCustomViewportToScroll(this.innerContent.nativeElement):this.logger.error("The content element could not be found!")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(C.gz),t.Y36(E.Kf),t.Y36(In))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-settings"]],viewQuery:function(e,i){if(1&e&&t.Gf(Go,5),2&e){let a;t.iGM(a=t.CRH())&&(i.innerContent=a.first)}},decls:24,vars:8,consts:[[1,"inner-content"],["innerContent",""],[1,"main-settings","settings-page"],[1,"settings-page-content"],["name","\u6587\u4ef6"],[3,"settings"],["name","\u5f55\u5236"],["name","\u5f39\u5e55"],["name","\u6587\u4ef6\u5904\u7406"],["name","\u786c\u76d8\u7a7a\u95f4"],["name","BILI API"],["name","\u7f51\u7edc\u8bf7\u6c42"],["name","\u65e5\u5fd7"],["name","\u901a\u77e5"],["name","Webhook"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0,1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"app-page-section",4),t._UZ(5,"app-output-settings",5),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-recorder-settings",5),t.qZA(),t.TgZ(8,"app-page-section",7),t._UZ(9,"app-danmaku-settings",5),t.qZA(),t.TgZ(10,"app-page-section",8),t._UZ(11,"app-post-processing-settings",5),t.qZA(),t.TgZ(12,"app-page-section",9),t._UZ(13,"app-disk-space-settings",5),t.qZA(),t.TgZ(14,"app-page-section",10),t._UZ(15,"app-bili-api-settings",5),t.qZA(),t.TgZ(16,"app-page-section",11),t._UZ(17,"app-header-settings",5),t.qZA(),t.TgZ(18,"app-page-section",12),t._UZ(19,"app-logging-settings",5),t.qZA(),t.TgZ(20,"app-page-section",13),t._UZ(21,"app-notification-settings"),t.qZA(),t.TgZ(22,"app-page-section",14),t._UZ(23,"app-webhook-settings"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(5),t.Q6J("settings",i.settings.output),t.xp6(2),t.Q6J("settings",i.settings.recorder),t.xp6(2),t.Q6J("settings",i.settings.danmaku),t.xp6(2),t.Q6J("settings",i.settings.postprocessing),t.xp6(2),t.Q6J("settings",i.settings.space),t.xp6(2),t.Q6J("settings",i.settings.biliApi),t.xp6(2),t.Q6J("settings",i.settings.header),t.xp6(2),t.Q6J("settings",i.settings.logging))},directives:[Q.g,Mi,Di,Ei,qi,Ui,so,ho,Ro,Ho,$o],styles:[".inner-content[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.inner-content[_ngcontent-%COMP%]{padding-top:0}"]}),n})();var Xo=c(7298),Ko=c(1481),le=c(3449),ta=c(2168);const na=function ea(n,o,e,i){if(!(0,st.Z)(n))return n;for(var a=-1,s=(o=(0,le.Z)(o,n)).length,g=s-1,u=n;null!=u&&++a0&&e(u)?o>1?ue(u,o-1,e,i,a):(0,la.Z)(a,u):i||(a[a.length]=u)}return a},pa=function ma(n){return null!=n&&n.length?ua(n,1):[]},ha=function da(n,o,e){switch(e.length){case 0:return n.call(o);case 1:return n.call(o,e[0]);case 2:return n.call(o,e[0],e[1]);case 3:return n.call(o,e[0],e[1],e[2])}return n.apply(o,e)};var me=Math.max;const va=function Ca(n){return function(){return n}};var pe=c(2370),za=c(9940),Ta=Date.now;const Fa=function Pa(n){var o=0,e=0;return function(){var i=Ta(),a=16-(i-e);if(e=i,a>0){if(++o>=800)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}(pe.Z?function(n,o){return(0,pe.Z)(n,"toString",{configurable:!0,enumerable:!1,value:va(o),writable:!0})}:za.Z),v=function Sa(n){return Fa(function _a(n,o,e){return o=me(void 0===o?n.length-1:o,0),function(){for(var i=arguments,a=-1,s=me(i.length-o,0),g=Array(s);++a{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({enabled:[""]})}get enabledControl(){return this.settingsForm.get("enabled")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-notifier-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:6,vars:3,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","enabled"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5141\u8bb8\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.enabled?i.enabledControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var ya=c(6422);function Za(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function ka(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Da(n,o){if(1&n&&(t.YNc(0,Za,2,0,"ng-container",17),t.YNc(1,ka,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}function Ea(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Na(n,o){1&n&&t.YNc(0,Ea,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Ba(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function qa(n,o){1&n&&t.YNc(0,Ba,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Ua(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function Ia(n,o){1&n&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Va(n,o){if(1&n&&(t.YNc(0,Ua,2,0,"ng-container",17),t.YNc(1,Ia,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ja(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Qa(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function La(n,o){if(1&n&&(t.YNc(0,Ja,2,0,"ng-container",17),t.YNc(1,Qa,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}let Ya=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({srcAddr:["",[r.kI.required,r.kI.email]],dstAddr:["",[r.kI.required,r.kI.email]],authCode:["",[r.kI.required]],smtpHost:["",[r.kI.required]],smtpPort:["",[r.kI.required,r.kI.pattern(/\d+/)]]})}get srcAddrControl(){return this.settingsForm.get("srcAddr")}get dstAddrControl(){return this.settingsForm.get("dstAddr")}get authCodeControl(){return this.settingsForm.get("authCode")}get smtpHostControl(){return this.settingsForm.get("smtpHost")}get smtpPortControl(){return this.settingsForm.get("smtpPort")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm),(0,k.U)(e=>(0,ya.Z)(e,(i,a,s)=>{a="smtpPort"===s?parseInt(a):a,Reflect.set(i,s,a)},{})))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-email-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:36,vars:16,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","srcAddr","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","srcAddr","type","email","placeholder","\u53d1\u9001\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740","required","","nz-input","","formControlName","srcAddr"],["emailErrorTip",""],["nzFor","authCode","nzNoColon","","nzRequired","",1,"setting-label"],["id","authCode","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u6388\u6743\u7801","required","","nz-input","","formControlName","authCode"],["authCodeErrorTip",""],["nzFor","smtpHost","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpHost","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\uff0c\u4f8b\u5982\uff1asmtp.163.com \u3002","required","","nz-input","","formControlName","smtpHost"],["smtpHostErrorTip",""],["nzFor","smtpPort","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpPort","type","text","pattern","\\d+","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\u7aef\u53e3\uff0c\u901a\u5e38\u4e3a 465 \u3002","required","","nz-input","","formControlName","smtpPort"],["smtpPortErrorTip",""],["nzFor","dstAddr","nzNoColon","","nzRequired","",1,"setting-label"],["id","dstAddr","type","email","placeholder","\u63a5\u6536\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740\uff0c\u53ef\u4ee5\u548c\u53d1\u9001\u90ae\u7bb1\u76f8\u540c\u5b9e\u73b0\u81ea\u53d1\u81ea\u6536\u3002","required","","nz-input","","formControlName","dstAddr"],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u53d1\u9001\u90ae\u7bb1"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,Da,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"\u6388\u6743\u7801"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,Na,1,1,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",1),t.TgZ(16,"nz-form-label",9),t._uU(17,"SMTP \u4e3b\u673a"),t.qZA(),t.TgZ(18,"nz-form-control",3),t._UZ(19,"input",10),t.YNc(20,qa,1,1,"ng-template",null,11,t.W1O),t.qZA(),t.qZA(),t.TgZ(22,"nz-form-item",1),t.TgZ(23,"nz-form-label",12),t._uU(24,"SMTP \u7aef\u53e3"),t.qZA(),t.TgZ(25,"nz-form-control",3),t._UZ(26,"input",13),t.YNc(27,Va,2,2,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.TgZ(29,"nz-form-item",1),t.TgZ(30,"nz-form-label",15),t._uU(31,"\u63a5\u6536\u90ae\u7bb1"),t.qZA(),t.TgZ(32,"nz-form-control",3),t._UZ(33,"input",16),t.YNc(34,La,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14),g=t.MAs(21),u=t.MAs(28);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.srcAddrControl.valid&&!i.syncStatus.srcAddr?"warning":i.srcAddrControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.authCodeControl.valid&&!i.syncStatus.authCode?"warning":i.authCodeControl),t.xp6(7),t.Q6J("nzErrorTip",g)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpHostControl.valid&&!i.syncStatus.smtpHost?"warning":i.smtpHostControl),t.xp6(7),t.Q6J("nzErrorTip",u)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpPortControl.valid&&!i.syncStatus.smtpPort?"warning":i.smtpPortControl),t.xp6(7),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.dstAddrControl.valid&&!i.syncStatus.dstAddr?"warning":i.dstAddrControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,r.c5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:6em!important;width:6em!important}"],changeDetection:0}),n})(),ct=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({notifyBegan:[""],notifyEnded:[""],notifyError:[""],notifySpace:[""]})}get notifyBeganControl(){return this.settingsForm.get("notifyBegan")}get notifyEndedControl(){return this.settingsForm.get("notifyEnded")}get notifyErrorControl(){return this.settingsForm.get("notifyError")}get notifySpaceControl(){return this.settingsForm.get("notifySpace")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settingsForm.value,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-event-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:21,vars:9,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","notifyBegan"],["formControlName","notifyEnded"],["formControlName","notifyError"],["formControlName","notifySpace"]],template:function(e,i){1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5f00\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u4e0b\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u51fa\u9519\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",2),t._uU(18,"\u7a7a\u95f4\u4e0d\u8db3\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",7),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyBegan?i.notifyBeganControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyEnded?i.notifyEndedControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyError?i.notifyErrorControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifySpace?i.notifySpaceControl:"warning"))},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,Y,m.t3,l.iK,l.Fd,D.i,r.JJ,r.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})(),tt=(()=>{class n{constructor(e,i,a){this.changeDetector=e,this.message=i,this.settingService=a}ngOnInit(){switch(this.keyOfSettings){case"emailNotification":this.messageTypes=["text","html"];break;case"serverchanNotification":this.messageTypes=["markdown"];break;case"pushdeerNotification":this.messageTypes=["markdown","text"];break;case"pushplusNotification":this.messageTypes=["markdown","text","html"];break;case"telegramNotification":this.messageTypes=["markdown","html"]}}ngOnChanges(e){this.updateCommonSettings()}changeBeganMessageTemplateSettings(e){this.changeMessageTemplateSettings({beganMessageType:e.messageType,beganMessageTitle:e.messageTitle,beganMessageContent:e.messageContent}).subscribe()}changeEndedMessageTemplateSettings(e){this.changeMessageTemplateSettings({endedMessageType:e.messageType,endedMessageTitle:e.messageTitle,endedMessageContent:e.messageContent}).subscribe()}changeSpaceMessageTemplateSettings(e){this.changeMessageTemplateSettings({spaceMessageType:e.messageType,spaceMessageTitle:e.messageTitle,spaceMessageContent:e.messageContent}).subscribe()}changeErrorMessageTemplateSettings(e){this.changeMessageTemplateSettings({errorMessageType:e.messageType,errorMessageTitle:e.messageTitle,errorMessageContent:e.messageContent}).subscribe()}changeMessageTemplateSettings(e){return this.settingService.changeSettings({[this.keyOfSettings]:e}).pipe((0,y.X)(3,300),(0,mt.b)(i=>{this.message.success("\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u6210\u529f"),this.settings=Object.assign(Object.assign({},this.settings),i[this.keyOfSettings]),this.updateCommonSettings(),this.changeDetector.markForCheck()},i=>{this.message.error(`\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}updateCommonSettings(){this.beganMessageTemplateSettings={messageType:this.settings.beganMessageType,messageTitle:this.settings.beganMessageTitle,messageContent:this.settings.beganMessageContent},this.endedMessageTemplateSettings={messageType:this.settings.endedMessageType,messageTitle:this.settings.endedMessageTitle,messageContent:this.settings.endedMessageContent},this.spaceMessageTemplateSettings={messageType:this.settings.spaceMessageType,messageTitle:this.settings.spaceMessageTitle,messageContent:this.settings.spaceMessageContent},this.errorMessageTemplateSettings={messageType:this.settings.errorMessageType,messageTitle:this.settings.errorMessageTitle,messageContent:this.settings.errorMessageContent}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Mt.dD),t.Y36(Z.R))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:20,vars:12,consts:[[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"title","value","messageTypes","confirm"],["beganMessageTemplateEditDialog",""],["endedMessageTemplateEditDialog",""],["errorMessageTemplateEditDialog",""],["spaceMessageTemplateEditDialog",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(4).open()}),t.TgZ(1,"span",1),t._uU(2,"\u5f00\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(3,"app-message-template-edit-dialog",2,3),t.NdJ("confirm",function(g){return i.changeBeganMessageTemplateSettings(g)}),t.qZA(),t.TgZ(5,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(9).open()}),t.TgZ(6,"span",1),t._uU(7,"\u4e0b\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(8,"app-message-template-edit-dialog",2,4),t.NdJ("confirm",function(g){return i.changeEndedMessageTemplateSettings(g)}),t.qZA(),t.TgZ(10,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(14).open()}),t.TgZ(11,"span",1),t._uU(12,"\u5f02\u5e38\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(13,"app-message-template-edit-dialog",2,5),t.NdJ("confirm",function(g){return i.changeErrorMessageTemplateSettings(g)}),t.qZA(),t.TgZ(15,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(19).open()}),t.TgZ(16,"span",1),t._uU(17,"\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(18,"app-message-template-edit-dialog",2,6),t.NdJ("confirm",function(g){return i.changeSpaceMessageTemplateSettings(g)}),t.qZA()}2&e&&(t.xp6(3),t.Q6J("title","\u4fee\u6539\u5f00\u64ad\u6d88\u606f\u6a21\u677f")("value",i.beganMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u4e0b\u64ad\u6d88\u606f\u6a21\u677f")("value",i.endedMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u5f02\u5e38\u6d88\u606f\u6a21\u677f")("value",i.errorMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f")("value",i.spaceMessageTemplateSettings)("messageTypes",i.messageTypes))},styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Wa(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-email-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.emailSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Ra=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.emailSettings=v(i,z.gP),this.notifierSettings=v(i,z._1),this.notificationSettings=v(i,z.X),this.messageTemplateSettings=v(i,z.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-email-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","\u90ae\u4ef6\u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","emailNotification",3,"settings"],["name","\u90ae\u7bb1"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Wa,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,Q.g,lt,Ya,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function Ha(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function $a(n,o){1&n&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function Ga(n,o){if(1&n&&(t.YNc(0,Ha,2,0,"ng-container",6),t.YNc(1,$a,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ja=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({sendkey:["",[r.kI.required,r.kI.pattern(/^[a-zA-Z\d]+$/)]]})}get sendkeyControl(){return this.settingsForm.get("sendkey")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("serverchanNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-serverchan-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:8,vars:4,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","sendkey","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","sendkey","type","text","required","","nz-input","","formControlName","sendkey"],["sendkeyErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"sendkey"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,Ga,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.sendkeyControl.valid&&!i.syncStatus.sendkey?"warning":i.sendkeyControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:5em!important;width:5em!important}"],changeDetection:0}),n})();function Xa(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-serverchan-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.serverchanSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Ka=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.serverchanSettings=v(i,z.gq),this.notifierSettings=v(i,z._1),this.notificationSettings=v(i,z.X),this.messageTemplateSettings=v(i,z.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-serverchan-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","ServerChan \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","serverchanNotification",3,"settings"],["name","ServerChan"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Xa,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,Q.g,lt,ja,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function tr(n,o){1&n&&(t.ynx(0),t._uU(1," server \u65e0\u6548 "),t.BQk())}function er(n,o){1&n&&t.YNc(0,tr,2,0,"ng-container",9),2&n&&t.Q6J("ngIf",o.$implicit.hasError("pattern"))}function nr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 pushkey\uff01 "),t.BQk())}function ir(n,o){1&n&&(t.ynx(0),t._uU(1," pushkey \u65e0\u6548 "),t.BQk())}function or(n,o){if(1&n&&(t.YNc(0,nr,2,0,"ng-container",9),t.YNc(1,ir,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ar=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({server:["",[r.kI.pattern(/^https?:\/\/.+/)]],pushkey:["",[r.kI.required,r.kI.pattern(/^PDU\d+T[a-zA-Z\d]{32}(,PDU\d+T[a-zA-Z\d]{32}){0,99}$/)]]})}get serverControl(){return this.settingsForm.get("server")}get pushkeyControl(){return this.settingsForm.get("pushkey")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushdeerNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushdeer-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:15,vars:7,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","server","nzNoColon","",1,"setting-label","align-required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","server","type","url","placeholder","\u9ed8\u8ba4\u4e3a\u5b98\u65b9\u670d\u52a1\u5668 https://api2.pushdeer.com","nz-input","","formControlName","server"],["serverErrorTip",""],["nzFor","pushkey","nzNoColon","","nzRequired","",1,"setting-label"],["id","pushkey","type","text","placeholder","\u591a\u4e2a key \u7528 , \u9694\u5f00\uff0c\u5728\u7ebf\u7248\u6700\u591a 10 \u4e2a\uff0c\u81ea\u67b6\u7248\u9ed8\u8ba4\u6700\u591a 100 \u4e2a\u3002","required","","nz-input","","formControlName","pushkey"],["pushkeyErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"server"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,er,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"pushkey"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,or,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.serverControl.valid&&!i.syncStatus.server?"warning":i.serverControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.pushkeyControl.valid&&!i.syncStatus.pushkey?"warning":i.pushkeyControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,b.Zp,r.Fj,r.JJ,r.u,p.O5,r.Q7],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:5em!important;width:5em!important}"],changeDetection:0}),n})();function rr(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-pushdeer-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushdeerSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let sr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushdeerSettings=v(i,z.jK),this.notifierSettings=v(i,z._1),this.notificationSettings=v(i,z.X),this.messageTemplateSettings=v(i,z.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushdeer-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","PushDeer \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","pushdeerNotification",3,"settings"],["name","PushDeer"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,rr,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,Q.g,lt,ar,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function lr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function cr(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function gr(n,o){if(1&n&&(t.YNc(0,lr,2,0,"ng-container",9),t.YNc(1,cr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ur=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({token:["",[r.kI.required,r.kI.pattern(/^[a-z\d]{32}$/)]],topic:[""]})}get tokenControl(){return this.settingsForm.get("token")}get topicControl(){return this.settingsForm.get("topic")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushplusNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushplus-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:13,vars:6,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","token","nzNoColon","","nzRequired","",1,"setting-label","required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","token","type","text","required","","nz-input","","formControlName","token"],["tokenErrorTip",""],["nzFor","topic","nzNoColon","",1,"setting-label","align-required"],[1,"setting-control","input",3,"nzWarningTip","nzValidateStatus"],["id","topic","type","text","nz-input","","formControlName","topic"],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"token"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,gr,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"topic"),t.qZA(),t.TgZ(11,"nz-form-control",7),t._UZ(12,"input",8),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.tokenControl.valid&&!i.syncStatus.token?"warning":i.tokenControl),t.xp6(7),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.topicControl.valid&&!i.syncStatus.topic?"warning":i.topicControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:4em!important;width:4em!important}"],changeDetection:0}),n})();function mr(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-pushplus-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushplusSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let pr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushplusSettings=v(i,z.q1),this.notifierSettings=v(i,z._1),this.notificationSettings=v(i,z.X),this.messageTemplateSettings=v(i,z.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-pushplus-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","pushplus \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","pushplusNotification",3,"settings"],["name","pushplus"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,mr,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,Q.g,lt,ur,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();function dr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function hr(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function _r(n,o){if(1&n&&(t.YNc(0,dr,2,0,"ng-container",9),t.YNc(1,hr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function fr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 chatid\uff01 "),t.BQk())}function Cr(n,o){1&n&&(t.ynx(0),t._uU(1," chatid \u65e0\u6548 "),t.BQk())}function vr(n,o){if(1&n&&(t.YNc(0,fr,2,0,"ng-container",9),t.YNc(1,Cr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let zr=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({token:["",[r.kI.required,r.kI.pattern(/^[0-9]{8,10}:[a-zA-Z0-9_-]{35}$/)]],chatid:["",[r.kI.required,r.kI.pattern(/^(-|[0-9]){0,}$/)]]})}get tokenControl(){return this.settingsForm.get("token")}get chatidControl(){return this.settingsForm.get("chatid")}ngOnChanges(){this.syncStatus=M(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("telegramNotification",this.settings,this.settingsForm.valueChanges.pipe((0,j.Sc)(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),T(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(P))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-telegram-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:15,vars:7,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","token","nzNoColon","","nzRequired","",1,"setting-label","required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","token","type","text","required","","nz-input","","formControlName","token"],["tokenErrorTip",""],["nzFor","chatid","nzNoColon","","nzRequired","",1,"setting-label"],["id","chatid","type","text","required","","nz-input","","formControlName","chatid"],["chatidErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"token"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,_r,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"chatid"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,vr,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.tokenControl.valid&&!i.syncStatus.token?"warning":i.tokenControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.chatidControl.valid&&!i.syncStatus.chatid?"warning":i.chatidControl)}},directives:[r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:4em!important;width:4em!important}"],changeDetection:0}),n})();function xr(n,o){if(1&n&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-telegram-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.telegramSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Or=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.telegramSettings=v(i,z.wA),this.notifierSettings=v(i,z._1),this.notificationSettings=v(i,z.X),this.messageTemplateSettings=v(i,z.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-telegram-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","telegram \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","telegramNotification",3,"settings"],["name","telegram"],[3,"settings"],["name","\u4e8b\u4ef6"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,xr,8,4,"ng-template",1),t.qZA())},directives:[X.q,K.Y,Q.g,lt,zr,ct,tt],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),n})();var de=c(4219);function br(n,o){1&n&&t._UZ(0,"nz-list-empty")}function Mr(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-list-item",9),t.TgZ(1,"span",10),t._uU(2),t.qZA(),t.TgZ(3,"button",11),t._UZ(4,"i",12),t.qZA(),t.TgZ(5,"nz-dropdown-menu",null,13),t.TgZ(7,"ul",14),t.TgZ(8,"li",15),t.NdJ("click",function(){const s=t.CHM(e).index;return t.oxw().edit.emit(s)}),t._uU(9,"\u4fee\u6539"),t.qZA(),t.TgZ(10,"li",15),t.NdJ("click",function(){const s=t.CHM(e).index;return t.oxw().remove.emit(s)}),t._uU(11,"\u5220\u9664"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=o.$implicit,i=t.MAs(6);t.xp6(2),t.Oqu(e.url),t.xp6(1),t.Q6J("nzDropdownMenu",i)}}let Tr=(()=>{class n{constructor(){this.header="",this.addable=!0,this.clearable=!0,this.add=new t.vpe,this.edit=new t.vpe,this.remove=new t.vpe,this.clear=new t.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-list"]],inputs:{data:"data",header:"header",addable:"addable",clearable:"clearable"},outputs:{add:"add",edit:"edit",remove:"remove",clear:"clear"},decls:11,vars:5,consts:[["nzBordered","",1,"list"],[1,"list-header"],[1,"list-actions"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6e05\u7a7a",1,"clear-button",3,"disabled","click"],["nz-icon","","nzType","clear"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0",1,"add-button",3,"disabled","click"],["nz-icon","","nzType","plus"],[4,"ngIf"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"item-content"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-action-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-list",0),t.TgZ(1,"nz-list-header",1),t.TgZ(2,"h3"),t._uU(3),t.qZA(),t.TgZ(4,"div",2),t.TgZ(5,"button",3),t.NdJ("click",function(){return i.clear.emit()}),t._UZ(6,"i",4),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.add.emit()}),t._UZ(8,"i",6),t.qZA(),t.qZA(),t.qZA(),t.YNc(9,br,1,0,"nz-list-empty",7),t.YNc(10,Mr,12,2,"nz-list-item",8),t.qZA()),2&e&&(t.xp6(3),t.Oqu(i.header),t.xp6(2),t.Q6J("disabled",i.data.length<=0||!i.clearable),t.xp6(2),t.Q6J("disabled",!i.addable),t.xp6(2),t.Q6J("ngIf",i.data.length<=0),t.xp6(1),t.Q6J("ngForOf",i.data))},directives:[Ot,vt,I.ix,B.w,dt.SY,H.Ls,p.O5,Ct,p.sg,Bt,ut.wA,ut.cm,ut.RR,de.wO,de.r9],styles:[".list[_ngcontent-%COMP%]{background-color:#fff}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .list-actions[_ngcontent-%COMP%]{margin-left:auto;position:relative;left:1em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .more-action-button[_ngcontent-%COMP%]{margin-left:auto;flex:0 0 auto;position:relative;left:1em}"],changeDetection:0}),n})();function Pr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function wr(n,o){1&n&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function Fr(n,o){if(1&n&&(t.YNc(0,Pr,2,0,"ng-container",27),t.YNc(1,wr,2,0,"ng-container",27)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Sr(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item",3),t.TgZ(3,"nz-form-label",4),t._uU(4,"URL"),t.qZA(),t.TgZ(5,"nz-form-control",5),t._UZ(6,"input",6),t.YNc(7,Fr,2,2,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"h2"),t._uU(11,"\u4e8b\u4ef6"),t.qZA(),t.TgZ(12,"nz-form-item",3),t.TgZ(13,"nz-form-control",9),t.TgZ(14,"label",10),t.NdJ("nzCheckedChange",function(a){return t.CHM(e),t.oxw().setAllChecked(a)}),t._uU(15,"\u5168\u9009"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",3),t.TgZ(17,"nz-form-control",11),t.TgZ(18,"label",12),t._uU(19,"\u5f00\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",3),t.TgZ(21,"nz-form-control",11),t.TgZ(22,"label",13),t._uU(23,"\u4e0b\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"nz-form-item",3),t.TgZ(25,"nz-form-control",11),t.TgZ(26,"label",14),t._uU(27,"\u76f4\u64ad\u95f4\u4fe1\u606f\u6539\u53d8"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"nz-form-item",3),t.TgZ(29,"nz-form-control",11),t.TgZ(30,"label",15),t._uU(31,"\u5f55\u5236\u5f00\u59cb"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-form-item",3),t.TgZ(33,"nz-form-control",11),t.TgZ(34,"label",16),t._uU(35,"\u5f55\u5236\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(36,"nz-form-item",3),t.TgZ(37,"nz-form-control",11),t.TgZ(38,"label",17),t._uU(39,"\u5f55\u5236\u53d6\u6d88"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",3),t.TgZ(41,"nz-form-control",11),t.TgZ(42,"label",18),t._uU(43,"\u89c6\u9891\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"nz-form-item",3),t.TgZ(45,"nz-form-control",11),t.TgZ(46,"label",19),t._uU(47,"\u89c6\u9891\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(48,"nz-form-item",3),t.TgZ(49,"nz-form-control",11),t.TgZ(50,"label",20),t._uU(51,"\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(52,"nz-form-item",3),t.TgZ(53,"nz-form-control",11),t.TgZ(54,"label",21),t._uU(55,"\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(56,"nz-form-item",3),t.TgZ(57,"nz-form-control",11),t.TgZ(58,"label",22),t._uU(59,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(60,"nz-form-item",3),t.TgZ(61,"nz-form-control",11),t.TgZ(62,"label",23),t._uU(63,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"nz-form-item",3),t.TgZ(65,"nz-form-control",11),t.TgZ(66,"label",24),t._uU(67,"\u89c6\u9891\u540e\u5904\u7406\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(68,"nz-form-item",3),t.TgZ(69,"nz-form-control",11),t.TgZ(70,"label",25),t._uU(71,"\u786c\u76d8\u7a7a\u95f4\u4e0d\u8db3"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(72,"nz-form-item",3),t.TgZ(73,"nz-form-control",11),t.TgZ(74,"label",26),t._uU(75,"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",e),t.xp6(9),t.Q6J("nzChecked",i.allChecked)("nzIndeterminate",i.indeterminate)}}const Ar={url:"",liveBegan:!0,liveEnded:!0,roomChange:!0,recordingStarted:!0,recordingFinished:!0,recordingCancelled:!0,videoFileCreated:!0,videoFileCompleted:!0,danmakuFileCreated:!0,danmakuFileCompleted:!0,rawDanmakuFileCreated:!0,rawDanmakuFileCompleted:!0,videoPostprocessingCompleted:!0,spaceNoEnough:!0,errorOccurred:!0};let yr=(()=>{class n{constructor(e,i){this.changeDetector=i,this.title="\u6807\u9898",this.okButtonText="\u786e\u5b9a",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.allChecked=!1,this.indeterminate=!0,this.settingsForm=e.group({url:["",[r.kI.required,r.kI.pattern(/^https?:\/\/.*$/)]],liveBegan:[""],liveEnded:[""],roomChange:[""],recordingStarted:[""],recordingFinished:[""],recordingCancelled:[""],videoFileCreated:[""],videoFileCompleted:[""],danmakuFileCreated:[""],danmakuFileCompleted:[""],rawDanmakuFileCreated:[""],rawDanmakuFileCompleted:[""],videoPostprocessingCompleted:[""],spaceNoEnough:[""],errorOccurred:[""]}),this.checkboxControls=Object.entries(this.settingsForm.controls).filter(([a])=>"url"!==a).map(([,a])=>a),this.checkboxControls.forEach(a=>a.valueChanges.subscribe(()=>this.updateAllChecked()))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.settingsForm.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){void 0===this.settings&&(this.settings=Object.assign({},Ar)),this.settingsForm.setValue(this.settings),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}setAllChecked(e){this.indeterminate=!1,this.allChecked=e,this.checkboxControls.forEach(i=>i.setValue(e))}updateAllChecked(){const e=this.checkboxControls.map(i=>i.value);this.allChecked=e.every(i=>i),this.indeterminate=!this.allChecked&&e.some(i=>i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-edit-dialog"]],inputs:{settings:"settings",title:"title",okButtonText:"okButtonText",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:4,consts:[["nzCentered","",3,"nzTitle","nzOkText","nzVisible","nzOkDisabled","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","url","nzNoColon","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip"],["id","url","type","url","required","","nz-input","","formControlName","url"],["urlErrorTip",""],[1,"form-group"],[1,"setting-control","checkbox","check-all"],["nz-checkbox","",3,"nzChecked","nzIndeterminate","nzCheckedChange"],[1,"setting-control","checkbox"],["nz-checkbox","","formControlName","liveBegan"],["nz-checkbox","","formControlName","liveEnded"],["nz-checkbox","","formControlName","roomChange"],["nz-checkbox","","formControlName","recordingStarted"],["nz-checkbox","","formControlName","recordingFinished"],["nz-checkbox","","formControlName","recordingCancelled"],["nz-checkbox","","formControlName","videoFileCreated"],["nz-checkbox","","formControlName","videoFileCompleted"],["nz-checkbox","","formControlName","danmakuFileCreated"],["nz-checkbox","","formControlName","danmakuFileCompleted"],["nz-checkbox","","formControlName","rawDanmakuFileCreated"],["nz-checkbox","","formControlName","rawDanmakuFileCompleted"],["nz-checkbox","","formControlName","videoPostprocessingCompleted"],["nz-checkbox","","formControlName","spaceNoEnough"],["nz-checkbox","","formControlName","errorOccurred"],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Sr,76,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzTitle",i.title)("nzOkText",i.okButtonText)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,b.Zp,r.Fj,r.Q7,r.JJ,r.u,p.O5,Ft.Ie],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-item[_ngcontent-%COMP%]{padding:1em 0;border:none}.setting-item[_ngcontent-%COMP%]:first-child{padding-top:0}.setting-item[_ngcontent-%COMP%]:first-child .setting-control[_ngcontent-%COMP%]{flex:1 1 auto;max-width:100%!important}.setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%] .check-all[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.06)}"],changeDetection:0}),n})();function Zr(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-page-section"),t.TgZ(1,"app-webhook-list",3),t.NdJ("add",function(){return t.CHM(e),t.oxw().addWebhook()})("edit",function(a){return t.CHM(e),t.oxw().editWebhook(a)})("remove",function(a){return t.CHM(e),t.oxw().removeWebhook(a)})("clear",function(){return t.CHM(e),t.oxw().clearWebhook()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("data",e.webhooks)("addable",e.canAdd)}}const kr=[{path:"email-notification",component:Ra,resolve:{settings:Lt}},{path:"serverchan-notification",component:Ka,resolve:{settings:Yt}},{path:"pushdeer-notification",component:sr,resolve:{settings:Wt}},{path:"pushplus-notification",component:pr,resolve:{settings:Rt}},{path:"telegram-notification",component:Or,resolve:{settings:Ht}},{path:"webhooks",component:(()=>{class n{constructor(e,i,a,s,g){this.changeDetector=e,this.route=i,this.message=a,this.modal=s,this.settingService=g,this.dialogTitle="",this.dialogOkButtonText="",this.dialogVisible=!1,this.editingIndex=-1}get canAdd(){return this.webhooks.length{this.webhooks=e.settings,this.changeDetector.markForCheck()})}addWebhook(){this.editingIndex=-1,this.editingSettings=void 0,this.dialogTitle="\u6dfb\u52a0 webhook",this.dialogOkButtonText="\u6dfb\u52a0",this.dialogVisible=!0}removeWebhook(e){const i=this.webhooks.filter((a,s)=>s!==e);this.changeSettings(i).subscribe(()=>this.reset())}editWebhook(e){this.editingIndex=e,this.editingSettings=Object.assign({},this.webhooks[e]),this.dialogTitle="\u4fee\u6539 webhook",this.dialogOkButtonText="\u4fdd\u5b58",this.dialogVisible=!0}clearWebhook(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u6e05\u7a7a Webhook \uff1f",nzOnOk:()=>new Promise((e,i)=>{this.changeSettings([]).subscribe(e,i)})})}onDialogCanceled(){this.reset()}onDialogConfirmed(e){let i;-1===this.editingIndex?i=[...this.webhooks,e]:(i=[...this.webhooks],i[this.editingIndex]=e),this.changeSettings(i).subscribe(()=>this.reset())}reset(){this.editingIndex=-1,delete this.editingSettings}changeSettings(e){return this.settingService.changeSettings({webhooks:e}).pipe((0,y.X)(3,300),(0,mt.b)(i=>{this.webhooks=i.webhooks,this.changeDetector.markForCheck()},i=>{this.message.error(`Webhook \u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}}return n.MAX_WEBHOOKS=50,n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(C.gz),t.Y36(Mt.dD),t.Y36(_.Sf),t.Y36(Z.R))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-webhook-manager"]],decls:3,vars:4,consts:[["pageTitle","Webhooks"],["appSubPageContent",""],[3,"title","okButtonText","settings","visible","visibleChange","cancel","confirm"],["header","Webhook \u5217\u8868",3,"data","addable","add","edit","remove","clear"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Zr,2,2,"ng-template",1),t.qZA(),t.TgZ(2,"app-webhook-edit-dialog",2),t.NdJ("visibleChange",function(s){return i.dialogVisible=s})("cancel",function(){return i.onDialogCanceled()})("confirm",function(s){return i.onDialogConfirmed(s)}),t.qZA()),2&e&&(t.xp6(2),t.Q6J("title",i.dialogTitle)("okButtonText",i.dialogOkButtonText)("settings",i.editingSettings)("visible",i.dialogVisible))},directives:[X.q,K.Y,Q.g,Tr,yr],styles:[""],changeDetection:0}),n})(),resolve:{settings:$t}},{path:"",component:jo,resolve:{settings:Qt}}];let Dr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[C.Bz.forChild(kr)],C.Bz]}),n})();function Er(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u8bed\u6cd5\u3001\u53d8\u91cf\u53c2\u8003 "),t.TgZ(2,"a",16),t._uU(3,"wiki"),t.qZA(),t.qZA(),t.TgZ(4,"p"),t._uU(5,"\u7a7a\u503c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u6d88\u606f\u6a21\u677f"),t.qZA())}function Nr(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Er,6,0,"ng-template",null,3,t.W1O),t.TgZ(3,"form",4),t.TgZ(4,"nz-form-item",5),t.TgZ(5,"nz-form-label",6),t._uU(6," \u6d88\u606f\u6807\u9898 "),t.qZA(),t.TgZ(7,"nz-form-control",7),t._UZ(8,"input",8),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",9),t.TgZ(10,"nz-form-label",10),t._uU(11," \u6d88\u606f\u7c7b\u578b "),t.qZA(),t.TgZ(12,"nz-form-control",11),t._UZ(13,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",13),t.TgZ(15,"nz-form-label",6),t._uU(16," \u6d88\u606f\u5185\u5bb9 "),t.qZA(),t.TgZ(17,"nz-form-control",14),t._UZ(18,"textarea",15),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(2),i=t.oxw();t.xp6(3),t.Q6J("nzLayout","vertical")("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(8),t.Q6J("nzOptions",i.MESSAGE_TYPE_OPTIONS),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(3),t.Q6J("rows",10)}}function Br(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(1,"\u53d6\u6d88"),t.qZA(),t.TgZ(2,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(3," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("disabled",e.settingsForm.invalid)}}let qr=(()=>{class n{constructor(e,i){this.changeDetector=i,this.messageTypes=[],this.title="\u4fee\u6539\u6d88\u606f\u6a21\u677f",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.MESSAGE_TYPE_OPTIONS=[],this.settingsForm=e.group({messageType:[""],messageTitle:[""],messageContent:[""]})}get messageTypeControl(){return this.settingsForm.get("messageType")}get messageTitleControl(){return this.settingsForm.get("messageTitle")}get messageContentControl(){return this.settingsForm.get("messageContent")}ngOnInit(){this.MESSAGE_TYPE_OPTIONS=Array.from(new Set(this.messageTypes)).map(e=>({label:e,value:e}))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.settingsForm.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-edit-dialog"]],inputs:{value:"value",messageTypes:"messageTypes",title:"title",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:4,vars:3,consts:[["nzCentered","",3,"nzTitle","nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["modalFooter",""],["messageTemplateTip",""],["nz-form","",3,"nzLayout","formGroup"],[1,"setting-item","input"],["nzFor","messageTitle","nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","input"],["type","text","nz-input","","formControlName","messageTitle"],[1,"setting-item","switch"],["nzFor","messageType","nzNoColon","",1,"setting-label"],[1,"setting-control","select"],["formControlName","messageType",3,"nzOptions"],[1,"setting-item","textarea"],[1,"setting-control","textarea"],["nz-input","","wrap","off","formControlName","messageContent",3,"rows"],["href","https://github.com/acgnhiki/blrec/wiki/MessageTemplate","_blank",""],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Nr,19,6,"ng-container",1),t.YNc(2,Br,4,1,"ng-template",null,2,t.W1O),t.qZA()),2&e&&t.Q6J("nzTitle",i.title)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[_.du,_.Hf,r._Y,r.JL,l.Lr,r.sg,m.SK,l.Nx,m.t3,l.iK,l.Fd,b.Zp,r.Fj,r.JJ,r.u,it.Vq,I.ix,rt.dQ,B.w],styles:["textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}"],changeDetection:0}),n})(),Ur=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Qt,Lt,Yt,Wt,Rt,Ht,$t],imports:[[p.ez,Dr,r.u5,r.UX,pt.j,_e.KJ,fe.vh,l.U5,b.o7,D.m,Ft.Wr,U.aF,xe,it.LV,_.Qp,I.sL,H.PV,wn,ut.b1,dt.cg,Fn.S,V.HQ,Nn,Bn.m]]}),n})();t.B6R(tt,[qr],[])}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/91.9ff409a090dace5c.js b/src/blrec/data/webapp/91.9ff409a090dace5c.js deleted file mode 100644 index 5b062bd..0000000 --- a/src/blrec/data/webapp/91.9ff409a090dace5c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[91],{8737:(X,x,s)=>{"use strict";s.d(x,{yT:()=>n,yE:()=>o,QL:()=>h,gZ:()=>e,_m:()=>y,ip:()=>b,Dr:()=>D,rc:()=>F,J_:()=>R,tp:()=>S,kV:()=>O,O6:()=>m,D4:()=>E,$w:()=>T,Rc:()=>P});var t=s(8760);const n="\u8bbe\u7f6e\u540c\u6b65\u5931\u8d25\uff01",o=/^https?:\/\/.*$/,h="https://api.bilibili.com",e="https://api.live.bilibili.com",y=/^(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?(?:\/(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?)*$/,b="{roomid} - {uname}/blive_{roomid}_{year}-{month}-{day}-{hour}{minute}{second}",D=[{name:"roomid",desc:"\u623f\u95f4\u53f7"},{name:"uname",desc:"\u4e3b\u64ad\u7528\u6237\u540d"},{name:"title",desc:"\u623f\u95f4\u6807\u9898"},{name:"area",desc:"\u76f4\u64ad\u5b50\u5206\u533a\u540d\u79f0"},{name:"parent_area",desc:"\u76f4\u64ad\u4e3b\u5206\u533a\u540d\u79f0"},{name:"year",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5e74\u4efd"},{name:"month",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u6708\u4efd"},{name:"day",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5929\u6570"},{name:"hour",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5c0f\u65f6"},{name:"minute",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5206\u949f"},{name:"second",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u79d2\u6570"}],F=[{label:"\u81ea\u52a8",value:t.zu.AUTO},{label:"\u8c28\u614e",value:t.zu.SAFE},{label:"\u4ece\u4e0d",value:t.zu.NEVER}],R=[{label:"\u9ed8\u8ba4",value:t._l.DEFAULT},{label:"\u53bb\u91cd",value:t._l.DEDUP}],S=[{label:"FLV",value:"flv"},{label:"HLS (fmp4)",value:"fmp4"}],O=[{label:"\u6807\u51c6",value:"standard"},{label:"\u539f\u59cb",value:"raw"}],m=[{label:"4K",value:2e4},{label:"\u539f\u753b",value:1e4},{label:"\u84dd\u5149(\u675c\u6bd4)",value:401},{label:"\u84dd\u5149",value:400},{label:"\u8d85\u6e05",value:250},{label:"\u9ad8\u6e05",value:150},{label:"\u6d41\u7545",value:80}],E=[{label:"3 \u79d2",value:3},{label:"5 \u79d2",value:5},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],T=[{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600},{label:"15 \u5206\u949f",value:900},{label:"20 \u5206\u949f",value:1200},{label:"30 \u5206\u949f",value:1800}],P=[{label:"4 KB",value:4096},{label:"8 KB",value:8192},{label:"16 KB",value:16384},{label:"32 KB",value:32768},{label:"64 KB",value:65536},{label:"128 KB",value:131072},{label:"256 KB",value:262144},{label:"512 KB",value:524288},{label:"1 MB",value:1048576},{label:"2 MB",value:2097152},{label:"4 MB",value:4194304},{label:"8 MB",value:8388608},{label:"16 MB",value:16777216},{label:"32 MB",value:33554432},{label:"64 MB",value:67108864},{label:"128 MB",value:134217728},{label:"256 MB",value:268435456},{label:"512 MB",value:536870912}]},9089:(X,x,s)=>{"use strict";s.d(x,{Sc:()=>E});var t=s(4843),n=s(2198),o=s(13),h=s(5778),e=s(4850),y=s(1854),b=s(7079),D=s(4177),F=s(214);const O=function S(M){return"string"==typeof M||!(0,D.Z)(M)&&(0,F.Z)(M)&&"[object String]"==(0,b.Z)(M)};var m=s(6422);function E(M){return(0,t.z)((0,n.h)(()=>M.valid),(0,o.b)(300),function T(){return(0,t.z)((0,e.U)(M=>O(M)?M.trim():(0,m.Z)(M,(N,z,v)=>{N[v]=O(z)?z.trim():z},{})))}(),(0,h.x)(y.Z))}},5136:(X,x,s)=>{"use strict";s.d(x,{R:()=>e});var t=s(2340),n=s(5e3),o=s(520);const h=t.N.apiUrl;let e=(()=>{class y{constructor(D){this.http=D}getSettings(D=null,F=null){return this.http.get(h+"/api/v1/settings",{params:{include:null!=D?D:[],exclude:null!=F?F:[]}})}changeSettings(D){return this.http.patch(h+"/api/v1/settings",D)}getTaskOptions(D){return this.http.get(h+`/api/v1/settings/tasks/${D}`)}changeTaskOptions(D,F){return this.http.patch(h+`/api/v1/settings/tasks/${D}`,F)}}return y.\u0275fac=function(D){return new(D||y)(n.LFG(o.eN))},y.\u0275prov=n.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})()},8760:(X,x,s)=>{"use strict";s.d(x,{_l:()=>t,zu:()=>n,gP:()=>o,gq:()=>h,jK:()=>e,q1:()=>y,wA:()=>b,_1:()=>D,X:()=>F,tI:()=>R});var t=(()=>{return(S=t||(t={})).DEFAULT="default",S.DEDUP="dedup",t;var S})(),n=(()=>{return(S=n||(n={})).AUTO="auto",S.SAFE="safe",S.NEVER="never",n;var S})();const o=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],h=["sendkey"],e=["server","pushkey"],y=["token","topic"],b=["token","chatid"],D=["enabled"],F=["notifyBegan","notifyEnded","notifyError","notifySpace"],R=["beganMessageType","beganMessageTitle","beganMessageContent","endedMessageType","endedMessageTitle","endedMessageContent","spaceMessageType","spaceMessageTitle","spaceMessageContent","errorMessageType","errorMessageTitle","errorMessageContent"]},4501:(X,x,s)=>{"use strict";s.d(x,{q:()=>O});var t=s(5e3),n=s(4182),o=s(2134),h=s(9089),e=s(4546),y=s(1894),b=s(1047),D=s(9808);function F(m,E){1&m&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6587\u4ef6\u5927\u5c0f "),t.BQk())}function R(m,E){1&m&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function S(m,E){if(1&m&&(t.YNc(0,F,2,0,"ng-container",4),t.YNc(1,R,2,0,"ng-container",4)),2&m){const T=E.$implicit;t.Q6J("ngIf",T.hasError("required")),t.xp6(1),t.Q6J("ngIf",T.hasError("pattern"))}}let O=(()=>{class m{constructor(T){this.value=0,this.onChange=()=>{},this.onTouched=()=>{},this.formGroup=T.group({duration:["",[n.kI.required,n.kI.pattern(/^\d{2}:[0~5]\d:[0~5]\d$/)]]})}get durationControl(){return this.formGroup.get("duration")}ngOnInit(){this.durationControl.valueChanges.pipe((0,h.Sc)(this.durationControl)).subscribe(T=>{this.onDisplayValueChange(T)})}writeValue(T){this.value=T,this.updateDisplayValue(T)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){T?this.durationControl.disable():this.durationControl.enable()}onDisplayValueChange(T){const P=(0,o.RA)(T);"number"==typeof P&&this.value!==P&&(this.value=P,this.onChange(P))}updateDisplayValue(T){const P=(0,o.LU)(T);this.durationControl.setValue(P)}}return m.\u0275fac=function(T){return new(T||m)(t.Y36(n.qu))},m.\u0275cmp=t.Xpm({type:m,selectors:[["app-input-duration"]],features:[t._Bn([{provide:n.JU,useExisting:(0,t.Gpc)(()=>m),multi:!0}])],decls:6,vars:2,consts:[["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["nz-input","","type","text","formControlName","duration"],["errorTip",""],[4,"ngIf"]],template:function(T,P){if(1&T&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item"),t.TgZ(2,"nz-form-control",1),t._UZ(3,"input",2),t.YNc(4,S,2,2,"ng-template",null,3,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&T){const M=t.MAs(5);t.Q6J("formGroup",P.formGroup),t.xp6(2),t.Q6J("nzErrorTip",M)}},directives:[n._Y,n.JL,e.Lr,n.sg,y.SK,e.Nx,y.t3,e.Fd,b.Zp,n.Fj,n.JJ,n.u,D.O5],styles:["nz-form-item[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),m})()},6457:(X,x,s)=>{"use strict";s.d(x,{i:()=>O});var t=s(5e3),n=s(4182),o=s(2134),h=s(9089),e=s(4546),y=s(1894),b=s(1047),D=s(9808);function F(m,E){1&m&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6587\u4ef6\u5927\u5c0f "),t.BQk())}function R(m,E){1&m&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function S(m,E){if(1&m&&(t.YNc(0,F,2,0,"ng-container",4),t.YNc(1,R,2,0,"ng-container",4)),2&m){const T=E.$implicit;t.Q6J("ngIf",T.hasError("required")),t.xp6(1),t.Q6J("ngIf",T.hasError("pattern"))}}let O=(()=>{class m{constructor(T){this.value=0,this.onChange=()=>{},this.onTouched=()=>{},this.formGroup=T.group({filesize:["",[n.kI.required,n.kI.pattern(/^\d{1,3}(?:\.\d{1,2})?\s?[GMK]?B$/)]]})}get filesizeControl(){return this.formGroup.get("filesize")}ngOnInit(){this.filesizeControl.valueChanges.pipe((0,h.Sc)(this.filesizeControl)).subscribe(T=>{this.onDisplayValueChange(T)})}writeValue(T){this.value=T,this.updateDisplayValue(T)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){T?this.filesizeControl.disable():this.filesizeControl.enable()}onDisplayValueChange(T){const P=(0,o.Jt)(T);"number"==typeof P&&this.value!==P&&(this.value=P,this.onChange(P))}updateDisplayValue(T){const P=(0,o.D9)(T);this.filesizeControl.setValue(P)}}return m.\u0275fac=function(T){return new(T||m)(t.Y36(n.qu))},m.\u0275cmp=t.Xpm({type:m,selectors:[["app-input-filesize"]],features:[t._Bn([{provide:n.JU,useExisting:(0,t.Gpc)(()=>m),multi:!0}])],decls:6,vars:2,consts:[["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["nz-input","","type","text","formControlName","filesize"],["errorTip",""],[4,"ngIf"]],template:function(T,P){if(1&T&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item"),t.TgZ(2,"nz-form-control",1),t._UZ(3,"input",2),t.YNc(4,S,2,2,"ng-template",null,3,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&T){const M=t.MAs(5);t.Q6J("formGroup",P.formGroup),t.xp6(2),t.Q6J("nzErrorTip",M)}},directives:[n._Y,n.JL,e.Lr,n.sg,y.SK,e.Nx,y.t3,e.Fd,b.Zp,n.Fj,n.JJ,n.u,D.O5],styles:["nz-form-item[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),m})()},7512:(X,x,s)=>{"use strict";s.d(x,{q:()=>F});var t=s(5545),n=s(5e3),o=s(9808),h=s(7525),e=s(1945);function y(R,S){if(1&R&&n._UZ(0,"nz-spin",2),2&R){const O=n.oxw();n.Q6J("nzSize","large")("nzSpinning",O.loading)}}function b(R,S){if(1&R&&(n.TgZ(0,"div",6),n.GkF(1,7),n.qZA()),2&R){const O=n.oxw(2);n.Q6J("ngStyle",O.contentStyles),n.xp6(1),n.Q6J("ngTemplateOutlet",O.content.templateRef)}}function D(R,S){if(1&R&&(n.TgZ(0,"div",3),n._UZ(1,"nz-page-header",4),n.YNc(2,b,2,2,"div",5),n.qZA()),2&R){const O=n.oxw();n.Q6J("ngStyle",O.pageStyles),n.xp6(1),n.Q6J("nzTitle",O.pageTitle)("nzGhost",!1),n.xp6(1),n.Q6J("ngIf",O.content)}}let F=(()=>{class R{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return R.\u0275fac=function(O){return new(O||R)},R.\u0275cmp=n.Xpm({type:R,selectors:[["app-sub-page"]],contentQueries:function(O,m,E){if(1&O&&n.Suo(E,t.Y,5),2&O){let T;n.iGM(T=n.CRH())&&(m.content=T.first)}},inputs:{pageTitle:"pageTitle",loading:"loading",pageStyles:"pageStyles",contentStyles:"contentStyles"},decls:3,vars:2,consts:[["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"spinner",3,"nzSize","nzSpinning"],[1,"sub-page",3,"ngStyle"],["nzBackIcon","",1,"page-header",3,"nzTitle","nzGhost"],["class","page-content",3,"ngStyle",4,"ngIf"],[1,"page-content",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(O,m){if(1&O&&(n.YNc(0,y,1,2,"nz-spin",0),n.YNc(1,D,3,4,"ng-template",null,1,n.W1O)),2&O){const E=n.MAs(2);n.Q6J("ngIf",m.loading)("ngIfElse",E)}},directives:[o.O5,h.W,o.PC,e.$O,o.tP],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.sub-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{padding-top:0}.sub-page[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-top:3px;margin-bottom:1em}.sub-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}"],changeDetection:0}),R})()},5545:(X,x,s)=>{"use strict";s.d(x,{Y:()=>n});var t=s(5e3);let n=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.Rgc))},o.\u0275dir=t.lG2({type:o,selectors:[["","appSubPageContent",""]]}),o})()},2134:(X,x,s)=>{"use strict";s.d(x,{e5:()=>y,AX:()=>b,N4:()=>D,LU:()=>F,RA:()=>R,D9:()=>S,Jt:()=>O});var t=s(6422),n=s(1854),o=s(1999),h=s(855);function y(m,E){return function T(P,M){return(0,t.Z)(P,(N,z,v)=>{const C=Reflect.get(M,v);(0,n.Z)(z,C)||Reflect.set(N,v,(0,o.Z)(z)&&(0,o.Z)(C)?T(z,C):z)})}(m,E)}function b(m,E=" ",T=3){let P,M;if(m<=0)return"0"+E+"kbps";if(m<1e6)P=m/1e3,M="kbps";else if(m<1e9)P=m/1e6,M="Mbps";else if(m<1e12)P=m/1e9,M="Gbps";else{if(!(m<1e15))throw RangeError(`the rate argument ${m} out of range`);P=m/1e12,M="Tbps"}const N=T-Math.floor(Math.abs(Math.log10(P)))-1;return P.toFixed(N<0?0:N)+E+M}function D(m,E=" ",T=3){let P,M;if(m<=0)return"0"+E+"B/s";if(m<1e3)P=m,M="B/s";else if(m<1e6)P=m/1e3,M="KB/s";else if(m<1e9)P=m/1e6,M="MB/s";else if(m<1e12)P=m/1e9,M="GB/s";else{if(!(m<1e15))throw RangeError(`the rate argument ${m} out of range`);P=m/1e12,M="TB/s"}const N=T-Math.floor(Math.abs(Math.log10(P)))-1;return P.toFixed(N<0?0:N)+E+M}function F(m,E=!1){m>0||(m=0);const T=Math.floor(m/3600),P=Math.floor(m/60%60),M=Math.floor(m%60);let N="";return E?T>0&&(N+=T+":"):(N+=T<10?"0"+T:T,N+=":"),N+=P<10?"0"+P:P,N+=":",N+=M<10?"0"+M:M,N}function R(m){try{const[E,T,P,M]=/(\d{1,2}):(\d{2}):(\d{2})/.exec(m);return 3600*parseInt(T)+60*parseInt(P)+parseInt(M)}catch(E){return console.error(`Failed to parse duration: ${m}`,E),null}}function S(m){return h(m)}function O(m){try{const[E,T,P]=/^(\d+(?:\.\d+)?)\s*([TGMK]?B)$/.exec(m);switch(P){case"B":return parseFloat(T);case"KB":return 1024*parseFloat(T);case"MB":return 1048576*parseFloat(T);case"GB":return 1024**3*parseFloat(T);case"TB":return 1024**4*parseFloat(T);default:return console.warn(`Unexpected unit: ${P}`,m),null}}catch(E){return console.error(`Failed to parse filesize: ${m}`,E),null}}},855:function(X){X.exports=function(){"use strict";var x=/^(b|B)$/,s={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},t={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},n={floor:Math.floor,ceil:Math.ceil};function o(h){var e,y,b,D,F,R,S,O,m,E,T,P,M,N,z,v,C,g,L,J,Z,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},I=[],U=0;if(isNaN(h))throw new TypeError("Invalid number");if(b=!0===Q.bits,z=!0===Q.unix,P=!0===Q.pad,M=void 0!==Q.round?Q.round:z?1:2,S=void 0!==Q.locale?Q.locale:"",O=Q.localeOptions||{},v=void 0!==Q.separator?Q.separator:"",C=void 0!==Q.spacer?Q.spacer:z?"":" ",L=Q.symbols||{},g=2===(y=Q.base||2)&&Q.standard||"jedec",T=Q.output||"string",F=!0===Q.fullform,R=Q.fullforms instanceof Array?Q.fullforms:[],e=void 0!==Q.exponent?Q.exponent:-1,J=n[Q.roundingMethod]||Math.round,m=(E=Number(h))<0,D=y>2?1e3:1024,Z=!1===isNaN(Q.precision)?parseInt(Q.precision,10):0,m&&(E=-E),(-1===e||isNaN(e))&&(e=Math.floor(Math.log(E)/Math.log(D)))<0&&(e=0),e>8&&(Z>0&&(Z+=8-e),e=8),"exponent"===T)return e;if(0===E)I[0]=0,N=I[1]=z?"":s[g][b?"bits":"bytes"][e];else{U=E/(2===y?Math.pow(2,10*e):Math.pow(1e3,e)),b&&(U*=8)>=D&&e<8&&(U/=D,e++);var ae=Math.pow(10,e>0?M:0);I[0]=J(U*ae)/ae,I[0]===D&&e<8&&void 0===Q.exponent&&(I[0]=1,e++),N=I[1]=10===y&&1===e?b?"kb":"kB":s[g][b?"bits":"bytes"][e],z&&(I[1]="jedec"===g?I[1].charAt(0):e>0?I[1].replace(/B$/,""):I[1],x.test(I[1])&&(I[0]=Math.floor(I[0]),I[1]=""))}if(m&&(I[0]=-I[0]),Z>0&&(I[0]=I[0].toPrecision(Z)),I[1]=L[I[1]]||I[1],!0===S?I[0]=I[0].toLocaleString():S.length>0?I[0]=I[0].toLocaleString(S,O):v.length>0&&(I[0]=I[0].toString().replace(".",v)),P&&!1===Number.isInteger(I[0])&&M>0){var pe=v||".",me=I[0].toString().split(pe),be=me[1]||"",Ee=be.length,Te=M-Ee;I[0]="".concat(me[0]).concat(pe).concat(be.padEnd(Ee+Te,"0"))}return F&&(I[1]=R[e]?R[e]:t[g][e]+(b?"bit":"byte")+(1===I[0]?"":"s")),"array"===T?I:"object"===T?{value:I[0],symbol:I[1],exponent:e,unit:N}:I.join(C)}return o.partial=function(h){return function(e){return o(e,h)}},o}()},2622:(X,x,s)=>{"use strict";s.d(x,{Z:()=>M});var o=s(3093);const e=function h(N,z){for(var v=N.length;v--;)if((0,o.Z)(N[v][0],z))return v;return-1};var b=Array.prototype.splice;function P(N){var z=-1,v=null==N?0:N.length;for(this.clear();++z-1},P.prototype.set=function E(N,z){var v=this.__data__,C=e(v,N);return C<0?(++this.size,v.push([N,z])):v[C][1]=z,this};const M=P},9329:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(3858),n=s(5946);const h=(0,t.Z)(n.Z,"Map")},3639:(X,x,s)=>{"use strict";s.d(x,{Z:()=>_e});const o=(0,s(3858).Z)(Object,"create");var R=Object.prototype.hasOwnProperty;var E=Object.prototype.hasOwnProperty;function v(te){var re=-1,B=null==te?0:te.length;for(this.clear();++re{"use strict";s.d(x,{Z:()=>P});var t=s(2622);var R=s(9329),S=s(3639);function T(M){var N=this.__data__=new t.Z(M);this.size=N.size}T.prototype.clear=function n(){this.__data__=new t.Z,this.size=0},T.prototype.delete=function h(M){var N=this.__data__,z=N.delete(M);return this.size=N.size,z},T.prototype.get=function y(M){return this.__data__.get(M)},T.prototype.has=function D(M){return this.__data__.has(M)},T.prototype.set=function m(M,N){var z=this.__data__;if(z instanceof t.Z){var v=z.__data__;if(!R.Z||v.length<199)return v.push([M,N]),this.size=++z.size,this;z=this.__data__=new S.Z(v)}return z.set(M,N),this.size=z.size,this};const P=T},8492:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=s(5946).Z.Symbol},1630:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=s(5946).Z.Uint8Array},7585:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){for(var e=-1,y=null==o?0:o.length;++e{"use strict";s.d(x,{Z:()=>S});var o=s(4825),h=s(4177),e=s(5202),y=s(6667),b=s(7583),F=Object.prototype.hasOwnProperty;const S=function R(O,m){var E=(0,h.Z)(O),T=!E&&(0,o.Z)(O),P=!E&&!T&&(0,e.Z)(O),M=!E&&!T&&!P&&(0,b.Z)(O),N=E||T||P||M,z=N?function t(O,m){for(var E=-1,T=Array(O);++E{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){for(var e=-1,y=h.length,b=o.length;++e{"use strict";s.d(x,{Z:()=>y});var t=s(3496),n=s(3093),h=Object.prototype.hasOwnProperty;const y=function e(b,D,F){var R=b[D];(!h.call(b,D)||!(0,n.Z)(R,F)||void 0===F&&!(D in b))&&(0,t.Z)(b,D,F)}},3496:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});var t=s(2370);const o=function n(h,e,y){"__proto__"==e&&t.Z?(0,t.Z)(h,e,{configurable:!0,enumerable:!0,value:y,writable:!0}):h[e]=y}},4792:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(1999),n=Object.create;const h=function(){function e(){}return function(y){if(!(0,t.Z)(y))return{};if(n)return n(y);e.prototype=y;var b=new e;return e.prototype=void 0,b}}()},1149:(X,x,s)=>{"use strict";s.d(x,{Z:()=>b});const h=function t(D){return function(F,R,S){for(var O=-1,m=Object(F),E=S(F),T=E.length;T--;){var P=E[D?T:++O];if(!1===R(m[P],P,m))break}return F}}();var e=s(1952);const b=function y(D,F){return D&&h(D,F,e.Z)}},7298:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(3449),n=s(2168);const h=function o(e,y){for(var b=0,D=(y=(0,t.Z)(y,e)).length;null!=e&&b{"use strict";s.d(x,{Z:()=>h});var t=s(6623),n=s(4177);const h=function o(e,y,b){var D=y(e);return(0,n.Z)(e)?D:(0,t.Z)(D,b(e))}},7079:(X,x,s)=>{"use strict";s.d(x,{Z:()=>P});var t=s(8492),n=Object.prototype,o=n.hasOwnProperty,h=n.toString,e=t.Z?t.Z.toStringTag:void 0;var F=Object.prototype.toString;var E=t.Z?t.Z.toStringTag:void 0;const P=function T(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":E&&E in Object(M)?function y(M){var N=o.call(M,e),z=M[e];try{M[e]=void 0;var v=!0}catch(g){}var C=h.call(M);return v&&(N?M[e]=z:delete M[e]),C}(M):function R(M){return F.call(M)}(M)}},771:(X,x,s)=>{"use strict";s.d(x,{Z:()=>ut});var t=s(5343),n=s(3639);function D(H){var q=-1,fe=null==H?0:H.length;for(this.__data__=new n.Z;++qwe))return!1;var Re=se.get(H),De=se.get(q);if(Re&&De)return Re==q&&De==H;var Ne=-1,ye=!0,Ve=2&fe?new F:void 0;for(se.set(H,q),se.set(q,H);++Ne{"use strict";s.d(x,{Z:()=>le});var t=s(5343),n=s(771);var b=s(1999);const F=function D($){return $==$&&!(0,b.Z)($)};var R=s(1952);const E=function m($,ee){return function(_e){return null!=_e&&_e[$]===ee&&(void 0!==ee||$ in Object(_e))}},P=function T($){var ee=function S($){for(var ee=(0,R.Z)($),_e=ee.length;_e--;){var te=ee[_e],re=$[te];ee[_e]=[te,re,F(re)]}return ee}($);return 1==ee.length&&ee[0][2]?E(ee[0][0],ee[0][1]):function(_e){return _e===$||function e($,ee,_e,te){var re=_e.length,B=re,ne=!te;if(null==$)return!B;for($=Object($);re--;){var k=_e[re];if(ne&&k[2]?k[1]!==$[k[0]]:!(k[0]in $))return!1}for(;++re{"use strict";s.d(x,{Z:()=>D});var t=s(1986);const h=(0,s(5820).Z)(Object.keys,Object);var y=Object.prototype.hasOwnProperty;const D=function b(F){if(!(0,t.Z)(F))return h(F);var R=[];for(var S in Object(F))y.call(F,S)&&"constructor"!=S&&R.push(S);return R}},6932:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o){return function(h){return o(h)}}},3449:(X,x,s)=>{"use strict";s.d(x,{Z:()=>Q});var t=s(4177),n=s(8042),o=s(3639);function e(I,U){if("function"!=typeof I||null!=U&&"function"!=typeof U)throw new TypeError("Expected a function");var ae=function(){var pe=arguments,me=U?U.apply(this,pe):pe[0],be=ae.cache;if(be.has(me))return be.get(me);var Ee=I.apply(this,pe);return ae.cache=be.set(me,Ee)||be,Ee};return ae.cache=new(e.Cache||o.Z),ae}e.Cache=o.Z;const y=e;var R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g;const m=function D(I){var U=y(I,function(pe){return 500===ae.size&&ae.clear(),pe}),ae=U.cache;return U}(function(I){var U=[];return 46===I.charCodeAt(0)&&U.push(""),I.replace(R,function(ae,pe,me,be){U.push(me?be.replace(S,"$1"):pe||ae)}),U});var E=s(8492);var M=s(6460),z=E.Z?E.Z.prototype:void 0,v=z?z.toString:void 0;const g=function C(I){if("string"==typeof I)return I;if((0,t.Z)(I))return function T(I,U){for(var ae=-1,pe=null==I?0:I.length,me=Array(pe);++ae{"use strict";s.d(x,{Z:()=>o});var t=s(3858);const o=function(){try{var h=(0,t.Z)(Object,"defineProperty");return h({},"",{}),h}catch(e){}}()},8346:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},8501:(X,x,s)=>{"use strict";s.d(x,{Z:()=>e});var t=s(8203),n=s(3976),o=s(1952);const e=function h(y){return(0,t.Z)(y,o.Z,n.Z)}},3858:(X,x,s)=>{"use strict";s.d(x,{Z:()=>g});var L,t=s(2089),o=s(5946).Z["__core-js_shared__"],e=(L=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";var D=s(1999),F=s(4407),S=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const N=function M(L){return!(!(0,D.Z)(L)||function y(L){return!!e&&e in L}(L))&&((0,t.Z)(L)?P:S).test((0,F.Z)(L))},g=function C(L,J){var Z=function z(L,J){return null==L?void 0:L[J]}(L,J);return N(Z)?Z:void 0}},5650:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=(0,s(5820).Z)(Object.getPrototypeOf,Object)},3976:(X,x,s)=>{"use strict";s.d(x,{Z:()=>D});var o=s(3419),e=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols;const D=y?function(F){return null==F?[]:(F=Object(F),function t(F,R){for(var S=-1,O=null==F?0:F.length,m=0,E=[];++S{"use strict";s.d(x,{Z:()=>Q});var t=s(3858),n=s(5946);const h=(0,t.Z)(n.Z,"DataView");var e=s(9329);const b=(0,t.Z)(n.Z,"Promise"),F=(0,t.Z)(n.Z,"Set"),S=(0,t.Z)(n.Z,"WeakMap");var O=s(7079),m=s(4407),E="[object Map]",P="[object Promise]",M="[object Set]",N="[object WeakMap]",z="[object DataView]",v=(0,m.Z)(h),C=(0,m.Z)(e.Z),g=(0,m.Z)(b),L=(0,m.Z)(F),J=(0,m.Z)(S),Z=O.Z;(h&&Z(new h(new ArrayBuffer(1)))!=z||e.Z&&Z(new e.Z)!=E||b&&Z(b.resolve())!=P||F&&Z(new F)!=M||S&&Z(new S)!=N)&&(Z=function(I){var U=(0,O.Z)(I),ae="[object Object]"==U?I.constructor:void 0,pe=ae?(0,m.Z)(ae):"";if(pe)switch(pe){case v:return z;case C:return E;case g:return P;case L:return M;case J:return N}return U});const Q=Z},6667:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var n=/^(?:0|[1-9]\d*)$/;const h=function o(e,y){var b=typeof e;return!!(y=null==y?9007199254740991:y)&&("number"==b||"symbol"!=b&&n.test(e))&&e>-1&&e%1==0&&e{"use strict";s.d(x,{Z:()=>y});var t=s(4177),n=s(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const y=function e(b,D){if((0,t.Z)(b))return!1;var F=typeof b;return!("number"!=F&&"symbol"!=F&&"boolean"!=F&&null!=b&&!(0,n.Z)(b))||h.test(b)||!o.test(b)||null!=D&&b in Object(D)}},1986:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});var t=Object.prototype;const o=function n(h){var e=h&&h.constructor;return h===("function"==typeof e&&e.prototype||t)}},6594:(X,x,s)=>{"use strict";s.d(x,{Z:()=>b});var t=s(8346),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,e=o&&o.exports===n&&t.Z.process;const b=function(){try{return o&&o.require&&o.require("util").types||e&&e.binding&&e.binding("util")}catch(F){}}()},5820:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){return function(e){return o(h(e))}}},5946:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(8346),n="object"==typeof self&&self&&self.Object===Object&&self;const h=t.Z||n||Function("return this")()},2168:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(6460);const h=function o(e){if("string"==typeof e||(0,t.Z)(e))return e;var y=e+"";return"0"==y&&1/e==-1/0?"-0":y}},4407:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var n=Function.prototype.toString;const h=function o(e){if(null!=e){try{return n.call(e)}catch(y){}try{return e+""}catch(y){}}return""}},3523:(X,x,s)=>{"use strict";s.d(x,{Z:()=>_n});var t=s(5343),n=s(7585),o=s(1481),h=s(3496);const y=function e(W,ce,Ce,We){var Ct=!Ce;Ce||(Ce={});for(var at=-1,je=ce.length;++at{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){return o===h||o!=o&&h!=h}},5867:(X,x,s)=>{"use strict";s.d(x,{Z:()=>O});const n=function t(m,E){return null!=m&&E in Object(m)};var o=s(3449),h=s(4825),e=s(4177),y=s(6667),b=s(8696),D=s(2168);const O=function S(m,E){return null!=m&&function F(m,E,T){for(var P=-1,M=(E=(0,o.Z)(E,m)).length,N=!1;++P{"use strict";s.d(x,{Z:()=>n});const n=function t(o){return o}},4825:(X,x,s)=>{"use strict";s.d(x,{Z:()=>R});var t=s(7079),n=s(214);const e=function h(S){return(0,n.Z)(S)&&"[object Arguments]"==(0,t.Z)(S)};var y=Object.prototype,b=y.hasOwnProperty,D=y.propertyIsEnumerable;const R=e(function(){return arguments}())?e:function(S){return(0,n.Z)(S)&&b.call(S,"callee")&&!D.call(S,"callee")}},4177:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=Array.isArray},8706:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(2089),n=s(8696);const h=function o(e){return null!=e&&(0,n.Z)(e.length)&&!(0,t.Z)(e)}},5202:(X,x,s)=>{"use strict";s.d(x,{Z:()=>R});var t=s(5946),h="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=h&&"object"==typeof module&&module&&!module.nodeType&&module,b=e&&e.exports===h?t.Z.Buffer:void 0;const R=(b?b.isBuffer:void 0)||function n(){return!1}},1854:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});var t=s(771);const o=function n(h,e){return(0,t.Z)(h,e)}},2089:(X,x,s)=>{"use strict";s.d(x,{Z:()=>D});var t=s(7079),n=s(1999);const D=function b(F){if(!(0,n.Z)(F))return!1;var R=(0,t.Z)(F);return"[object Function]"==R||"[object GeneratorFunction]"==R||"[object AsyncFunction]"==R||"[object Proxy]"==R}},8696:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=function n(h){return"number"==typeof h&&h>-1&&h%1==0&&h<=9007199254740991}},1999:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o){var h=typeof o;return null!=o&&("object"==h||"function"==h)}},214:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o){return null!=o&&"object"==typeof o}},6460:(X,x,s)=>{"use strict";s.d(x,{Z:()=>e});var t=s(7079),n=s(214);const e=function h(y){return"symbol"==typeof y||(0,n.Z)(y)&&"[object Symbol]"==(0,t.Z)(y)}},7583:(X,x,s)=>{"use strict";s.d(x,{Z:()=>Y});var t=s(7079),n=s(8696),o=s(214),U={};U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U["[object Arguments]"]=U["[object Array]"]=U["[object ArrayBuffer]"]=U["[object Boolean]"]=U["[object DataView]"]=U["[object Date]"]=U["[object Error]"]=U["[object Function]"]=U["[object Map]"]=U["[object Number]"]=U["[object Object]"]=U["[object RegExp]"]=U["[object Set]"]=U["[object String]"]=U["[object WeakMap]"]=!1;var me=s(6932),be=s(6594),Ee=be.Z&&be.Z.isTypedArray;const Y=Ee?(0,me.Z)(Ee):function ae(le){return(0,o.Z)(le)&&(0,n.Z)(le.length)&&!!U[(0,t.Z)(le)]}},1952:(X,x,s)=>{"use strict";s.d(x,{Z:()=>e});var t=s(3487),n=s(4884),o=s(8706);const e=function h(y){return(0,o.Z)(y)?(0,t.Z)(y):(0,n.Z)(y)}},3419:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(){return[]}},6422:(X,x,s)=>{"use strict";s.d(x,{Z:()=>O});var t=s(7585),n=s(4792),o=s(1149),h=s(7242),e=s(5650),y=s(4177),b=s(5202),D=s(2089),F=s(1999),R=s(7583);const O=function S(m,E,T){var P=(0,y.Z)(m),M=P||(0,b.Z)(m)||(0,R.Z)(m);if(E=(0,h.Z)(E,4),null==T){var N=m&&m.constructor;T=M?P?new N:[]:(0,F.Z)(m)&&(0,D.Z)(N)?(0,n.Z)((0,e.Z)(m)):{}}return(M?t.Z:o.Z)(m,function(z,v,C){return E(T,z,v,C)}),T}},6699:(X,x,s)=>{"use strict";s.d(x,{Dz:()=>T,Rt:()=>M});var t=s(655),n=s(5e3),o=s(9439),h=s(1721),e=s(925),y=s(9808),b=s(647),D=s(226);const F=["textEl"];function R(N,z){if(1&N&&n._UZ(0,"i",3),2&N){const v=n.oxw();n.Q6J("nzType",v.nzIcon)}}function S(N,z){if(1&N){const v=n.EpF();n.TgZ(0,"img",4),n.NdJ("error",function(g){return n.CHM(v),n.oxw().imgError(g)}),n.qZA()}if(2&N){const v=n.oxw();n.Q6J("src",v.nzSrc,n.LSH),n.uIk("srcset",v.nzSrcSet,n.LSH)("alt",v.nzAlt)}}function O(N,z){if(1&N&&(n.TgZ(0,"span",5,6),n._uU(2),n.qZA()),2&N){const v=n.oxw();n.Q6J("ngStyle",v.textStyles),n.xp6(2),n.Oqu(v.nzText)}}let T=(()=>{class N{constructor(v,C,g,L){this.nzConfigService=v,this.elementRef=C,this.cdr=g,this.platform=L,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new n.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(v){this.nzError.emit(v),v.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const v=this.textEl.nativeElement.offsetWidth,C=this.el.getBoundingClientRect().width,g=2*this.nzGap{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return N.\u0275fac=function(v){return new(v||N)(n.Y36(o.jY),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(e.t4))},N.\u0275cmp=n.Xpm({type:N,selectors:[["nz-avatar"]],viewQuery:function(v,C){if(1&v&&n.Gf(F,5),2&v){let g;n.iGM(g=n.CRH())&&(C.textEl=g.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(v,C){2&v&&(n.Udp("width",C.customSize)("height",C.customSize)("line-height",C.customSize)("font-size",C.hasIcon&&C.customSize?C.nzSize/2:null,"px"),n.ekj("ant-avatar-lg","large"===C.nzSize)("ant-avatar-sm","small"===C.nzSize)("ant-avatar-square","square"===C.nzShape)("ant-avatar-circle","circle"===C.nzShape)("ant-avatar-icon",C.nzIcon)("ant-avatar-image",C.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[n.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(v,C){1&v&&(n.YNc(0,R,1,1,"i",0),n.YNc(1,S,1,3,"img",1),n.YNc(2,O,3,2,"span",2)),2&v&&(n.Q6J("ngIf",C.nzIcon&&C.hasIcon),n.xp6(1),n.Q6J("ngIf",C.nzSrc&&C.hasSrc),n.xp6(1),n.Q6J("ngIf",C.nzText&&C.hasText))},directives:[y.O5,b.Ls,y.PC],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,o.oS)()],N.prototype,"nzShape",void 0),(0,t.gn)([(0,o.oS)()],N.prototype,"nzSize",void 0),(0,t.gn)([(0,o.oS)(),(0,h.Rn)()],N.prototype,"nzGap",void 0),N})(),M=(()=>{class N{}return N.\u0275fac=function(v){return new(v||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({imports:[[D.vT,y.ez,b.PV,e.ud]]}),N})()},6042:(X,x,s)=>{"use strict";s.d(x,{ix:()=>z,fY:()=>v,sL:()=>C});var t=s(655),n=s(5e3),o=s(8929),h=s(3753),e=s(7625),y=s(1059),b=s(2198),D=s(9439),F=s(1721),R=s(647),S=s(226),O=s(9808),m=s(2683),E=s(2643);const T=["nz-button",""];function P(g,L){1&g&&n._UZ(0,"i",1)}const M=["*"],N="button";let z=(()=>{class g{constructor(J,Z,Q,I,U,ae){this.ngZone=J,this.elementRef=Z,this.cdr=Q,this.renderer=I,this.nzConfigService=U,this.directionality=ae,this._nzModuleName=N,this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ,this.loading$=new o.xQ,this.nzConfigService.getConfigChangeEventForComponent(N).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(J,Z){J.forEach(Q=>{if("#text"===Q.nodeName){const I=Z.createElement("span"),U=Z.parentNode(Q);Z.insertBefore(U,I,Q),Z.appendChild(I,Q)}})}assertIconOnly(J,Z){const Q=Array.from(J.childNodes),I=Q.filter(me=>"I"===me.nodeName).length,U=Q.every(me=>"#text"!==me.nodeName);Q.every(me=>"SPAN"!==me.nodeName)&&U&&I>=1&&Z.addClass(J,"ant-btn-icon-only")}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,e.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.elementRef.nativeElement,"click").pipe((0,e.R)(this.destroy$)).subscribe(Z=>{var Q;this.disabled&&"A"===(null===(Q=Z.target)||void 0===Q?void 0:Q.tagName)&&(Z.preventDefault(),Z.stopImmediatePropagation())})})}ngOnChanges(J){const{nzLoading:Z}=J;Z&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,y.O)(this.nzLoading),(0,b.h)(()=>!!this.nzIconDirectiveElement),(0,e.R)(this.destroy$)).subscribe(J=>{const Z=this.nzIconDirectiveElement.nativeElement;J?this.renderer.setStyle(Z,"display","none"):this.renderer.removeStyle(Z,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(J){return new(J||g)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.Qsj),n.Y36(D.jY),n.Y36(S.Is,8))},g.\u0275cmp=n.Xpm({type:g,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(J,Z,Q){if(1&J&&n.Suo(Q,R.Ls,5,n.SBq),2&J){let I;n.iGM(I=n.CRH())&&(Z.nzIconDirectiveElement=I.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(J,Z){2&J&&(n.uIk("tabindex",Z.disabled?-1:null===Z.tabIndex?null:Z.tabIndex)("disabled",Z.disabled||null),n.ekj("ant-btn-primary","primary"===Z.nzType)("ant-btn-dashed","dashed"===Z.nzType)("ant-btn-link","link"===Z.nzType)("ant-btn-text","text"===Z.nzType)("ant-btn-circle","circle"===Z.nzShape)("ant-btn-round","round"===Z.nzShape)("ant-btn-lg","large"===Z.nzSize)("ant-btn-sm","small"===Z.nzSize)("ant-btn-dangerous",Z.nzDanger)("ant-btn-loading",Z.nzLoading)("ant-btn-background-ghost",Z.nzGhost)("ant-btn-block",Z.nzBlock)("ant-input-search-button",Z.nzSearch)("ant-btn-rtl","rtl"===Z.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[n.TTD],attrs:T,ngContentSelectors:M,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(J,Z){1&J&&(n.F$t(),n.YNc(0,P,1,0,"i",0),n.Hsn(1)),2&J&&n.Q6J("ngIf",Z.nzLoading)},directives:[O.O5,R.Ls,m.w],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,F.yF)()],g.prototype,"nzBlock",void 0),(0,t.gn)([(0,F.yF)()],g.prototype,"nzGhost",void 0),(0,t.gn)([(0,F.yF)()],g.prototype,"nzSearch",void 0),(0,t.gn)([(0,F.yF)()],g.prototype,"nzLoading",void 0),(0,t.gn)([(0,F.yF)()],g.prototype,"nzDanger",void 0),(0,t.gn)([(0,F.yF)()],g.prototype,"disabled",void 0),(0,t.gn)([(0,D.oS)()],g.prototype,"nzSize",void 0),g})(),v=(()=>{class g{constructor(J){this.directionality=J,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ}ngOnInit(){var J;this.dir=this.directionality.value,null===(J=this.directionality.change)||void 0===J||J.pipe((0,e.R)(this.destroy$)).subscribe(Z=>{this.dir=Z})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(J){return new(J||g)(n.Y36(S.Is,8))},g.\u0275cmp=n.Xpm({type:g,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(J,Z){2&J&&n.ekj("ant-btn-group-lg","large"===Z.nzSize)("ant-btn-group-sm","small"===Z.nzSize)("ant-btn-group-rtl","rtl"===Z.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:M,decls:1,vars:0,template:function(J,Z){1&J&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),g})(),C=(()=>{class g{}return g.\u0275fac=function(J){return new(J||g)},g.\u0275mod=n.oAB({type:g}),g.\u0275inj=n.cJS({imports:[[S.vT,O.ez,E.vG,R.PV,m.a],m.a,E.vG]}),g})()},7484:(X,x,s)=>{"use strict";s.d(x,{bd:()=>_e,l7:()=>te,vh:()=>re});var t=s(655),n=s(5e3),o=s(1721),h=s(8929),e=s(7625),y=s(9439),b=s(226),D=s(9808),F=s(969);function R(B,ne){1&B&&n.Hsn(0)}const S=["*"];function O(B,ne){1&B&&(n.TgZ(0,"div",4),n._UZ(1,"div",5),n.qZA()),2&B&&n.Q6J("ngClass",ne.$implicit)}function m(B,ne){if(1&B&&(n.TgZ(0,"div",2),n.YNc(1,O,2,1,"div",3),n.qZA()),2&B){const k=ne.$implicit;n.xp6(1),n.Q6J("ngForOf",k)}}function E(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzTitle)}}function T(B,ne){if(1&B&&(n.TgZ(0,"div",11),n.YNc(1,E,2,1,"ng-container",12),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzTitle)}}function P(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzExtra)}}function M(B,ne){if(1&B&&(n.TgZ(0,"div",13),n.YNc(1,P,2,1,"ng-container",12),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzExtra)}}function N(B,ne){}function z(B,ne){if(1&B&&(n.ynx(0),n.YNc(1,N,0,0,"ng-template",14),n.BQk()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",k.listOfNzCardTabComponent.template)}}function v(B,ne){if(1&B&&(n.TgZ(0,"div",6),n.TgZ(1,"div",7),n.YNc(2,T,2,1,"div",8),n.YNc(3,M,2,1,"div",9),n.qZA(),n.YNc(4,z,2,1,"ng-container",10),n.qZA()),2&B){const k=n.oxw();n.xp6(2),n.Q6J("ngIf",k.nzTitle),n.xp6(1),n.Q6J("ngIf",k.nzExtra),n.xp6(1),n.Q6J("ngIf",k.listOfNzCardTabComponent)}}function C(B,ne){}function g(B,ne){if(1&B&&(n.TgZ(0,"div",15),n.YNc(1,C,0,0,"ng-template",14),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",k.nzCover)}}function L(B,ne){1&B&&(n.ynx(0),n.Hsn(1),n.BQk())}function J(B,ne){1&B&&n._UZ(0,"nz-card-loading")}function Z(B,ne){}function Q(B,ne){if(1&B&&(n.TgZ(0,"li"),n.TgZ(1,"span"),n.YNc(2,Z,0,0,"ng-template",14),n.qZA(),n.qZA()),2&B){const k=ne.$implicit,ie=n.oxw(2);n.Udp("width",100/ie.nzActions.length,"%"),n.xp6(2),n.Q6J("ngTemplateOutlet",k)}}function I(B,ne){if(1&B&&(n.TgZ(0,"ul",16),n.YNc(1,Q,3,3,"li",17),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngForOf",k.nzActions)}}function U(B,ne){}function ae(B,ne){if(1&B&&(n.TgZ(0,"div",2),n.YNc(1,U,0,0,"ng-template",3),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",k.nzAvatar)}}function pe(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzTitle)}}function me(B,ne){if(1&B&&(n.TgZ(0,"div",7),n.YNc(1,pe,2,1,"ng-container",8),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzTitle)}}function be(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzDescription)}}function Ee(B,ne){if(1&B&&(n.TgZ(0,"div",9),n.YNc(1,be,2,1,"ng-container",8),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzDescription)}}function Te(B,ne){if(1&B&&(n.TgZ(0,"div",4),n.YNc(1,me,2,1,"div",5),n.YNc(2,Ee,2,1,"div",6),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngIf",k.nzTitle),n.xp6(1),n.Q6J("ngIf",k.nzDescription)}}let Y=(()=>{class B{constructor(){this.nzHoverable=!0}}return B.\u0275fac=function(k){return new(k||B)},B.\u0275dir=n.lG2({type:B,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(k,ie){2&k&&n.ekj("ant-card-hoverable",ie.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,t.gn)([(0,o.yF)()],B.prototype,"nzHoverable",void 0),B})(),le=(()=>{class B{}return B.\u0275fac=function(k){return new(k||B)},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card-tab"]],viewQuery:function(k,ie){if(1&k&&n.Gf(n.Rgc,7),2&k){let K;n.iGM(K=n.CRH())&&(ie.template=K.first)}},exportAs:["nzCardTab"],ngContentSelectors:S,decls:1,vars:0,template:function(k,ie){1&k&&(n.F$t(),n.YNc(0,R,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),B})(),$=(()=>{class B{constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return B.\u0275fac=function(k){return new(k||B)},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(k,ie){1&k&&(n.TgZ(0,"div",0),n.YNc(1,m,2,1,"div",1),n.qZA()),2&k&&(n.xp6(1),n.Q6J("ngForOf",ie.listOfLoading))},directives:[D.sg,D.mk],encapsulation:2,changeDetection:0}),B})(),_e=(()=>{class B{constructor(k,ie,K){this.nzConfigService=k,this.cdr=ie,this.directionality=K,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new h.xQ,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var k;null===(k=this.directionality.change)||void 0===k||k.pipe((0,e.R)(this.destroy$)).subscribe(ie=>{this.dir=ie,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return B.\u0275fac=function(k){return new(k||B)(n.Y36(y.jY),n.Y36(n.sBO),n.Y36(b.Is,8))},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card"]],contentQueries:function(k,ie,K){if(1&k&&(n.Suo(K,le,5),n.Suo(K,Y,4)),2&k){let ze;n.iGM(ze=n.CRH())&&(ie.listOfNzCardTabComponent=ze.first),n.iGM(ze=n.CRH())&&(ie.listOfNzCardGridDirective=ze)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(k,ie){2&k&&n.ekj("ant-card-loading",ie.nzLoading)("ant-card-bordered",!1===ie.nzBorderless&&ie.nzBordered)("ant-card-hoverable",ie.nzHoverable)("ant-card-small","small"===ie.nzSize)("ant-card-contain-grid",ie.listOfNzCardGridDirective&&ie.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===ie.nzType)("ant-card-contain-tabs",!!ie.listOfNzCardTabComponent)("ant-card-rtl","rtl"===ie.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:S,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(k,ie){if(1&k&&(n.F$t(),n.YNc(0,v,5,3,"div",0),n.YNc(1,g,2,1,"div",1),n.TgZ(2,"div",2),n.YNc(3,L,2,0,"ng-container",3),n.YNc(4,J,1,0,"ng-template",null,4,n.W1O),n.qZA(),n.YNc(6,I,2,1,"ul",5)),2&k){const K=n.MAs(5);n.Q6J("ngIf",ie.nzTitle||ie.nzExtra||ie.listOfNzCardTabComponent),n.xp6(1),n.Q6J("ngIf",ie.nzCover),n.xp6(1),n.Q6J("ngStyle",ie.nzBodyStyle),n.xp6(1),n.Q6J("ngIf",!ie.nzLoading)("ngIfElse",K),n.xp6(3),n.Q6J("ngIf",ie.nzActions.length)}},directives:[$,D.O5,F.f,D.tP,D.PC,D.sg],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,y.oS)(),(0,o.yF)()],B.prototype,"nzBordered",void 0),(0,t.gn)([(0,y.oS)(),(0,o.yF)()],B.prototype,"nzBorderless",void 0),(0,t.gn)([(0,o.yF)()],B.prototype,"nzLoading",void 0),(0,t.gn)([(0,y.oS)(),(0,o.yF)()],B.prototype,"nzHoverable",void 0),(0,t.gn)([(0,y.oS)()],B.prototype,"nzSize",void 0),B})(),te=(()=>{class B{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return B.\u0275fac=function(k){return new(k||B)},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(k,ie){1&k&&(n.YNc(0,ae,2,1,"div",0),n.YNc(1,Te,3,2,"div",1)),2&k&&(n.Q6J("ngIf",ie.nzAvatar),n.xp6(1),n.Q6J("ngIf",ie.nzTitle||ie.nzDescription))},directives:[D.O5,D.tP,F.f],encapsulation:2,changeDetection:0}),B})(),re=(()=>{class B{}return B.\u0275fac=function(k){return new(k||B)},B.\u0275mod=n.oAB({type:B}),B.\u0275inj=n.cJS({imports:[[D.ez,F.T],b.vT]}),B})()},6114:(X,x,s)=>{"use strict";s.d(x,{Ie:()=>P,Wr:()=>N});var t=s(655),n=s(5e3),o=s(4182),h=s(8929),e=s(3753),y=s(7625),b=s(1721),D=s(5664),F=s(226),R=s(9808);const S=["*"],O=["inputElement"],m=["nz-checkbox",""];let T=(()=>{class z{constructor(C,g){this.nzOnChange=new n.vpe,this.checkboxList=[],C.addClass(g.nativeElement,"ant-checkbox-group")}addCheckbox(C){this.checkboxList.push(C)}removeCheckbox(C){this.checkboxList.splice(this.checkboxList.indexOf(C),1)}onChange(){const C=this.checkboxList.filter(g=>g.nzChecked).map(g=>g.nzValue);this.nzOnChange.emit(C)}}return z.\u0275fac=function(C){return new(C||z)(n.Y36(n.Qsj),n.Y36(n.SBq))},z.\u0275cmp=n.Xpm({type:z,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:S,decls:1,vars:0,template:function(C,g){1&C&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),z})(),P=(()=>{class z{constructor(C,g,L,J,Z,Q){this.ngZone=C,this.elementRef=g,this.nzCheckboxWrapperComponent=L,this.cdr=J,this.focusMonitor=Z,this.directionality=Q,this.dir="ltr",this.destroy$=new h.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new n.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(C){this.nzDisabled||(this.nzChecked=C,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(C){this.nzChecked=C,this.cdr.markForCheck()}registerOnChange(C){this.onChange=C}registerOnTouched(C){this.onTouched=C}setDisabledState(C){this.nzDisabled=C,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,y.R)(this.destroy$)).subscribe(C=>{C||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,y.R)(this.destroy$)).subscribe(C=>{this.dir=C,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,y.R)(this.destroy$)).subscribe(C=>{C.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,y.R)(this.destroy$)).subscribe(C=>C.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return z.\u0275fac=function(C){return new(C||z)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(T,8),n.Y36(n.sBO),n.Y36(D.tE),n.Y36(F.Is,8))},z.\u0275cmp=n.Xpm({type:z,selectors:[["","nz-checkbox",""]],viewQuery:function(C,g){if(1&C&&n.Gf(O,7),2&C){let L;n.iGM(L=n.CRH())&&(g.inputElement=L.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(C,g){2&C&&n.ekj("ant-checkbox-wrapper-checked",g.nzChecked)("ant-checkbox-rtl","rtl"===g.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[n._Bn([{provide:o.JU,useExisting:(0,n.Gpc)(()=>z),multi:!0}])],attrs:m,ngContentSelectors:S,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(C,g){1&C&&(n.F$t(),n.TgZ(0,"span",0),n.TgZ(1,"input",1,2),n.NdJ("ngModelChange",function(J){return g.innerCheckedChange(J)}),n.qZA(),n._UZ(3,"span",3),n.qZA(),n.TgZ(4,"span"),n.Hsn(5),n.qZA()),2&C&&(n.ekj("ant-checkbox-checked",g.nzChecked&&!g.nzIndeterminate)("ant-checkbox-disabled",g.nzDisabled)("ant-checkbox-indeterminate",g.nzIndeterminate),n.xp6(1),n.Q6J("checked",g.nzChecked)("ngModel",g.nzChecked)("disabled",g.nzDisabled),n.uIk("autofocus",g.nzAutoFocus?"autofocus":null)("id",g.nzId))},directives:[o.Wl,o.JJ,o.On],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,b.yF)()],z.prototype,"nzAutoFocus",void 0),(0,t.gn)([(0,b.yF)()],z.prototype,"nzDisabled",void 0),(0,t.gn)([(0,b.yF)()],z.prototype,"nzIndeterminate",void 0),(0,t.gn)([(0,b.yF)()],z.prototype,"nzChecked",void 0),z})(),N=(()=>{class z{}return z.\u0275fac=function(C){return new(C||z)},z.\u0275mod=n.oAB({type:z}),z.\u0275inj=n.cJS({imports:[[F.vT,R.ez,o.u5,D.rt]]}),z})()},2683:(X,x,s)=>{"use strict";s.d(x,{w:()=>o,a:()=>h});var t=s(925),n=s(5e3);let o=(()=>{class e{constructor(b,D){this.elementRef=b,this.renderer=D,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return e.\u0275fac=function(b){return new(b||e)(n.Y36(n.SBq),n.Y36(n.Qsj))},e.\u0275dir=n.lG2({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[n.TTD]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(b){return new(b||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ud]]}),e})()},2643:(X,x,s)=>{"use strict";s.d(x,{dQ:()=>D,vG:()=>F});var t=s(925),n=s(5e3),o=s(6360);class h{constructor(S,O,m,E){this.triggerElement=S,this.ngZone=O,this.insertExtraNode=m,this.platformId=E,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=T=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===T.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const S=this.triggerElement,O=this.getWaveColor(S);S.setAttribute(this.waveAttributeName,"true"),!(Date.now(){S.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(S){return!!S&&"#ffffff"!==S&&"rgb(255, 255, 255)"!==S&&this.isNotGrey(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&"transparent"!==S}isNotGrey(S){const O=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(O&&O[1]&&O[2]&&O[3]&&O[1]===O[2]&&O[2]===O[3])}getWaveColor(S){const O=getComputedStyle(S);return O.getPropertyValue("border-top-color")||O.getPropertyValue("border-color")||O.getPropertyValue("background-color")}runTimeoutOutsideZone(S,O){this.ngZone.runOutsideAngular(()=>setTimeout(S,O))}}const e={disabled:!1},y=new n.OlP("nz-wave-global-options",{providedIn:"root",factory:function b(){return e}});let D=(()=>{class R{constructor(O,m,E,T,P){this.ngZone=O,this.elementRef=m,this.config=E,this.animationType=T,this.platformId=P,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let O=!1;return this.config&&"boolean"==typeof this.config.disabled&&(O=this.config.disabled),"NoopAnimations"===this.animationType&&(O=!0),O}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new h(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return R.\u0275fac=function(O){return new(O||R)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(y,8),n.Y36(o.Qb,8),n.Y36(n.Lbi))},R.\u0275dir=n.lG2({type:R,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),R})(),F=(()=>{class R{}return R.\u0275fac=function(O){return new(O||R)},R.\u0275mod=n.oAB({type:R}),R.\u0275inj=n.cJS({imports:[[t.ud]]}),R})()},5737:(X,x,s)=>{"use strict";s.d(x,{g:()=>F,S:()=>R});var t=s(655),n=s(5e3),o=s(1721),h=s(9808),e=s(969),y=s(226);function b(S,O){if(1&S&&(n.ynx(0),n._uU(1),n.BQk()),2&S){const m=n.oxw(2);n.xp6(1),n.Oqu(m.nzText)}}function D(S,O){if(1&S&&(n.TgZ(0,"span",1),n.YNc(1,b,2,1,"ng-container",2),n.qZA()),2&S){const m=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",m.nzText)}}let F=(()=>{class S{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return S.\u0275fac=function(m){return new(m||S)},S.\u0275cmp=n.Xpm({type:S,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(m,E){2&m&&n.ekj("ant-divider-horizontal","horizontal"===E.nzType)("ant-divider-vertical","vertical"===E.nzType)("ant-divider-with-text",E.nzText)("ant-divider-plain",E.nzPlain)("ant-divider-with-text-left",E.nzText&&"left"===E.nzOrientation)("ant-divider-with-text-right",E.nzText&&"right"===E.nzOrientation)("ant-divider-with-text-center",E.nzText&&"center"===E.nzOrientation)("ant-divider-dashed",E.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(m,E){1&m&&n.YNc(0,D,2,1,"span",0),2&m&&n.Q6J("ngIf",E.nzText)},directives:[h.O5,e.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,o.yF)()],S.prototype,"nzDashed",void 0),(0,t.gn)([(0,o.yF)()],S.prototype,"nzPlain",void 0),S})(),R=(()=>{class S{}return S.\u0275fac=function(m){return new(m||S)},S.\u0275mod=n.oAB({type:S}),S.\u0275inj=n.cJS({imports:[[y.vT,h.ez,e.T]]}),S})()},3677:(X,x,s)=>{"use strict";s.d(x,{cm:()=>le,b1:()=>re,wA:()=>_e,RR:()=>te});var t=s(655),n=s(1159),o=s(7429),h=s(5e3),e=s(8929),y=s(591),b=s(6787),D=s(3753),F=s(8896),R=s(6053),S=s(7604),O=s(4850),m=s(7545),E=s(2198),T=s(7138),P=s(5778),M=s(7625),N=s(9439),z=s(6950),v=s(1721),C=s(2845),g=s(925),L=s(226),J=s(9808),Z=s(4182),Q=s(6042),I=s(4832),U=s(969),ae=s(647),pe=s(4219),me=s(8076);function be(k,ie){if(1&k){const K=h.EpF();h.TgZ(0,"div",0),h.NdJ("@slideMotion.done",function(Me){return h.CHM(K),h.oxw().onAnimationEvent(Me)})("mouseenter",function(){return h.CHM(K),h.oxw().setMouseState(!0)})("mouseleave",function(){return h.CHM(K),h.oxw().setMouseState(!1)}),h.Hsn(1),h.qZA()}if(2&k){const K=h.oxw();h.ekj("ant-dropdown-rtl","rtl"===K.dir),h.Q6J("ngClass",K.nzOverlayClassName)("ngStyle",K.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)("nzNoAnimation",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)}}const Ee=["*"],Y=[z.yW.bottomLeft,z.yW.bottomRight,z.yW.topRight,z.yW.topLeft];let le=(()=>{class k{constructor(K,ze,Me,Pe,Ue,Qe){this.nzConfigService=K,this.elementRef=ze,this.overlay=Me,this.renderer=Pe,this.viewContainerRef=Ue,this.platform=Qe,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new e.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new y.X(!1),this.nzTrigger$=new y.X("hover"),this.overlayClose$=new e.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new h.vpe}setDropdownMenuValue(K,ze){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(K,ze)}ngAfterViewInit(){if(this.nzDropdownMenu){const K=this.elementRef.nativeElement,ze=(0,b.T)((0,D.R)(K,"mouseenter").pipe((0,S.h)(!0)),(0,D.R)(K,"mouseleave").pipe((0,S.h)(!1))),Pe=(0,b.T)(this.nzDropdownMenu.mouseState$,ze),Ue=(0,D.R)(K,"click").pipe((0,O.U)(()=>!this.nzVisible)),Qe=this.nzTrigger$.pipe((0,m.w)(ke=>"hover"===ke?Pe:"click"===ke?Ue:F.E)),Ge=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,E.h)(()=>this.nzClickHide),(0,S.h)(!1)),rt=(0,b.T)(Qe,Ge,this.overlayClose$).pipe((0,E.h)(()=>!this.nzDisabled)),tt=(0,b.T)(this.inputVisible$,rt);(0,R.aj)([tt,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,O.U)(([ke,et])=>ke||et),(0,T.e)(150),(0,P.x)(),(0,E.h)(()=>this.platform.isBrowser),(0,M.R)(this.destroy$)).subscribe(ke=>{const nt=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:K).getBoundingClientRect().width;this.nzVisible!==ke&&this.nzVisibleChange.emit(ke),this.nzVisible=ke,ke?(this.overlayRef?this.overlayRef.getConfig().minWidth=nt:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:nt,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,b.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,E.h)(He=>!this.elementRef.nativeElement.contains(He.target))),this.overlayRef.keydownEvents().pipe((0,E.h)(He=>He.keyCode===n.hY&&!(0,n.Vb)(He)))).pipe((0,M.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([z.yW[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new o.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,M.R)(this.destroy$)).subscribe(ke=>{"void"===ke.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(K){const{nzVisible:ze,nzDisabled:Me,nzOverlayClassName:Pe,nzOverlayStyle:Ue,nzTrigger:Qe}=K;if(Qe&&this.nzTrigger$.next(this.nzTrigger),ze&&this.inputVisible$.next(this.nzVisible),Me){const Ge=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Ge,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Ge,"disabled")}Pe&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Ue&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return k.\u0275fac=function(K){return new(K||k)(h.Y36(N.jY),h.Y36(h.SBq),h.Y36(C.aV),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(g.t4))},k.\u0275dir=h.lG2({type:k,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[h.TTD]}),(0,t.gn)([(0,N.oS)(),(0,v.yF)()],k.prototype,"nzBackdrop",void 0),(0,t.gn)([(0,v.yF)()],k.prototype,"nzClickHide",void 0),(0,t.gn)([(0,v.yF)()],k.prototype,"nzDisabled",void 0),(0,t.gn)([(0,v.yF)()],k.prototype,"nzVisible",void 0),k})(),$=(()=>{class k{}return k.\u0275fac=function(K){return new(K||k)},k.\u0275mod=h.oAB({type:k}),k.\u0275inj=h.cJS({}),k})(),_e=(()=>{class k{constructor(K,ze,Me){this.renderer=K,this.nzButtonGroupComponent=ze,this.elementRef=Me}ngAfterViewInit(){const K=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&K&&this.renderer.addClass(K,"ant-dropdown-button")}}return k.\u0275fac=function(K){return new(K||k)(h.Y36(h.Qsj),h.Y36(Q.fY,9),h.Y36(h.SBq))},k.\u0275dir=h.lG2({type:k,selectors:[["","nz-button","","nz-dropdown",""]]}),k})(),te=(()=>{class k{constructor(K,ze,Me,Pe,Ue,Qe,Ge){this.cdr=K,this.elementRef=ze,this.renderer=Me,this.viewContainerRef=Pe,this.nzMenuService=Ue,this.directionality=Qe,this.noAnimation=Ge,this.mouseState$=new y.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new h.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new e.xQ}onAnimationEvent(K){this.animationStateChange$.emit(K)}setMouseState(K){this.mouseState$.next(K)}setValue(K,ze){this[K]=ze,this.cdr.markForCheck()}ngOnInit(){var K;null===(K=this.directionality.change)||void 0===K||K.pipe((0,M.R)(this.destroy$)).subscribe(ze=>{this.dir=ze,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return k.\u0275fac=function(K){return new(K||k)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(pe.hl),h.Y36(L.Is,8),h.Y36(I.P,9))},k.\u0275cmp=h.Xpm({type:k,selectors:[["nz-dropdown-menu"]],viewQuery:function(K,ze){if(1&K&&h.Gf(h.Rgc,7),2&K){let Me;h.iGM(Me=h.CRH())&&(ze.templateRef=Me.first)}},exportAs:["nzDropdownMenu"],features:[h._Bn([pe.hl,{provide:pe.Cc,useValue:!0}])],ngContentSelectors:Ee,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(K,ze){1&K&&(h.F$t(),h.YNc(0,be,2,7,"ng-template"))},directives:[J.mk,J.PC,I.P],encapsulation:2,data:{animation:[me.mF]},changeDetection:0}),k})(),re=(()=>{class k{}return k.\u0275fac=function(K){return new(K||k)},k.\u0275mod=h.oAB({type:k}),k.\u0275inj=h.cJS({imports:[[L.vT,J.ez,C.U8,Z.u5,Q.sL,pe.ip,ae.PV,I.g,g.ud,z.e4,$,U.T],pe.ip]}),k})();new C.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new C.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new C.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new C.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},685:(X,x,s)=>{"use strict";s.d(x,{gB:()=>Ee,p9:()=>me,Xo:()=>Te});var t=s(7429),n=s(5e3),o=s(8929),h=s(7625),e=s(1059),y=s(9439),b=s(4170),D=s(9808),F=s(969),R=s(226);function S(Y,le){if(1&Y&&(n.ynx(0),n._UZ(1,"img",5),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.Q6J("src",$.nzNotFoundImage,n.LSH)("alt",$.isContentString?$.nzNotFoundContent:"empty")}}function O(Y,le){if(1&Y&&(n.ynx(0),n.YNc(1,S,2,2,"ng-container",4),n.BQk()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",$.nzNotFoundImage)}}function m(Y,le){1&Y&&n._UZ(0,"nz-empty-default")}function E(Y,le){1&Y&&n._UZ(0,"nz-empty-simple")}function T(Y,le){if(1&Y&&(n.ynx(0),n._uU(1),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.hij(" ",$.isContentString?$.nzNotFoundContent:$.locale.description," ")}}function P(Y,le){if(1&Y&&(n.TgZ(0,"p",6),n.YNc(1,T,2,1,"ng-container",4),n.qZA()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",$.nzNotFoundContent)}}function M(Y,le){if(1&Y&&(n.ynx(0),n._uU(1),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.hij(" ",$.nzNotFoundFooter," ")}}function N(Y,le){if(1&Y&&(n.TgZ(0,"div",7),n.YNc(1,M,2,1,"ng-container",4),n.qZA()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",$.nzNotFoundFooter)}}function z(Y,le){1&Y&&n._UZ(0,"nz-empty",6),2&Y&&n.Q6J("nzNotFoundImage","simple")}function v(Y,le){1&Y&&n._UZ(0,"nz-empty",7),2&Y&&n.Q6J("nzNotFoundImage","simple")}function C(Y,le){1&Y&&n._UZ(0,"nz-empty")}function g(Y,le){if(1&Y&&(n.ynx(0,2),n.YNc(1,z,1,1,"nz-empty",3),n.YNc(2,v,1,1,"nz-empty",4),n.YNc(3,C,1,0,"nz-empty",5),n.BQk()),2&Y){const $=n.oxw();n.Q6J("ngSwitch",$.size),n.xp6(1),n.Q6J("ngSwitchCase","normal"),n.xp6(1),n.Q6J("ngSwitchCase","small")}}function L(Y,le){}function J(Y,le){if(1&Y&&n.YNc(0,L,0,0,"ng-template",8),2&Y){const $=n.oxw(2);n.Q6J("cdkPortalOutlet",$.contentPortal)}}function Z(Y,le){if(1&Y&&(n.ynx(0),n._uU(1),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.hij(" ",$.content," ")}}function Q(Y,le){if(1&Y&&(n.ynx(0),n.YNc(1,J,1,1,void 0,1),n.YNc(2,Z,2,1,"ng-container",1),n.BQk()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("ngIf","string"!==$.contentType),n.xp6(1),n.Q6J("ngIf","string"===$.contentType)}}const I=new n.OlP("nz-empty-component-name");let U=(()=>{class Y{}return Y.\u0275fac=function($){return new($||Y)},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function($,ee){1&$&&(n.O4$(),n.TgZ(0,"svg",0),n.TgZ(1,"g",1),n.TgZ(2,"g",2),n._UZ(3,"ellipse",3),n._UZ(4,"path",4),n._UZ(5,"path",5),n._UZ(6,"path",6),n._UZ(7,"path",7),n.qZA(),n._UZ(8,"path",8),n.TgZ(9,"g",9),n._UZ(10,"ellipse",10),n._UZ(11,"path",11),n.qZA(),n.qZA(),n.qZA())},encapsulation:2,changeDetection:0}),Y})(),ae=(()=>{class Y{}return Y.\u0275fac=function($){return new($||Y)},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function($,ee){1&$&&(n.O4$(),n.TgZ(0,"svg",0),n.TgZ(1,"g",1),n._UZ(2,"ellipse",2),n.TgZ(3,"g",3),n._UZ(4,"path",4),n._UZ(5,"path",5),n.qZA(),n.qZA(),n.qZA())},encapsulation:2,changeDetection:0}),Y})();const pe=["default","simple"];let me=(()=>{class Y{constructor($,ee){this.i18n=$,this.cdr=ee,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new o.xQ}ngOnChanges($){const{nzNotFoundContent:ee,nzNotFoundImage:_e}=$;if(ee&&(this.isContentString="string"==typeof ee.currentValue),_e){const te=_e.currentValue||"default";this.isImageBuildIn=pe.findIndex(re=>re===te)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function($){return new($||Y)(n.Y36(b.wi),n.Y36(n.sBO))},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[n.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function($,ee){1&$&&(n.TgZ(0,"div",0),n.YNc(1,O,2,1,"ng-container",1),n.YNc(2,m,1,0,"nz-empty-default",1),n.YNc(3,E,1,0,"nz-empty-simple",1),n.qZA(),n.YNc(4,P,2,1,"p",2),n.YNc(5,N,2,1,"div",3)),2&$&&(n.xp6(1),n.Q6J("ngIf",!ee.isImageBuildIn),n.xp6(1),n.Q6J("ngIf",ee.isImageBuildIn&&"simple"!==ee.nzNotFoundImage),n.xp6(1),n.Q6J("ngIf",ee.isImageBuildIn&&"simple"===ee.nzNotFoundImage),n.xp6(1),n.Q6J("ngIf",null!==ee.nzNotFoundContent),n.xp6(1),n.Q6J("ngIf",ee.nzNotFoundFooter))},directives:[U,ae,D.O5,F.f],encapsulation:2,changeDetection:0}),Y})(),Ee=(()=>{class Y{constructor($,ee,_e,te){this.configService=$,this.viewContainerRef=ee,this.cdr=_e,this.injector=te,this.contentType="string",this.size="",this.destroy$=new o.xQ}ngOnChanges($){$.nzComponentName&&(this.size=function be(Y){switch(Y){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}($.nzComponentName.currentValue)),$.specificContent&&!$.specificContent.isFirstChange()&&(this.content=$.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const $=this.content;if("string"==typeof $)this.contentType="string";else if($ instanceof n.Rgc){const ee={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.UE($,this.viewContainerRef,ee)}else if($ instanceof n.DyG){const ee=n.zs3.create({parent:this.injector,providers:[{provide:I,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.C5($,this.viewContainerRef,ee)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,e.O)(!0),(0,h.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return Y.\u0275fac=function($){return new($||Y)(n.Y36(y.jY),n.Y36(n.s_b),n.Y36(n.sBO),n.Y36(n.zs3))},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[n.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function($,ee){1&$&&(n.YNc(0,g,4,3,"ng-container",0),n.YNc(1,Q,3,2,"ng-container",1)),2&$&&(n.Q6J("ngIf",!ee.content&&null!==ee.specificContent),n.xp6(1),n.Q6J("ngIf",ee.content))},directives:[me,D.O5,D.RF,D.n9,D.ED,t.Pl],encapsulation:2,changeDetection:0}),Y})(),Te=(()=>{class Y{}return Y.\u0275fac=function($){return new($||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[R.vT,D.ez,t.eL,F.T,b.YI]]}),Y})()},7957:(X,x,s)=>{"use strict";s.d(x,{du:()=>bt,Hf:()=>_t,Uh:()=>zt,Qp:()=>_,Sf:()=>Je});var t=s(2845),n=s(7429),o=s(5e3),h=s(8929),e=s(3753),y=s(8514),b=s(7625),D=s(2198),F=s(2986),R=s(1059),S=s(6947),O=s(1721),m=s(9808),E=s(6360),T=s(1777),P=s(5664),M=s(9439),N=s(4170),z=s(969),v=s(2683),C=s(647),g=s(6042),L=s(2643);s(2313);class Q{transform(d,r=0,p="B",w){if(!((0,O.ui)(d)&&(0,O.ui)(r)&&r%1==0&&r>=0))return d;let j=d,oe=p;for(;"B"!==oe;)j*=1024,oe=Q.formats[oe].prev;if(w){const Se=(0,O.YM)(Q.calculateResult(Q.formats[w],j),r);return Q.formatResult(Se,w)}for(const ve in Q.formats)if(Q.formats.hasOwnProperty(ve)){const Se=Q.formats[ve];if(j{class a{transform(r,p="px"){let Se="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(Le=>Le===p)&&(Se=p),"number"==typeof r?`${r}${Se}`:`${r}`}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:a,pure:!0}),a})(),Ee=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=o.oAB({type:a}),a.\u0275inj=o.cJS({imports:[[m.ez]]}),a})();var Te=s(655),Y=s(1159),le=s(226),$=s(4832);const ee=["nz-modal-close",""];function _e(a,d){if(1&a&&(o.ynx(0),o._UZ(1,"i",2),o.BQk()),2&a){const r=d.$implicit;o.xp6(1),o.Q6J("nzType",r)}}const te=["modalElement"];function re(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function B(a,d){if(1&a&&(o.ynx(0),o._UZ(1,"span",17),o.BQk()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}function ne(a,d){}function k(a,d){if(1&a&&o._UZ(0,"div",17),2&a){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function ie(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCancel()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw();o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function K(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){return o.CHM(r),o.oxw().onOk()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw();o.Q6J("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled)("nzDanger",r.config.nzOkDanger),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}const ze=["nz-modal-title",""];function Me(a,d){if(1&a&&(o.ynx(0),o._UZ(1,"div",2),o.BQk()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}const Pe=["nz-modal-footer",""];function Ue(a,d){if(1&a&&o._UZ(0,"div",5),2&a){const r=o.oxw(3);o.Q6J("innerHTML",r.config.nzFooter,o.oJD)}}function Qe(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",7),o.NdJ("click",function(){const j=o.CHM(r).$implicit;return o.oxw(4).onButtonClick(j)}),o._uU(1),o.qZA()}if(2&a){const r=d.$implicit,p=o.oxw(4);o.Q6J("hidden",!p.getButtonCallableProp(r,"show"))("nzLoading",p.getButtonCallableProp(r,"loading"))("disabled",p.getButtonCallableProp(r,"disabled"))("nzType",r.type)("nzDanger",r.danger)("nzShape",r.shape)("nzSize",r.size)("nzGhost",r.ghost),o.xp6(1),o.hij(" ",r.label," ")}}function Ge(a,d){if(1&a&&(o.ynx(0),o.YNc(1,Qe,2,9,"button",6),o.BQk()),2&a){const r=o.oxw(3);o.xp6(1),o.Q6J("ngForOf",r.buttons)}}function rt(a,d){if(1&a&&(o.ynx(0),o.YNc(1,Ue,1,1,"div",3),o.YNc(2,Ge,2,1,"ng-container",4),o.BQk()),2&a){const r=o.oxw(2);o.xp6(1),o.Q6J("ngIf",!r.buttonsFooter),o.xp6(1),o.Q6J("ngIf",r.buttonsFooter)}}const tt=function(a,d){return{$implicit:a,modalRef:d}};function ke(a,d){if(1&a&&(o.ynx(0),o.YNc(1,rt,3,2,"ng-container",2),o.BQk()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",r.config.nzFooter)("nzStringTemplateOutletContext",o.WLB(2,tt,r.config.nzComponentParams,r.modalRef))}}function et(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onCancel()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw(2);o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function nt(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",11),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onOk()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw(2);o.Q6J("nzType",r.config.nzOkType)("nzDanger",r.config.nzOkDanger)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}function He(a,d){if(1&a&&(o.YNc(0,et,2,4,"button",8),o.YNc(1,nt,2,6,"button",9)),2&a){const r=o.oxw();o.Q6J("ngIf",null!==r.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==r.config.nzOkText)}}function mt(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function pt(a,d){1&a&&o._UZ(0,"div",10)}function ht(a,d){}function ut(a,d){if(1&a&&o._UZ(0,"div",11),2&a){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function H(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"div",12),o.NdJ("cancelTriggered",function(){return o.CHM(r),o.oxw().onCloseClick()})("okTriggered",function(){return o.CHM(r),o.oxw().onOkClick()}),o.qZA()}if(2&a){const r=o.oxw();o.Q6J("modalRef",r.modalRef)}}const q=()=>{};class fe{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=q,this.nzOnOk=q,this.nzIconType="question-circle"}}const se="ant-modal-mask",Oe="modal",we={modalContainer:(0,T.X$)("modalContainer",[(0,T.SB)("void, exit",(0,T.oB)({})),(0,T.SB)("enter",(0,T.oB)({})),(0,T.eR)("* => enter",(0,T.jt)(".24s",(0,T.oB)({}))),(0,T.eR)("* => void, * => exit",(0,T.jt)(".2s",(0,T.oB)({})))])};function Re(a,d,r){return void 0===a?void 0===d?r:d:a}function Ne(a){const{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:w,nzOkLoading:j,nzOkDisabled:oe,nzCancelDisabled:ve,nzCancelLoading:Se,nzKeyboard:Le,nzNoAnimation:ot,nzContent:ct,nzComponentParams:St,nzFooter:At,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:xt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Mt,nzOkText:Dt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Ut,nzOnOk:Qt,nzOnCancel:Vt,nzAfterOpen:Nt,nzAfterClose:Yt,nzCloseOnNavigation:Jt,nzAutofocus:jt}=a;return{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:w,nzOkLoading:j,nzOkDisabled:oe,nzCancelDisabled:ve,nzCancelLoading:Se,nzKeyboard:Le,nzNoAnimation:ot,nzContent:ct,nzComponentParams:St,nzFooter:At,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:xt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Mt,nzOkText:Dt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Ut,nzOnOk:Qt,nzOnCancel:Vt,nzAfterOpen:Nt,nzAfterClose:Yt,nzCloseOnNavigation:Jt,nzAutofocus:jt}}function ye(){throw Error("Attempting to attach modal content after content is already attached")}let Ve=(()=>{class a extends n.en{constructor(r,p,w,j,oe,ve,Se,Le,ot,ct){super(),this.ngZone=r,this.host=p,this.focusTrapFactory=w,this.cdr=j,this.render=oe,this.overlayRef=ve,this.nzConfigService=Se,this.config=Le,this.animationType=ct,this.animationStateChanged=new o.vpe,this.containerClick=new o.vpe,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new h.xQ,this.document=ot,this.dir=ve.getDirection(),this.isStringContent="string"==typeof Le.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Oe).pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const r=this.nzConfigService.getConfigForComponent(Oe)||{};return!!Re(this.config.nzMask,r.nzMask,!0)}get maskClosable(){const r=this.nzConfigService.getConfigForComponent(Oe)||{};return!!Re(this.config.nzMaskClosable,r.nzMaskClosable,!0)}onContainerClick(r){r.target===r.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(r){return this.portalOutlet.hasAttached()&&ye(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(r)}attachTemplatePortal(r){return this.portalOutlet.hasAttached()&&ye(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(r)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const r=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const p=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),w=(0,O.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(r,"transform-origin",`${w.left+p.width/2-r.offsetLeft}px ${w.top+p.height/2-r.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const r=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const p=this.document.activeElement;p!==r&&!r.contains(p)&&r.focus()}}restoreFocus(){const r=this.elementFocusedBeforeModalWasOpened;if(r&&"function"==typeof r.focus){const p=this.document.activeElement,w=this.host.nativeElement;(!p||p===this.document.body||p===w||w.contains(p))&&r.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const r=this.modalElementRef.nativeElement,p=this.overlayRef.backdropElement;r.classList.add("ant-zoom-enter"),r.classList.add("ant-zoom-enter-active"),p&&(p.classList.add("ant-fade-enter"),p.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const r=this.modalElementRef.nativeElement;r.classList.add("ant-zoom-leave"),r.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(r=!1){const p=this.overlayRef.backdropElement;if(p){if(this.animationDisabled()||r)return void p.classList.remove(se);p.classList.add("ant-fade-leave"),p.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const r=this.overlayRef.backdropElement,p=this.modalElementRef.nativeElement;r&&(r.classList.remove("ant-fade-enter"),r.classList.remove("ant-fade-enter-active")),p.classList.remove("ant-zoom-enter"),p.classList.remove("ant-zoom-enter-active"),p.classList.remove("ant-zoom-leave"),p.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const r=this.overlayRef.backdropElement;r&&(0,O.DX)(this.config.nzZIndex)&&this.render.setStyle(r,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const r=this.overlayRef.backdropElement;if(r&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(w=>{this.render.removeStyle(r,w)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const p=Object.assign({},this.config.nzMaskStyle);Object.keys(p).forEach(w=>{this.render.setStyle(r,w,p[w])}),this.oldMaskStyle=p}}updateMaskClassname(){const r=this.overlayRef.backdropElement;r&&(this.showMask?r.classList.add(se):r.classList.remove(se))}onAnimationDone(r){"enter"===r.toState?this.trapFocus():"exit"===r.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(r)}onAnimationStart(r){"enter"===r.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===r.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(r)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(r){this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"mouseup").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,e.R)(r.nativeElement,"mousedown").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return a.\u0275fac=function(r){o.$Z()},a.\u0275dir=o.lG2({type:a,features:[o.qOj]}),a})(),Ze=(()=>{class a{constructor(r){this.config=r}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(fe))},a.\u0275cmp=o.Xpm({type:a,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:ee,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(r,p){1&r&&(o.TgZ(0,"span",0),o.YNc(1,_e,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzCloseIcon))},directives:[z.f,v.w,C.Ls],encapsulation:2,changeDetection:0}),a})(),$e=(()=>{class a extends Ve{constructor(r,p,w,j,oe,ve,Se,Le,ot,ct,St){super(r,w,j,oe,ve,Se,Le,ot,ct,St),this.i18n=p,this.config=ot,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.R0b),o.Y36(N.wi),o.Y36(o.SBq),o.Y36(P.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(t.Iu),o.Y36(M.jY),o.Y36(fe),o.Y36(m.K0,8),o.Y36(E.Qb,8))},a.\u0275cmp=o.Xpm({type:a,selectors:[["nz-modal-confirm-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(n.Pl,7),o.Gf(te,7)),2&r){let w;o.iGM(w=o.CRH())&&(p.portalOutlet=w.first),o.iGM(w=o.CRH())&&(p.modalElementRef=w.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(j){return p.onAnimationStart(j)})("@modalContainer.done",function(j){return p.onAnimationDone(j)}),o.NdJ("click",function(j){return p.onContainerClick(j)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[o.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,re,1,0,"button",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o._UZ(8,"i",7),o.TgZ(9,"span",8),o.YNc(10,B,2,1,"ng-container",9),o.qZA(),o.TgZ(11,"div",10),o.YNc(12,ne,0,0,"ng-template",11),o.YNc(13,k,1,1,"div",12),o.qZA(),o.qZA(),o.TgZ(14,"div",13),o.YNc(15,ie,2,4,"button",14),o.YNc(16,K,2,6,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,11,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(3),o.Q6J("nzType",p.config.nzIconType),o.xp6(2),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle),o.xp6(3),o.Q6J("ngIf",p.isStringContent),o.xp6(2),o.Q6J("ngIf",null!==p.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzOkText))},directives:[Ze,g.ix,m.mk,m.PC,m.O5,v.w,C.Ls,z.f,n.Pl,L.dQ],pipes:[I],encapsulation:2,data:{animation:[we.modalContainer]}}),a})(),Ye=(()=>{class a{constructor(r){this.config=r}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(fe))},a.\u0275cmp=o.Xpm({type:a,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:ze,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0),o.YNc(1,Me,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle))},directives:[z.f],encapsulation:2,changeDetection:0}),a})(),Xe=(()=>{class a{constructor(r,p){this.i18n=r,this.config=p,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.destroy$=new h.xQ,Array.isArray(p.nzFooter)&&(this.buttonsFooter=!0,this.buttons=p.nzFooter.map(Ke)),this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(r,p){const w=r[p],j=this.modalRef.getContentComponent();return"function"==typeof w?w.apply(r,j&&[j]):w}onButtonClick(r){if(!this.getButtonCallableProp(r,"loading")){const w=this.getButtonCallableProp(r,"onClick");r.autoLoading&&(0,O.tI)(w)&&(r.loading=!0,w.then(()=>r.loading=!1).catch(j=>{throw r.loading=!1,j}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(N.wi),o.Y36(fe))},a.\u0275cmp=o.Xpm({type:a,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:Pe,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(r,p){if(1&r&&(o.YNc(0,ke,2,5,"ng-container",0),o.YNc(1,He,2,2,"ng-template",null,1,o.W1O)),2&r){const w=o.MAs(2);o.Q6J("ngIf",p.config.nzFooter)("ngIfElse",w)}},directives:[g.ix,m.O5,z.f,m.sg,L.dQ,v.w],encapsulation:2}),a})();function Ke(a){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},a)}let it=(()=>{class a extends Ve{constructor(r,p,w,j,oe,ve,Se,Le,ot,ct){super(r,p,w,j,oe,ve,Se,Le,ot,ct),this.config=Le}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(P.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(t.Iu),o.Y36(M.jY),o.Y36(fe),o.Y36(m.K0,8),o.Y36(E.Qb,8))},a.\u0275cmp=o.Xpm({type:a,selectors:[["nz-modal-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(n.Pl,7),o.Gf(te,7)),2&r){let w;o.iGM(w=o.CRH())&&(p.portalOutlet=w.first),o.iGM(w=o.CRH())&&(p.modalElementRef=w.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(j){return p.onAnimationStart(j)})("@modalContainer.done",function(j){return p.onAnimationDone(j)}),o.NdJ("click",function(j){return p.onContainerClick(j)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},exportAs:["nzModalContainer"],features:[o.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,mt,1,0,"button",3),o.YNc(5,pt,1,0,"div",4),o.TgZ(6,"div",5),o.YNc(7,ht,0,0,"ng-template",6),o.YNc(8,ut,1,1,"div",7),o.qZA(),o.YNc(9,H,1,1,"div",8),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,9,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngIf",p.config.nzTitle),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(2),o.Q6J("ngIf",p.isStringContent),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzFooter))},directives:[Ze,Ye,Xe,m.mk,m.PC,m.O5,n.Pl],pipes:[I],encapsulation:2,data:{animation:[we.modalContainer]}}),a})();class qe{constructor(d,r,p){this.overlayRef=d,this.config=r,this.containerInstance=p,this.componentInstance=null,this.state=0,this.afterClose=new h.xQ,this.afterOpen=new h.xQ,this.destroy$=new h.xQ,p.animationStateChanged.pipe((0,D.h)(w=>"done"===w.phaseName&&"enter"===w.toState),(0,F.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),r.nzAfterOpen instanceof o.vpe&&r.nzAfterOpen.emit()}),p.animationStateChanged.pipe((0,D.h)(w=>"done"===w.phaseName&&"exit"===w.toState),(0,F.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),p.containerClick.pipe((0,F.q)(1),(0,b.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),d.keydownEvents().pipe((0,D.h)(w=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&w.keyCode===Y.hY&&!(0,Y.Vb)(w))).subscribe(w=>{w.preventDefault(),this.trigger("cancel")}),p.cancelTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),p.okTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),d.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),r.nzAfterClose instanceof o.vpe&&r.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(d){this.close(d)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(d){0===this.state&&(this.result=d,this.containerInstance.animationStateChanged.pipe((0,D.h)(r=>"start"===r.phaseName),(0,F.q)(1)).subscribe(r=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},r.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(d){Object.assign(this.config,d),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(d){return(0,Te.mG)(this,void 0,void 0,function*(){const r={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[d],p={ok:"nzOkLoading",cancel:"nzCancelLoading"}[d];if(!this.config[p])if(r instanceof o.vpe)r.emit(this.getContentComponent());else if("function"==typeof r){const j=r(this.getContentComponent());if((0,O.tI)(j)){this.config[p]=!0;let oe=!1;try{oe=yield j}finally{this.config[p]=!1,this.closeWhitResult(oe)}}else this.closeWhitResult(j)}})}closeWhitResult(d){!1!==d&&this.close(d)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let Je=(()=>{class a{constructor(r,p,w,j,oe){this.overlay=r,this.injector=p,this.nzConfigService=w,this.parentModal=j,this.directionality=oe,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new h.xQ,this.afterAllClose=(0,y.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,R.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const r=this.parentModal;return r?r._afterAllClosed:this.afterAllClosedAtThisLevel}create(r){return this.open(r.nzContent,r)}closeAll(){this.closeModals(this.openModals)}confirm(r={},p="confirm"){return"nzFooter"in r&&(0,S.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in r||(r.nzWidth=416),"nzMaskClosable"in r||(r.nzMaskClosable=!1),r.nzModalType="confirm",r.nzClassName=`ant-modal-confirm ant-modal-confirm-${p} ${r.nzClassName||""}`,this.create(r)}info(r={}){return this.confirmFactory(r,"info")}success(r={}){return this.confirmFactory(r,"success")}error(r={}){return this.confirmFactory(r,"error")}warning(r={}){return this.confirmFactory(r,"warning")}open(r,p){const w=function Fe(a,d){return Object.assign(Object.assign({},d),a)}(p||{},new fe),j=this.createOverlay(w),oe=this.attachModalContainer(j,w),ve=this.attachModalContent(r,oe,j,w);return oe.modalRef=ve,this.openModals.push(ve),ve.afterClose.subscribe(()=>this.removeOpenModal(ve)),ve}removeOpenModal(r){const p=this.openModals.indexOf(r);p>-1&&(this.openModals.splice(p,1),this.openModals.length||this._afterAllClosed.next())}closeModals(r){let p=r.length;for(;p--;)r[p].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(r){const p=this.nzConfigService.getConfigForComponent(Oe)||{},w=new t.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Re(r.nzCloseOnNavigation,p.nzCloseOnNavigation,!0),direction:Re(r.nzDirection,p.nzDirection,this.directionality.value)});return Re(r.nzMask,p.nzMask,!0)&&(w.backdropClass=se),this.overlay.create(w)}attachModalContainer(r,p){const j=o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:t.Iu,useValue:r},{provide:fe,useValue:p}]}),ve=new n.C5("confirm"===p.nzModalType?$e:it,p.nzViewContainerRef,j);return r.attach(ve).instance}attachModalContent(r,p,w,j){const oe=new qe(w,j,p);if(r instanceof o.Rgc)p.attachTemplatePortal(new n.UE(r,null,{$implicit:j.nzComponentParams,modalRef:oe}));else if((0,O.DX)(r)&&"string"!=typeof r){const ve=this.createInjector(oe,j),Se=p.attachComponentPortal(new n.C5(r,j.nzViewContainerRef,ve));(function De(a,d){Object.assign(a,d)})(Se.instance,j.nzComponentParams),oe.componentInstance=Se.instance}else p.attachStringContent();return oe}createInjector(r,p){return o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:qe,useValue:r}]})}confirmFactory(r={},p){return"nzIconType"in r||(r.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[p]),"nzCancelText"in r||(r.nzCancelText=null),this.confirm(r,p)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return a.\u0275fac=function(r){return new(r||a)(o.LFG(t.aV),o.LFG(o.zs3),o.LFG(M.jY),o.LFG(a,12),o.LFG(le.Is,8))},a.\u0275prov=o.Yz7({token:a,factory:a.\u0275fac}),a})(),_t=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.Rgc))},a.\u0275dir=o.lG2({type:a,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),a})(),zt=(()=>{class a{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(qe,8),o.Y36(o.Rgc))},a.\u0275dir=o.lG2({type:a,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),a})(),Ot=(()=>{class a{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(qe,8),o.Y36(o.Rgc))},a.\u0275dir=o.lG2({type:a,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),a})(),bt=(()=>{class a{constructor(r,p,w){this.cdr=r,this.modal=p,this.viewContainerRef=w,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new o.vpe,this.nzOnCancel=new o.vpe,this.nzAfterOpen=new o.vpe,this.nzAfterClose=new o.vpe,this.nzVisibleChange=new o.vpe,this.modalRef=null,this.destroy$=new h.xQ}set modalTitle(r){r&&this.setTitleWithTemplate(r)}set modalFooter(r){r&&this.setFooterWithTemplate(r)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const r=this.getConfig();this.modalRef=this.modal.create(r),this.modalRef.afterClose.asObservable().pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(r){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(r),this.modalRef=null)}destroy(r){this.close(r)}triggerOk(){var r;null===(r=this.modalRef)||void 0===r||r.triggerOk()}triggerCancel(){var r;null===(r=this.modalRef)||void 0===r||r.triggerCancel()}getContentComponent(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getContentComponent()}getElement(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(r){this.nzTitle=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(r){this.nzFooter=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const r=Ne(this);return r.nzViewContainerRef=this.viewContainerRef,r.nzContent=this.nzContent||this.contentFromContentChild,r}ngOnChanges(r){const{nzVisible:p}=r,w=(0,Te._T)(r,["nzVisible"]);Object.keys(w).length&&this.modalRef&&this.modalRef.updateConfig(Ne(this)),p&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var r;null===(r=this.modalRef)||void 0===r||r._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.sBO),o.Y36(Je),o.Y36(o.s_b))},a.\u0275cmp=o.Xpm({type:a,selectors:[["nz-modal"]],contentQueries:function(r,p,w){if(1&r&&(o.Suo(w,Ot,7,o.Rgc),o.Suo(w,_t,7,o.Rgc),o.Suo(w,zt,7,o.Rgc)),2&r){let j;o.iGM(j=o.CRH())&&(p.modalTitle=j.first),o.iGM(j=o.CRH())&&(p.contentFromContentChild=j.first),o.iGM(j=o.CRH())&&(p.modalFooter=j.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[o.TTD],decls:0,vars:0,template:function(r,p){},encapsulation:2,changeDetection:0}),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzMask",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzMaskClosable",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCloseOnNavigation",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzVisible",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzClosable",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzOkLoading",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzOkDisabled",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCancelDisabled",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCancelLoading",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzKeyboard",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzNoAnimation",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCentered",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzOkDanger",void 0),a})(),_=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=o.oAB({type:a}),a.\u0275inj=o.cJS({providers:[Je],imports:[[m.ez,le.vT,t.U8,z.T,n.eL,N.YI,g.sL,C.PV,Ee,$.g,Ee]]}),a})()},3868:(X,x,s)=>{"use strict";s.d(x,{Bq:()=>T,Of:()=>N,Dg:()=>M,aF:()=>z});var t=s(5e3),n=s(655),o=s(4182),h=s(5647),e=s(8929),y=s(3753),b=s(7625),D=s(1721),F=s(226),R=s(5664),S=s(9808);const O=["*"],m=["inputElement"],E=["nz-radio",""];let T=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275dir=t.lG2({type:v,selectors:[["","nz-radio-button",""]]}),v})(),P=(()=>{class v{constructor(){this.selected$=new h.t(1),this.touched$=new e.xQ,this.disabled$=new h.t(1),this.name$=new h.t(1)}touch(){this.touched$.next()}select(g){this.selected$.next(g)}setDisabled(g){this.disabled$.next(g)}setName(g){this.name$.next(g)}}return v.\u0275fac=function(g){return new(g||v)},v.\u0275prov=t.Yz7({token:v,factory:v.\u0275fac}),v})(),M=(()=>{class v{constructor(g,L,J){this.cdr=g,this.nzRadioService=L,this.directionality=J,this.value=null,this.destroy$=new e.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var g;this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(L=>{this.value!==L&&(this.value=L,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,b.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(g=this.directionality.change)||void 0===g||g.pipe((0,b.R)(this.destroy$)).subscribe(L=>{this.dir=L,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(g){const{nzDisabled:L,nzName:J}=g;L&&this.nzRadioService.setDisabled(this.nzDisabled),J&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(g){this.value=g,this.nzRadioService.select(g),this.cdr.markForCheck()}registerOnChange(g){this.onChange=g}registerOnTouched(g){this.onTouched=g}setDisabledState(g){this.nzDisabled=g,this.nzRadioService.setDisabled(g),this.cdr.markForCheck()}}return v.\u0275fac=function(g){return new(g||v)(t.Y36(t.sBO),t.Y36(P),t.Y36(F.Is,8))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(g,L){2&g&&t.ekj("ant-radio-group-large","large"===L.nzSize)("ant-radio-group-small","small"===L.nzSize)("ant-radio-group-solid","solid"===L.nzButtonStyle)("ant-radio-group-rtl","rtl"===L.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[t._Bn([P,{provide:o.JU,useExisting:(0,t.Gpc)(()=>v),multi:!0}]),t.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(g,L){1&g&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,n.gn)([(0,D.yF)()],v.prototype,"nzDisabled",void 0),v})(),N=(()=>{class v{constructor(g,L,J,Z,Q,I,U){this.ngZone=g,this.elementRef=L,this.cdr=J,this.focusMonitor=Z,this.directionality=Q,this.nzRadioService=I,this.nzRadioButtonDirective=U,this.isNgModel=!1,this.destroy$=new e.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(g){this.nzDisabled=g,this.cdr.markForCheck()}writeValue(g){this.isChecked=g,this.cdr.markForCheck()}registerOnChange(g){this.isNgModel=!0,this.onChange=g}registerOnTouched(g){this.onTouched=g}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,b.R)(this.destroy$)).subscribe(g=>{this.name=g,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,b.R)(this.destroy$)).subscribe(g=>{this.nzDisabled=g,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(g=>{this.isChecked=this.nzValue===g,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(g=>{g||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,y.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(g=>{g.stopPropagation(),g.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return v.\u0275fac=function(g){return new(g||v)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(R.tE),t.Y36(F.Is,8),t.Y36(P,8),t.Y36(T,8))},v.\u0275cmp=t.Xpm({type:v,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(g,L){if(1&g&&t.Gf(m,5),2&g){let J;t.iGM(J=t.CRH())&&(L.inputElement=J.first)}},hostVars:16,hostBindings:function(g,L){2&g&&t.ekj("ant-radio-wrapper",!L.isRadioButton)("ant-radio-button-wrapper",L.isRadioButton)("ant-radio-wrapper-checked",L.isChecked&&!L.isRadioButton)("ant-radio-button-wrapper-checked",L.isChecked&&L.isRadioButton)("ant-radio-wrapper-disabled",L.nzDisabled&&!L.isRadioButton)("ant-radio-button-wrapper-disabled",L.nzDisabled&&L.isRadioButton)("ant-radio-wrapper-rtl",!L.isRadioButton&&"rtl"===L.dir)("ant-radio-button-wrapper-rtl",L.isRadioButton&&"rtl"===L.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[t._Bn([{provide:o.JU,useExisting:(0,t.Gpc)(()=>v),multi:!0}])],attrs:E,ngContentSelectors:O,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(g,L){1&g&&(t.F$t(),t.TgZ(0,"span"),t._UZ(1,"input",0,1),t._UZ(3,"span"),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&g&&(t.ekj("ant-radio",!L.isRadioButton)("ant-radio-checked",L.isChecked&&!L.isRadioButton)("ant-radio-disabled",L.nzDisabled&&!L.isRadioButton)("ant-radio-button",L.isRadioButton)("ant-radio-button-checked",L.isChecked&&L.isRadioButton)("ant-radio-button-disabled",L.nzDisabled&&L.isRadioButton),t.xp6(1),t.ekj("ant-radio-input",!L.isRadioButton)("ant-radio-button-input",L.isRadioButton),t.Q6J("disabled",L.nzDisabled)("checked",L.isChecked),t.uIk("autofocus",L.nzAutoFocus?"autofocus":null)("name",L.name),t.xp6(2),t.ekj("ant-radio-inner",!L.isRadioButton)("ant-radio-button-inner",L.isRadioButton))},encapsulation:2,changeDetection:0}),(0,n.gn)([(0,D.yF)()],v.prototype,"nzDisabled",void 0),(0,n.gn)([(0,D.yF)()],v.prototype,"nzAutoFocus",void 0),v})(),z=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[[F.vT,S.ez,o.u5]]}),v})()},5197:(X,x,s)=>{"use strict";s.d(x,{Ip:()=>$e,Vq:()=>Ot,LV:()=>bt});var t=s(5e3),n=s(8929),o=s(3753),h=s(591),e=s(6053),y=s(6787),b=s(3393),D=s(685),F=s(969),R=s(9808),S=s(647),O=s(2683),m=s(655),E=s(1059),T=s(7625),P=s(7545),M=s(4090),N=s(1721),z=s(1159),v=s(2845),C=s(4182),g=s(8076),L=s(9439);const J=["moz","ms","webkit"];function I(_){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(_);const V=J.filter(a=>`${a}CancelAnimationFrame`in window||`${a}CancelRequestAnimationFrame`in window)[0];return V?(window[`${V}CancelAnimationFrame`]||window[`${V}CancelRequestAnimationFrame`]).call(this,_):clearTimeout(_)}const U=function Q(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const _=J.filter(V=>`${V}RequestAnimationFrame`in window)[0];return _?window[`${_}RequestAnimationFrame`]:function Z(){let _=0;return function(V){const a=(new Date).getTime(),d=Math.max(0,16-(a-_)),r=setTimeout(()=>{V(a+d)},d);return _=a+d,r}}()}();var ae=s(5664),pe=s(4832),me=s(925),be=s(226),Ee=s(6950),Te=s(4170);const Y=["*"];function le(_,V){if(1&_&&(t.ynx(0),t._uU(1),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.Oqu(a.nzLabel)}}function $(_,V){if(1&_&&(t.ynx(0),t._uU(1),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.Oqu(a.label)}}function ee(_,V){}function _e(_,V){if(1&_&&(t.ynx(0),t.YNc(1,ee,0,0,"ng-template",3),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",a.template)}}function te(_,V){1&_&&t._UZ(0,"i",6)}function re(_,V){if(1&_&&(t.TgZ(0,"div",4),t.YNc(1,te,1,0,"i",5),t.qZA()),2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngIf",!a.icon)("ngIfElse",a.icon)}}function B(_,V){if(1&_&&(t.TgZ(0,"div",4),t._UZ(1,"nz-embed-empty",5),t.qZA()),2&_){const a=t.oxw();t.xp6(1),t.Q6J("specificContent",a.notFoundContent)}}function ne(_,V){if(1&_&&t._UZ(0,"nz-option-item-group",9),2&_){const a=t.oxw().$implicit;t.Q6J("nzLabel",a.groupLabel)}}function k(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-option-item",10),t.NdJ("itemHover",function(r){return t.CHM(a),t.oxw(2).onItemHover(r)})("itemClick",function(r){return t.CHM(a),t.oxw(2).onItemClick(r)}),t.qZA()}if(2&_){const a=t.oxw().$implicit,d=t.oxw();t.Q6J("icon",d.menuItemSelectedIcon)("customContent",a.nzCustomContent)("template",a.template)("grouped",!!a.groupLabel)("disabled",a.nzDisabled)("showState","tags"===d.mode||"multiple"===d.mode)("label",a.nzLabel)("compareWith",d.compareWith)("activatedValue",d.activatedValue)("listOfSelectedValue",d.listOfSelectedValue)("value",a.nzValue)}}function ie(_,V){1&_&&(t.ynx(0,6),t.YNc(1,ne,1,1,"nz-option-item-group",7),t.YNc(2,k,1,11,"nz-option-item",8),t.BQk()),2&_&&(t.Q6J("ngSwitch",V.$implicit.type),t.xp6(1),t.Q6J("ngSwitchCase","group"),t.xp6(1),t.Q6J("ngSwitchCase","item"))}function K(_,V){}function ze(_,V){1&_&&t.Hsn(0)}const Me=["inputElement"],Pe=["mirrorElement"];function Ue(_,V){1&_&&t._UZ(0,"span",3,4)}function Qe(_,V){if(1&_&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&_){const a=t.oxw(2);t.xp6(1),t.Oqu(a.label)}}function Ge(_,V){if(1&_&&t._uU(0),2&_){const a=t.oxw(2);t.Oqu(a.label)}}function rt(_,V){if(1&_&&(t.ynx(0),t.YNc(1,Qe,2,1,"div",2),t.YNc(2,Ge,1,1,"ng-template",null,3,t.W1O),t.BQk()),2&_){const a=t.MAs(3),d=t.oxw();t.xp6(1),t.Q6J("ngIf",d.deletable)("ngIfElse",a)}}function tt(_,V){1&_&&t._UZ(0,"i",7)}function ke(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"span",5),t.NdJ("click",function(r){return t.CHM(a),t.oxw().onDelete(r)}),t.YNc(1,tt,1,0,"i",6),t.qZA()}if(2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngIf",!a.removeIcon)("ngIfElse",a.removeIcon)}}const et=function(_){return{$implicit:_}};function nt(_,V){if(1&_&&(t.ynx(0),t._uU(1),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.hij(" ",a.placeholder," ")}}function He(_,V){if(1&_&&t._UZ(0,"nz-select-item",6),2&_){const a=t.oxw(2);t.Q6J("deletable",!1)("disabled",!1)("removeIcon",a.removeIcon)("label",a.listOfTopItem[0].nzLabel)("contentTemplateOutlet",a.customTemplate)("contentTemplateOutletContext",a.listOfTopItem[0])}}function mt(_,V){if(1&_){const a=t.EpF();t.ynx(0),t.TgZ(1,"nz-select-search",4),t.NdJ("isComposingChange",function(r){return t.CHM(a),t.oxw().isComposingChange(r)})("valueChange",function(r){return t.CHM(a),t.oxw().onInputValueChange(r)}),t.qZA(),t.YNc(2,He,1,6,"nz-select-item",5),t.BQk()}if(2&_){const a=t.oxw();t.xp6(1),t.Q6J("nzId",a.nzId)("disabled",a.disabled)("value",a.inputValue)("showInput",a.showSearch)("mirrorSync",!1)("autofocus",a.autofocus)("focusTrigger",a.open),t.xp6(1),t.Q6J("ngIf",a.isShowSingleLabel)}}function pt(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-select-item",9),t.NdJ("delete",function(){const p=t.CHM(a).$implicit;return t.oxw(2).onDeleteItem(p.contentTemplateOutletContext)}),t.qZA()}if(2&_){const a=V.$implicit,d=t.oxw(2);t.Q6J("removeIcon",d.removeIcon)("label",a.nzLabel)("disabled",a.nzDisabled||d.disabled)("contentTemplateOutlet",a.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",a.contentTemplateOutletContext)}}function ht(_,V){if(1&_){const a=t.EpF();t.ynx(0),t.YNc(1,pt,1,6,"nz-select-item",7),t.TgZ(2,"nz-select-search",8),t.NdJ("isComposingChange",function(r){return t.CHM(a),t.oxw().isComposingChange(r)})("valueChange",function(r){return t.CHM(a),t.oxw().onInputValueChange(r)}),t.qZA(),t.BQk()}if(2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngForOf",a.listOfSlicedItem)("ngForTrackBy",a.trackValue),t.xp6(1),t.Q6J("nzId",a.nzId)("disabled",a.disabled)("value",a.inputValue)("autofocus",a.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",a.open)}}function ut(_,V){if(1&_&&t._UZ(0,"nz-select-placeholder",10),2&_){const a=t.oxw();t.Q6J("placeholder",a.placeHolder)}}function H(_,V){1&_&&t._UZ(0,"i",2)}function q(_,V){1&_&&t._UZ(0,"i",7)}function fe(_,V){1&_&&t._UZ(0,"i",8)}function ge(_,V){if(1&_&&(t.ynx(0),t.YNc(1,q,1,0,"i",5),t.YNc(2,fe,1,0,"i",6),t.BQk()),2&_){const a=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!a.search),t.xp6(1),t.Q6J("ngIf",a.search)}}function Ie(_,V){if(1&_&&(t.ynx(0),t._UZ(1,"i",10),t.BQk()),2&_){const a=V.$implicit;t.xp6(1),t.Q6J("nzType",a)}}function se(_,V){if(1&_&&t.YNc(0,Ie,2,1,"ng-container",9),2&_){const a=t.oxw(2);t.Q6J("nzStringTemplateOutlet",a.suffixIcon)}}function Oe(_,V){if(1&_&&(t.YNc(0,ge,3,2,"ng-container",3),t.YNc(1,se,1,1,"ng-template",null,4,t.W1O)),2&_){const a=t.MAs(2),d=t.oxw();t.Q6J("ngIf",!d.suffixIcon)("ngIfElse",a)}}function we(_,V){1&_&&t._UZ(0,"i",1)}function Fe(_,V){if(1&_&&t._UZ(0,"nz-select-arrow",5),2&_){const a=t.oxw();t.Q6J("loading",a.nzLoading)("search",a.nzOpen&&a.nzShowSearch)("suffixIcon",a.nzSuffixIcon)}}function Re(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-select-clear",6),t.NdJ("clear",function(){return t.CHM(a),t.oxw().onClearSelection()}),t.qZA()}if(2&_){const a=t.oxw();t.Q6J("clearIcon",a.nzClearIcon)}}function De(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-option-container",7),t.NdJ("keydown",function(r){return t.CHM(a),t.oxw().onKeyDown(r)})("itemClick",function(r){return t.CHM(a),t.oxw().onItemClick(r)})("scrollToBottom",function(){return t.CHM(a),t.oxw().nzScrollToBottom.emit()}),t.qZA()}if(2&_){const a=t.oxw();t.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===a.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===a.dropDownPosition),t.Q6J("ngStyle",a.nzDropdownStyle)("itemSize",a.nzOptionHeightPx)("maxItemLength",a.nzOptionOverflowSize)("matchWidth",a.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==a.noAnimation?null:a.noAnimation.nzNoAnimation)("nzNoAnimation",null==a.noAnimation?null:a.noAnimation.nzNoAnimation)("listOfContainerItem",a.listOfContainerItem)("menuItemSelectedIcon",a.nzMenuItemSelectedIcon)("notFoundContent",a.nzNotFoundContent)("activatedValue",a.activatedValue)("listOfSelectedValue",a.listOfValue)("dropdownRender",a.nzDropdownRender)("compareWith",a.compareWith)("mode",a.nzMode)}}let Ne=(()=>{class _{constructor(){this.nzLabel=null,this.changes=new n.xQ}ngOnChanges(){this.changes.next()}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[t.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(a,d){1&a&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),_})(),ye=(()=>{class _{constructor(){this.nzLabel=null}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(a,d){1&a&&t.YNc(0,le,2,1,"ng-container",0),2&a&&t.Q6J("nzStringTemplateOutlet",d.nzLabel)},directives:[F.f],encapsulation:2,changeDetection:0}),_})(),Ve=(()=>{class _{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new t.vpe,this.itemHover=new t.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(a){const{value:d,activatedValue:r,listOfSelectedValue:p}=a;(d||p)&&(this.selected=this.listOfSelectedValue.some(w=>this.compareWith(w,this.value))),(d||r)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(a,d){1&a&&t.NdJ("mouseenter",function(){return d.onHostMouseEnter()})("click",function(){return d.onHostClick()}),2&a&&(t.uIk("title",d.label),t.ekj("ant-select-item-option-grouped",d.grouped)("ant-select-item-option-selected",d.selected&&!d.disabled)("ant-select-item-option-disabled",d.disabled)("ant-select-item-option-active",d.activated&&!d.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[t.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(a,d){1&a&&(t.TgZ(0,"div",0),t.YNc(1,$,2,1,"ng-container",1),t.YNc(2,_e,2,1,"ng-container",1),t.qZA(),t.YNc(3,re,2,2,"div",2)),2&a&&(t.xp6(1),t.Q6J("ngIf",!d.customContent),t.xp6(1),t.Q6J("ngIf",d.customContent),t.xp6(1),t.Q6J("ngIf",d.showState&&d.selected))},directives:[R.O5,R.tP,S.Ls,O.w],encapsulation:2,changeDetection:0}),_})(),Ze=(()=>{class _{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new t.vpe,this.scrollToBottom=new t.vpe,this.scrolledIndex=0}onItemClick(a){this.itemClick.emit(a)}onItemHover(a){this.activatedValue=a}trackValue(a,d){return d.key}onScrolledIndexChange(a){this.scrolledIndex=a,a===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const a=this.listOfContainerItem.findIndex(d=>this.compareWith(d.key,this.activatedValue));(a=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(a||0)}ngOnChanges(a){const{listOfContainerItem:d,activatedValue:r}=a;(d||r)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-container"]],viewQuery:function(a,d){if(1&a&&t.Gf(b.N7,7),2&a){let r;t.iGM(r=t.CRH())&&(d.cdkVirtualScrollViewport=r.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[t.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(a,d){1&a&&(t.TgZ(0,"div"),t.YNc(1,B,2,1,"div",0),t.TgZ(2,"cdk-virtual-scroll-viewport",1),t.NdJ("scrolledIndexChange",function(p){return d.onScrolledIndexChange(p)}),t.YNc(3,ie,3,3,"ng-template",2),t.qZA(),t.YNc(4,K,0,0,"ng-template",3),t.qZA()),2&a&&(t.xp6(1),t.Q6J("ngIf",0===d.listOfContainerItem.length),t.xp6(1),t.Udp("height",d.listOfContainerItem.length*d.itemSize,"px")("max-height",d.itemSize*d.maxItemLength,"px"),t.ekj("full-width",!d.matchWidth),t.Q6J("itemSize",d.itemSize)("maxBufferPx",d.itemSize*d.maxItemLength)("minBufferPx",d.itemSize*d.maxItemLength),t.xp6(1),t.Q6J("cdkVirtualForOf",d.listOfContainerItem)("cdkVirtualForTrackBy",d.trackValue)("cdkVirtualForTemplateCacheSize",0),t.xp6(1),t.Q6J("ngTemplateOutlet",d.dropdownRender))},directives:[D.gB,b.N7,ye,Ve,R.O5,b.xd,b.x0,R.RF,R.n9,R.tP],encapsulation:2,changeDetection:0}),_})(),$e=(()=>{class _{constructor(a,d){this.nzOptionGroupComponent=a,this.destroy$=d,this.changes=new n.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,E.O)(!0),(0,T.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(Ne,8),t.Y36(M.kn))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option"]],viewQuery:function(a,d){if(1&a&&t.Gf(t.Rgc,7),2&a){let r;t.iGM(r=t.CRH())&&(d.template=r.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[t._Bn([M.kn]),t.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(a,d){1&a&&(t.F$t(),t.YNc(0,ze,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,m.gn)([(0,N.yF)()],_.prototype,"nzDisabled",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzHide",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzCustomContent",void 0),_})(),Ye=(()=>{class _{constructor(a,d,r){this.elementRef=a,this.renderer=d,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.vpe,this.isComposingChange=new t.vpe}setCompositionState(a){this.isComposingChange.next(a)}onValueChange(a){this.value=a,this.valueChange.next(a),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const a=this.mirrorElement.nativeElement,d=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(d,"width"),a.innerHTML=this.renderer.createText(`${r.value} `),this.renderer.setStyle(d,"width",`${a.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(a){const d=this.inputElement.nativeElement,{focusTrigger:r,showInput:p}=a;p&&(this.showInput?this.renderer.removeAttribute(d,"readonly"):this.renderer.setAttribute(d,"readonly","readonly")),r&&!0===r.currentValue&&!1===r.previousValue&&d.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(ae.tE))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-search"]],viewQuery:function(a,d){if(1&a&&(t.Gf(Me,7),t.Gf(Pe,5)),2&a){let r;t.iGM(r=t.CRH())&&(d.inputElement=r.first),t.iGM(r=t.CRH())&&(d.mirrorElement=r.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[t._Bn([{provide:C.ve,useValue:!1}]),t.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(a,d){1&a&&(t.TgZ(0,"input",0,1),t.NdJ("ngModelChange",function(p){return d.onValueChange(p)})("compositionstart",function(){return d.setCompositionState(!0)})("compositionend",function(){return d.setCompositionState(!1)}),t.qZA(),t.YNc(2,Ue,2,0,"span",2)),2&a&&(t.Udp("opacity",d.showInput?null:0),t.Q6J("ngModel",d.value)("disabled",d.disabled),t.uIk("id",d.nzId)("autofocus",d.autofocus?"autofocus":null),t.xp6(2),t.Q6J("ngIf",d.mirrorSync))},directives:[C.Fj,C.JJ,C.On,R.O5],encapsulation:2,changeDetection:0}),_})(),Xe=(()=>{class _{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.vpe}onDelete(a){a.preventDefault(),a.stopPropagation(),this.disabled||this.delete.next(a)}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(a,d){2&a&&(t.uIk("title",d.label),t.ekj("ant-select-selection-item-disabled",d.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(a,d){1&a&&(t.YNc(0,rt,4,2,"ng-container",0),t.YNc(1,ke,2,2,"span",1)),2&a&&(t.Q6J("nzStringTemplateOutlet",d.contentTemplateOutlet)("nzStringTemplateOutletContext",t.VKq(3,et,d.contentTemplateOutletContext)),t.xp6(1),t.Q6J("ngIf",d.deletable&&!d.disabled))},directives:[F.f,R.O5,S.Ls,O.w],encapsulation:2,changeDetection:0}),_})(),Ke=(()=>{class _{constructor(){this.placeholder=null}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(a,d){1&a&&t.YNc(0,nt,2,1,"ng-container",0),2&a&&t.Q6J("nzStringTemplateOutlet",d.placeholder)},directives:[F.f],encapsulation:2,changeDetection:0}),_})(),it=(()=>{class _{constructor(a,d,r){this.elementRef=a,this.ngZone=d,this.noAnimation=r,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new t.vpe,this.inputValueChange=new t.vpe,this.deleteItem=new t.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new n.xQ}updateTemplateVariable(){const a=0===this.listOfTopItem.length;this.isShowPlaceholder=a&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!a&&!this.isComposing&&!this.inputValue}isComposingChange(a){this.isComposing=a,this.updateTemplateVariable()}onInputValueChange(a){a!==this.inputValue&&(this.inputValue=a,this.updateTemplateVariable(),this.inputValueChange.emit(a),this.tokenSeparate(a,this.tokenSeparators))}tokenSeparate(a,d){if(a&&a.length&&d.length&&"default"!==this.mode&&((w,j)=>{for(let oe=0;oe0)return!0;return!1})(a,d)){const w=((w,j)=>{const oe=new RegExp(`[${j.join()}]`),ve=w.split(oe).filter(Se=>Se);return[...new Set(ve)]})(a,d);this.tokenize.next(w)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(a,d){return d.nzValue}onDeleteItem(a){!this.disabled&&!a.nzDisabled&&this.deleteItem.next(a)}ngOnChanges(a){const{listOfTopItem:d,maxTagCount:r,customTemplate:p,maxTagPlaceholder:w}=a;if(d&&this.updateTemplateVariable(),d||r||p||w){const j=this.listOfTopItem.slice(0,this.maxTagCount).map(oe=>({nzLabel:oe.nzLabel,nzValue:oe.nzValue,nzDisabled:oe.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:oe}));if(this.listOfTopItem.length>this.maxTagCount){const oe=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,ve=this.listOfTopItem.map(Le=>Le.nzValue),Se={nzLabel:oe,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:ve.slice(this.maxTagCount)};j.push(Se)}this.listOfSlicedItem=j}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,o.R)(this.elementRef.nativeElement,"click").pipe((0,T.R)(this.destroy$)).subscribe(a=>{a.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,o.R)(this.elementRef.nativeElement,"keydown").pipe((0,T.R)(this.destroy$)).subscribe(a=>{if(a.target instanceof HTMLInputElement){const d=a.target.value;a.keyCode===z.ZH&&"default"!==this.mode&&!d&&this.listOfTopItem.length>0&&(a.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(pe.P,9))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-top-control"]],viewQuery:function(a,d){if(1&a&&t.Gf(Ye,5),2&a){let r;t.iGM(r=t.CRH())&&(d.nzSelectSearchComponent=r.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[t.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(a,d){1&a&&(t.ynx(0,0),t.YNc(1,mt,3,8,"ng-container",1),t.YNc(2,ht,3,9,"ng-container",2),t.BQk(),t.YNc(3,ut,1,1,"nz-select-placeholder",3)),2&a&&(t.Q6J("ngSwitch",d.mode),t.xp6(1),t.Q6J("ngSwitchCase","default"),t.xp6(2),t.Q6J("ngIf",d.isShowPlaceholder))},directives:[Ye,Xe,Ke,R.RF,R.n9,R.O5,R.ED,R.sg,O.w],encapsulation:2,changeDetection:0}),_})(),qe=(()=>{class _{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(a,d){2&a&&t.ekj("ant-select-arrow-loading",d.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(a,d){if(1&a&&(t.YNc(0,H,1,0,"i",0),t.YNc(1,Oe,3,2,"ng-template",null,1,t.W1O)),2&a){const r=t.MAs(2);t.Q6J("ngIf",d.loading)("ngIfElse",r)}},directives:[R.O5,S.Ls,O.w,F.f],encapsulation:2,changeDetection:0}),_})(),Je=(()=>{class _{constructor(){this.clearIcon=null,this.clear=new t.vpe}onClick(a){a.preventDefault(),a.stopPropagation(),this.clear.emit(a)}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(a,d){1&a&&t.NdJ("click",function(p){return d.onClick(p)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(a,d){1&a&&t.YNc(0,we,1,0,"i",0),2&a&&t.Q6J("ngIf",!d.clearIcon)("ngIfElse",d.clearIcon)},directives:[R.O5,S.Ls,O.w],encapsulation:2,changeDetection:0}),_})();const _t=(_,V)=>!(!V||!V.nzLabel)&&V.nzLabel.toString().toLowerCase().indexOf(_.toLowerCase())>-1;let Ot=(()=>{class _{constructor(a,d,r,p,w,j,oe,ve){this.destroy$=a,this.nzConfigService=d,this.cdr=r,this.elementRef=p,this.platform=w,this.focusMonitor=j,this.directionality=oe,this.noAnimation=ve,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=_t,this.compareWith=(Se,Le)=>Se===Le,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new t.vpe,this.nzScrollToBottom=new t.vpe,this.nzOpenChange=new t.vpe,this.nzBlur=new t.vpe,this.nzFocus=new t.vpe,this.listOfValue$=new h.X([]),this.listOfTemplateItem$=new h.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(a){this._nzShowArrow=a}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(a){return{nzValue:a,nzLabel:a,type:"item"}}onItemClick(a){if(this.activatedValue=a,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],a))&&this.updateListOfValue([a]),this.setOpenState(!1);else{const d=this.listOfValue.findIndex(r=>this.compareWith(r,a));if(-1!==d){const r=this.listOfValue.filter((p,w)=>w!==d);this.updateListOfValue(r)}else if(this.listOfValue.length!this.compareWith(r,a.nzValue));this.updateListOfValue(d),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let a=this.listOfTagAndTemplateItem.filter(p=>!p.nzHide).filter(p=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,p));if("tags"===this.nzMode&&this.searchValue){const p=this.listOfTagAndTemplateItem.find(w=>w.nzLabel===this.searchValue);if(p)this.activatedValue=p.nzValue;else{const w=this.generateTagItem(this.searchValue);a=[w,...a],this.activatedValue=w.nzValue}}const d=a.find(p=>this.compareWith(p.nzValue,this.listOfValue[0]))||a[0];this.activatedValue=d&&d.nzValue||null;let r=[];this.isReactiveDriven?r=[...new Set(this.nzOptions.filter(p=>p.groupLabel).map(p=>p.groupLabel))]:this.listOfNzOptionGroupComponent&&(r=this.listOfNzOptionGroupComponent.map(p=>p.nzLabel)),r.forEach(p=>{const w=a.findIndex(j=>p===j.groupLabel);w>-1&&a.splice(w,0,{groupLabel:p,type:"group",key:p})}),this.listOfContainerItem=[...a],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(a){const r=((p,w)=>"default"===this.nzMode?p.length>0?p[0]:null:p)(a);this.value!==r&&(this.listOfValue=a,this.listOfValue$.next(a),this.value=r,this.onChange(this.value))}onTokenSeparate(a){const d=this.listOfTagAndTemplateItem.filter(r=>-1!==a.findIndex(p=>p===r.nzLabel)).map(r=>r.nzValue).filter(r=>-1===this.listOfValue.findIndex(p=>this.compareWith(p,r)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...d]);else if("tags"===this.nzMode){const r=a.filter(p=>-1===this.listOfTagAndTemplateItem.findIndex(w=>w.nzLabel===p));this.updateListOfValue([...this.listOfValue,...d,...r])}this.clearInput()}onOverlayKeyDown(a){a.keyCode===z.hY&&this.setOpenState(!1)}onKeyDown(a){if(this.nzDisabled)return;const d=this.listOfContainerItem.filter(p=>"item"===p.type).filter(p=>!p.nzDisabled),r=d.findIndex(p=>this.compareWith(p.nzValue,this.activatedValue));switch(a.keyCode){case z.LH:a.preventDefault(),this.nzOpen&&(this.activatedValue=d[r>0?r-1:d.length-1].nzValue);break;case z.JH:a.preventDefault(),this.nzOpen?this.activatedValue=d[r{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,a!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){U(()=>{var a,d;null===(d=null===(a=this.cdkConnectedOverlay)||void 0===a?void 0:a.overlayRef)||void 0===d||d.updatePosition()})}writeValue(a){if(this.value!==a){this.value=a;const r=((p,w)=>null==p?[]:"default"===this.nzMode?[p]:p)(a);this.listOfValue=r,this.listOfValue$.next(r),this.cdr.markForCheck()}}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=a,a&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(a){const{nzOpen:d,nzDisabled:r,nzOptions:p}=a;if(d&&this.onOpenChange(),r&&this.nzDisabled&&this.setOpenState(!1),p){this.isReactiveDriven=!0;const j=(this.nzOptions||[]).map(oe=>({template:oe.label instanceof t.Rgc?oe.label:null,nzLabel:"string"==typeof oe.label||"number"==typeof oe.label?oe.label:null,nzValue:oe.value,nzDisabled:oe.disabled||!1,nzHide:oe.hide||!1,nzCustomContent:oe.label instanceof t.Rgc,groupLabel:oe.groupLabel||null,type:"item",key:oe.value}));this.listOfTemplateItem$.next(j)}}ngOnInit(){var a;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,T.R)(this.destroy$)).subscribe(d=>{d?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,e.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,T.R)(this.destroy$)).subscribe(([d,r])=>{const p=d.filter(()=>"tags"===this.nzMode).filter(w=>-1===r.findIndex(j=>this.compareWith(j.nzValue,w))).map(w=>this.listOfTopItem.find(j=>this.compareWith(j.nzValue,w))||this.generateTagItem(w));this.listOfTagAndTemplateItem=[...r,...p],this.listOfTopItem=this.listOfValue.map(w=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(j=>this.compareWith(w,j.nzValue))).filter(w=>!!w),this.updateListOfContainerItem()}),null===(a=this.directionality.change)||void 0===a||a.pipe((0,T.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,T.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,y.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,E.O)(!0),(0,P.w)(()=>(0,y.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(a=>a.changes),...this.listOfNzOptionGroupComponent.map(a=>a.changes)).pipe((0,E.O)(!0))),(0,T.R)(this.destroy$)).subscribe(()=>{const a=this.listOfNzOptionComponent.toArray().map(d=>{const{template:r,nzLabel:p,nzValue:w,nzDisabled:j,nzHide:oe,nzCustomContent:ve,groupLabel:Se}=d;return{template:r,nzLabel:p,nzValue:w,nzDisabled:j,nzHide:oe,nzCustomContent:ve,groupLabel:Se,type:"item",key:w}});this.listOfTemplateItem$.next(a),this.cdr.markForCheck()})}ngOnDestroy(){I(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(M.kn),t.Y36(L.jY),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(me.t4),t.Y36(ae.tE),t.Y36(be.Is,8),t.Y36(pe.P,9))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select"]],contentQueries:function(a,d,r){if(1&a&&(t.Suo(r,$e,5),t.Suo(r,Ne,5)),2&a){let p;t.iGM(p=t.CRH())&&(d.listOfNzOptionComponent=p),t.iGM(p=t.CRH())&&(d.listOfNzOptionGroupComponent=p)}},viewQuery:function(a,d){if(1&a&&(t.Gf(v.xu,7,t.SBq),t.Gf(v.pI,7),t.Gf(it,7),t.Gf(Ne,7,t.SBq),t.Gf(it,7,t.SBq)),2&a){let r;t.iGM(r=t.CRH())&&(d.originElement=r.first),t.iGM(r=t.CRH())&&(d.cdkConnectedOverlay=r.first),t.iGM(r=t.CRH())&&(d.nzSelectTopControlComponent=r.first),t.iGM(r=t.CRH())&&(d.nzOptionGroupComponentElement=r.first),t.iGM(r=t.CRH())&&(d.nzSelectTopControlComponentElement=r.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(a,d){1&a&&t.NdJ("click",function(){return d.onHostClick()}),2&a&&t.ekj("ant-select-lg","large"===d.nzSize)("ant-select-sm","small"===d.nzSize)("ant-select-show-arrow",d.nzShowArrow)("ant-select-disabled",d.nzDisabled)("ant-select-show-search",(d.nzShowSearch||"default"!==d.nzMode)&&!d.nzDisabled)("ant-select-allow-clear",d.nzAllowClear)("ant-select-borderless",d.nzBorderless)("ant-select-open",d.nzOpen)("ant-select-focused",d.nzOpen||d.focused)("ant-select-single","default"===d.nzMode)("ant-select-multiple","default"!==d.nzMode)("ant-select-rtl","rtl"===d.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[t._Bn([M.kn,{provide:C.JU,useExisting:(0,t.Gpc)(()=>_),multi:!0}]),t.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(a,d){if(1&a&&(t.TgZ(0,"nz-select-top-control",0,1),t.NdJ("inputValueChange",function(p){return d.onInputValueChange(p)})("tokenize",function(p){return d.onTokenSeparate(p)})("deleteItem",function(p){return d.onItemDelete(p)})("keydown",function(p){return d.onKeyDown(p)}),t.qZA(),t.YNc(2,Fe,1,3,"nz-select-arrow",2),t.YNc(3,Re,1,1,"nz-select-clear",3),t.YNc(4,De,1,19,"ng-template",4),t.NdJ("overlayKeydown",function(p){return d.onOverlayKeyDown(p)})("overlayOutsideClick",function(p){return d.onClickOutside(p)})("detach",function(){return d.setOpenState(!1)})("positionChange",function(p){return d.onPositionChange(p)})),2&a){const r=t.MAs(1);t.Q6J("nzId",d.nzId)("open",d.nzOpen)("disabled",d.nzDisabled)("mode",d.nzMode)("@.disabled",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("nzNoAnimation",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("maxTagPlaceholder",d.nzMaxTagPlaceholder)("removeIcon",d.nzRemoveIcon)("placeHolder",d.nzPlaceHolder)("maxTagCount",d.nzMaxTagCount)("customTemplate",d.nzCustomTemplate)("tokenSeparators",d.nzTokenSeparators)("showSearch",d.nzShowSearch)("autofocus",d.nzAutoFocus)("listOfTopItem",d.listOfTopItem),t.xp6(2),t.Q6J("ngIf",d.nzShowArrow),t.xp6(1),t.Q6J("ngIf",d.nzAllowClear&&!d.nzDisabled&&d.listOfValue.length),t.xp6(1),t.Q6J("cdkConnectedOverlayHasBackdrop",d.nzBackdrop)("cdkConnectedOverlayMinWidth",d.nzDropdownMatchSelectWidth?null:d.triggerWidth)("cdkConnectedOverlayWidth",d.nzDropdownMatchSelectWidth?d.triggerWidth:null)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",d.nzDropdownClassName)("cdkConnectedOverlayOpen",d.nzOpen)}},directives:[it,qe,Je,Ze,O.w,v.xu,pe.P,R.O5,v.pI,Ee.hQ,R.PC],encapsulation:2,data:{animation:[g.mF]},changeDetection:0}),(0,m.gn)([(0,L.oS)()],_.prototype,"nzSuffixIcon",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzAllowClear",void 0),(0,m.gn)([(0,L.oS)(),(0,N.yF)()],_.prototype,"nzBorderless",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzShowSearch",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzLoading",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzAutoFocus",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzAutoClearSearchValue",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzServerSearch",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzDisabled",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzOpen",void 0),(0,m.gn)([(0,L.oS)(),(0,N.yF)()],_.prototype,"nzBackdrop",void 0),_})(),bt=(()=>{class _{}return _.\u0275fac=function(a){return new(a||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[be.vT,R.ez,Te.YI,C.u5,me.ud,v.U8,S.PV,F.T,D.Xo,Ee.e4,pe.g,O.a,b.Cl,ae.rt]]}),_})()},6462:(X,x,s)=>{"use strict";s.d(x,{i:()=>L,m:()=>J});var t=s(655),n=s(1159),o=s(5e3),h=s(4182),e=s(8929),y=s(3753),b=s(7625),D=s(9439),F=s(1721),R=s(5664),S=s(226),O=s(2643),m=s(9808),E=s(647),T=s(969);const P=["switchElement"];function M(Z,Q){1&Z&&o._UZ(0,"i",8)}function N(Z,Q){if(1&Z&&(o.ynx(0),o._uU(1),o.BQk()),2&Z){const I=o.oxw(2);o.xp6(1),o.Oqu(I.nzCheckedChildren)}}function z(Z,Q){if(1&Z&&(o.ynx(0),o.YNc(1,N,2,1,"ng-container",9),o.BQk()),2&Z){const I=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",I.nzCheckedChildren)}}function v(Z,Q){if(1&Z&&(o.ynx(0),o._uU(1),o.BQk()),2&Z){const I=o.oxw(2);o.xp6(1),o.Oqu(I.nzUnCheckedChildren)}}function C(Z,Q){if(1&Z&&o.YNc(0,v,2,1,"ng-container",9),2&Z){const I=o.oxw();o.Q6J("nzStringTemplateOutlet",I.nzUnCheckedChildren)}}let L=(()=>{class Z{constructor(I,U,ae,pe,me,be){this.nzConfigService=I,this.host=U,this.ngZone=ae,this.cdr=pe,this.focusMonitor=me,this.directionality=be,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new e.xQ}updateValue(I){this.isChecked!==I&&(this.isChecked=I,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(I=>{this.dir=I,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,y.R)(this.host.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(I=>{I.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,y.R)(this.switchElement.nativeElement,"keydown").pipe((0,b.R)(this.destroy$)).subscribe(I=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:U}=I;U!==n.oh&&U!==n.SV&&U!==n.L_&&U!==n.K5||(I.preventDefault(),this.ngZone.run(()=>{U===n.oh?this.updateValue(!1):U===n.SV?this.updateValue(!0):(U===n.L_||U===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,b.R)(this.destroy$)).subscribe(I=>{I||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(I){this.isChecked=I,this.cdr.markForCheck()}registerOnChange(I){this.onChange=I}registerOnTouched(I){this.onTouched=I}setDisabledState(I){this.nzDisabled=I,this.cdr.markForCheck()}}return Z.\u0275fac=function(I){return new(I||Z)(o.Y36(D.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(R.tE),o.Y36(S.Is,8))},Z.\u0275cmp=o.Xpm({type:Z,selectors:[["nz-switch"]],viewQuery:function(I,U){if(1&I&&o.Gf(P,7),2&I){let ae;o.iGM(ae=o.CRH())&&(U.switchElement=ae.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>Z),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(I,U){if(1&I&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,M,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,z,2,1,"ng-container",5),o.YNc(6,C,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&I){const ae=o.MAs(7);o.ekj("ant-switch-checked",U.isChecked)("ant-switch-loading",U.nzLoading)("ant-switch-disabled",U.nzDisabled)("ant-switch-small","small"===U.nzSize)("ant-switch-rtl","rtl"===U.dir),o.Q6J("disabled",U.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",U.nzLoading),o.xp6(2),o.Q6J("ngIf",U.isChecked)("ngIfElse",ae)}},directives:[O.dQ,m.O5,E.Ls,T.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,F.yF)()],Z.prototype,"nzLoading",void 0),(0,t.gn)([(0,F.yF)()],Z.prototype,"nzDisabled",void 0),(0,t.gn)([(0,F.yF)()],Z.prototype,"nzControl",void 0),(0,t.gn)([(0,D.oS)()],Z.prototype,"nzSize",void 0),Z})(),J=(()=>{class Z{}return Z.\u0275fac=function(I){return new(I||Z)},Z.\u0275mod=o.oAB({type:Z}),Z.\u0275inj=o.cJS({imports:[[S.vT,m.ez,O.vG,E.PV,T.T]]}),Z})()},592:(X,x,s)=>{"use strict";s.d(x,{Uo:()=>Xt,N8:()=>In,HQ:()=>An,p0:()=>yn,qD:()=>Ht,_C:()=>dt,Om:()=>wn,$Z:()=>Sn});var t=s(226),n=s(925),o=s(3393),h=s(9808),e=s(5e3),y=s(4182),b=s(6042),D=s(5577),F=s(6114),R=s(969),S=s(3677),O=s(685),m=s(4170),E=s(647),T=s(4219),P=s(655),M=s(8929),N=s(5647),z=s(7625),v=s(9439),C=s(4090),g=s(1721),L=s(5197);const J=["nz-pagination-item",""];function Z(c,u){if(1&c&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&c){const i=e.oxw().page;e.xp6(1),e.Oqu(i)}}function Q(c,u){1&c&&e._UZ(0,"i",9)}function I(c,u){1&c&&e._UZ(0,"i",10)}function U(c,u){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,Q,1,0,"i",7),e.YNc(3,I,1,0,"i",8),e.BQk(),e.qZA()),2&c){const i=e.oxw(2);e.Q6J("disabled",i.disabled),e.xp6(1),e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function ae(c,u){1&c&&e._UZ(0,"i",10)}function pe(c,u){1&c&&e._UZ(0,"i",9)}function me(c,u){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,ae,1,0,"i",11),e.YNc(3,pe,1,0,"i",12),e.BQk(),e.qZA()),2&c){const i=e.oxw(2);e.Q6J("disabled",i.disabled),e.xp6(1),e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function be(c,u){1&c&&e._UZ(0,"i",20)}function Ee(c,u){1&c&&e._UZ(0,"i",21)}function Te(c,u){if(1&c&&(e.ynx(0,2),e.YNc(1,be,1,0,"i",18),e.YNc(2,Ee,1,0,"i",19),e.BQk()),2&c){const i=e.oxw(4);e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function Y(c,u){1&c&&e._UZ(0,"i",21)}function le(c,u){1&c&&e._UZ(0,"i",20)}function $(c,u){if(1&c&&(e.ynx(0,2),e.YNc(1,Y,1,0,"i",22),e.YNc(2,le,1,0,"i",23),e.BQk()),2&c){const i=e.oxw(4);e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function ee(c,u){if(1&c&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,Te,3,2,"ng-container",16),e.YNc(3,$,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&c){const i=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",i),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function _e(c,u){if(1&c&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,ee,6,3,"div",14),e.qZA(),e.BQk()),2&c){const i=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",i)}}function te(c,u){1&c&&(e.ynx(0,2),e.YNc(1,Z,2,1,"a",3),e.YNc(2,U,4,3,"button",4),e.YNc(3,me,4,3,"button",4),e.YNc(4,_e,3,1,"ng-container",5),e.BQk()),2&c&&(e.Q6J("ngSwitch",u.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function re(c,u){}const B=function(c,u){return{$implicit:c,page:u}},ne=["containerTemplate"];function k(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(i),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(f){return e.CHM(i),e.oxw().jumpToPageViaInput(f)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(i),e.oxw().nextPage()}),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("disabled",i.isFirstIndex)("direction",i.dir)("itemRender",i.itemRender),e.uIk("title",i.locale.prev_page),e.xp6(1),e.uIk("title",i.pageIndex+"/"+i.lastIndex),e.xp6(1),e.Q6J("disabled",i.disabled)("value",i.pageIndex),e.xp6(3),e.hij(" ",i.lastIndex," "),e.xp6(1),e.Q6J("disabled",i.isLastIndex)("direction",i.dir)("itemRender",i.itemRender),e.uIk("title",null==i.locale?null:i.locale.next_page)}}const ie=["nz-pagination-options",""];function K(c,u){if(1&c&&e._UZ(0,"nz-option",4),2&c){const i=u.$implicit;e.Q6J("nzLabel",i.label)("nzValue",i.value)}}function ze(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(f){return e.CHM(i),e.oxw().onPageSizeChange(f)}),e.YNc(1,K,1,2,"nz-option",3),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("nzDisabled",i.disabled)("nzSize",i.nzSize)("ngModel",i.pageSize),e.xp6(1),e.Q6J("ngForOf",i.listOfPageSizeOption)("ngForTrackBy",i.trackByOption)}}function Me(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(f){return e.CHM(i),e.oxw().jumpToPageViaInput(f)}),e.qZA(),e._uU(3),e.qZA()}if(2&c){const i=e.oxw();e.xp6(1),e.hij(" ",i.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",i.disabled),e.xp6(1),e.hij(" ",i.locale.page," ")}}function Pe(c,u){}const Ue=function(c,u){return{$implicit:c,range:u}};function Qe(c,u){if(1&c&&(e.TgZ(0,"li",4),e.YNc(1,Pe,0,0,"ng-template",5),e.qZA()),2&c){const i=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",i.showTotal)("ngTemplateOutletContext",e.WLB(2,Ue,i.total,i.ranges))}}function Ge(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(f){return e.CHM(i),e.oxw(2).jumpPage(f)})("diffIndex",function(f){return e.CHM(i),e.oxw(2).jumpDiff(f)}),e.qZA()}if(2&c){const i=u.$implicit,l=e.oxw(2);e.Q6J("locale",l.locale)("type",i.type)("index",i.index)("disabled",!!i.disabled)("itemRender",l.itemRender)("active",l.pageIndex===i.index)("direction",l.dir)}}function rt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(f){return e.CHM(i),e.oxw(2).onPageIndexChange(f)})("pageSizeChange",function(f){return e.CHM(i),e.oxw(2).onPageSizeChange(f)}),e.qZA()}if(2&c){const i=e.oxw(2);e.Q6J("total",i.total)("locale",i.locale)("disabled",i.disabled)("nzSize",i.nzSize)("showSizeChanger",i.showSizeChanger)("showQuickJumper",i.showQuickJumper)("pageIndex",i.pageIndex)("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)}}function tt(c,u){if(1&c&&(e.YNc(0,Qe,2,5,"li",1),e.YNc(1,Ge,1,7,"li",2),e.YNc(2,rt,1,9,"div",3)),2&c){const i=e.oxw();e.Q6J("ngIf",i.showTotal),e.xp6(1),e.Q6J("ngForOf",i.listOfPageItem)("ngForTrackBy",i.trackByPageItem),e.xp6(1),e.Q6J("ngIf",i.showQuickJumper||i.showSizeChanger)}}function ke(c,u){}function et(c,u){if(1&c&&(e.ynx(0),e.YNc(1,ke,0,0,"ng-template",6),e.BQk()),2&c){e.oxw(2);const i=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",i.template)}}function nt(c,u){if(1&c&&(e.ynx(0),e.YNc(1,et,2,1,"ng-container",5),e.BQk()),2&c){const i=e.oxw(),l=e.MAs(4);e.xp6(1),e.Q6J("ngIf",i.nzSimple)("ngIfElse",l.template)}}let He=(()=>{class c{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(i){var l,f,A,G;const{locale:de,index:he,type:xe}=i;(de||he||xe)&&(this.title={page:`${this.index}`,next:null===(l=this.locale)||void 0===l?void 0:l.next_page,prev:null===(f=this.locale)||void 0===f?void 0:f.prev_page,prev_5:null===(A=this.locale)||void 0===A?void 0:A.prev_5,next_5:null===(G=this.locale)||void 0===G?void 0:G.next_5}[this.type])}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(i,l){1&i&&e.NdJ("click",function(){return l.clickItem()}),2&i&&(e.uIk("title",l.title),e.ekj("ant-pagination-prev","prev"===l.type)("ant-pagination-next","next"===l.type)("ant-pagination-item","page"===l.type)("ant-pagination-jump-prev","prev_5"===l.type)("ant-pagination-jump-prev-custom-icon","prev_5"===l.type)("ant-pagination-jump-next","next_5"===l.type)("ant-pagination-jump-next-custom-icon","next_5"===l.type)("ant-pagination-disabled",l.disabled)("ant-pagination-item-active",l.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:J,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(i,l){if(1&i&&(e.YNc(0,te,5,4,"ng-template",null,0,e.W1O),e.YNc(2,re,0,0,"ng-template",1)),2&i){const f=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",l.itemRender||f)("ngTemplateOutletContext",e.WLB(2,B,l.type,l.index))}},directives:[h.RF,h.n9,E.Ls,h.ED,h.tP],encapsulation:2,changeDetection:0}),c})(),mt=(()=>{class c{constructor(i,l,f,A){this.cdr=i,this.renderer=l,this.elementRef=f,this.directionality=A,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(f.nativeElement),f.nativeElement)}ngOnInit(){var i;null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(i){const l=i.target,f=(0,g.He)(l.value,this.pageIndex);this.onPageIndexChange(f),l.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(i){this.pageIndexChange.next(i)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(i){const{pageIndex:l,total:f,pageSize:A}=i;(l||f||A)&&this.updateBindingValue()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(t.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination-simple"]],viewQuery:function(i,l){if(1&i&&e.Gf(ne,7),2&i){let f;e.iGM(f=e.CRH())&&(l.template=f.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(i,l){1&i&&e.YNc(0,k,7,12,"ng-template",null,0,e.W1O)},directives:[He],encapsulation:2,changeDetection:0}),c})(),pt=(()=>{class c{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(i){this.pageSize!==i&&this.pageSizeChange.next(i)}jumpToPageViaInput(i){const l=i.target,f=Math.floor((0,g.He)(l.value,this.pageIndex));this.pageIndexChange.next(f),l.value=""}trackByOption(i,l){return l.value}ngOnChanges(i){const{pageSize:l,pageSizeOptions:f,locale:A}=i;(l||f||A)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(G=>({value:G,label:`${G} ${this.locale.items_per_page}`})))}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:ie,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(i,l){1&i&&(e.YNc(0,ze,2,5,"nz-select",0),e.YNc(1,Me,4,3,"div",1)),2&i&&(e.Q6J("ngIf",l.showSizeChanger),e.xp6(1),e.Q6J("ngIf",l.showQuickJumper))},directives:[L.Vq,L.Ip,h.O5,y.JJ,y.On,h.sg],encapsulation:2,changeDetection:0}),c})(),ht=(()=>{class c{constructor(i,l,f,A){this.cdr=i,this.renderer=l,this.elementRef=f,this.directionality=A,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(f.nativeElement),f.nativeElement)}ngOnInit(){var i;null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(i){this.onPageIndexChange(i)}jumpDiff(i){this.jumpPage(this.pageIndex+i)}trackByPageItem(i,l){return`${l.type}-${l.index}`}onPageIndexChange(i){this.pageIndexChange.next(i)}onPageSizeChange(i){this.pageSizeChange.next(i)}getLastIndex(i,l){return Math.ceil(i/l)}buildIndexes(){const i=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,i)}getListOfPageItem(i,l){const A=(G,de)=>{const he=[];for(let xe=G;xe<=de;xe++)he.push({index:xe,type:"page"});return he};return G=l<=9?A(1,l):((de,he)=>{let xe=[];const Be={type:"prev_5"},ue={type:"next_5"},st=A(1,1),yt=A(l,l);return xe=de<5?[...A(2,4===de?6:5),ue]:de{class c{constructor(i,l,f,A,G){this.i18n=i,this.cdr=l,this.breakpointService=f,this.nzConfigService=A,this.directionality=G,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new M.xQ,this.total$=new N.t(1)}validatePageIndex(i,l){return i>l?l:i<1?1:i}onPageIndexChange(i){const l=this.getLastIndex(this.nzTotal,this.nzPageSize),f=this.validatePageIndex(i,l);f!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=f,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(i){this.nzPageSize=i,this.nzPageSizeChange.emit(i);const l=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>l&&this.onPageIndexChange(l)}onTotalChange(i){const l=this.getLastIndex(i,this.nzPageSize);this.nzPageIndex>l&&Promise.resolve().then(()=>{this.onPageIndexChange(l),this.cdr.markForCheck()})}getLastIndex(i,l){return Math.ceil(i/l)}ngOnInit(){var i;this.i18n.localeChange.pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.onTotalChange(l)}),this.breakpointService.subscribe(C.WV).pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.nzResponsive&&(this.size=l===C.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(i){const{nzHideOnSinglePage:l,nzTotal:f,nzPageSize:A,nzSize:G}=i;f&&this.total$.next(this.nzTotal),(l||f||A)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),G&&(this.size=G.currentValue)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(m.wi),e.Y36(e.sBO),e.Y36(C.r3),e.Y36(v.jY),e.Y36(t.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(i,l){2&i&&e.ekj("ant-pagination-simple",l.nzSimple)("ant-pagination-disabled",l.nzDisabled)("mini",!l.nzSimple&&"small"===l.size)("ant-pagination-rtl","rtl"===l.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(i,l){1&i&&(e.YNc(0,nt,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(A){return l.onPageIndexChange(A)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(A){return l.onPageIndexChange(A)})("pageSizeChange",function(A){return l.onPageSizeChange(A)}),e.qZA()),2&i&&(e.Q6J("ngIf",l.showPagination),e.xp6(1),e.Q6J("disabled",l.nzDisabled)("itemRender",l.nzItemRender)("locale",l.locale)("pageSize",l.nzPageSize)("total",l.nzTotal)("pageIndex",l.nzPageIndex),e.xp6(2),e.Q6J("nzSize",l.size)("itemRender",l.nzItemRender)("showTotal",l.nzShowTotal)("disabled",l.nzDisabled)("locale",l.locale)("showSizeChanger",l.nzShowSizeChanger)("showQuickJumper",l.nzShowQuickJumper)("total",l.nzTotal)("pageIndex",l.nzPageIndex)("pageSize",l.nzPageSize)("pageSizeOptions",l.nzPageSizeOptions))},directives:[mt,ht,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,v.oS)()],c.prototype,"nzSize",void 0),(0,P.gn)([(0,v.oS)()],c.prototype,"nzPageSizeOptions",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzSimple",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzDisabled",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzResponsive",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,P.gn)([(0,g.Rn)()],c.prototype,"nzTotal",void 0),(0,P.gn)([(0,g.Rn)()],c.prototype,"nzPageIndex",void 0),(0,P.gn)([(0,g.Rn)()],c.prototype,"nzPageSize",void 0),c})(),q=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[t.vT,h.ez,y.u5,L.LV,m.YI,E.PV]]}),c})();var fe=s(3868),ge=s(7525),Ie=s(3753),se=s(591),Oe=s(6053),we=s(6787),Fe=s(8896),Re=s(1086),De=s(4850),Ne=s(1059),ye=s(7545),Ve=s(13),Ze=s(8583),$e=s(2198),Ye=s(5778),Xe=s(1307),Ke=s(1709),it=s(2683),qe=s(2643);const Je=["*"];function _t(c,u){}function zt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(i);const f=e.oxw().$implicit;return e.oxw(2).check(f)}),e.qZA()}if(2&c){const i=e.oxw().$implicit;e.Q6J("ngModel",i.checked)}}function Ot(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(i);const f=e.oxw().$implicit;return e.oxw(2).check(f)}),e.qZA()}if(2&c){const i=e.oxw().$implicit;e.Q6J("ngModel",i.checked)}}function bt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const A=e.CHM(i).$implicit;return e.oxw(2).check(A)}),e.YNc(1,zt,1,1,"label",13),e.YNc(2,Ot,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&c){const i=u.$implicit,l=e.oxw(2);e.Q6J("nzSelected",i.checked),e.xp6(1),e.Q6J("ngIf",!l.filterMultiple),e.xp6(1),e.Q6J("ngIf",l.filterMultiple),e.xp6(2),e.Oqu(i.text)}}function _(c,u){if(1&c){const i=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(f){return e.CHM(i),e.oxw().onVisibleChange(f)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,bt,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(i),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(i),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&c){const i=e.MAs(4),l=e.oxw();e.xp6(1),e.Q6J("nzVisible",l.isVisible)("nzActive",l.isChecked)("nzDropdownMenu",i),e.xp6(6),e.Q6J("ngForOf",l.listOfParsedFilter)("ngForTrackBy",l.trackByValue),e.xp6(2),e.Q6J("disabled",!l.isChecked),e.xp6(1),e.hij(" ",l.locale.filterReset," "),e.xp6(2),e.Oqu(l.locale.filterConfirm)}}function r(c,u){}function p(c,u){if(1&c&&e._UZ(0,"i",6),2&c){const i=e.oxw();e.ekj("active","ascend"===i.sortOrder)}}function w(c,u){if(1&c&&e._UZ(0,"i",7),2&c){const i=e.oxw();e.ekj("active","descend"===i.sortOrder)}}const Se=["nzColumnKey",""];function Le(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(f){return e.CHM(i),e.oxw().onFilterValueChange(f)}),e.qZA()}if(2&c){const i=e.oxw(),l=e.MAs(2),f=e.MAs(4);e.Q6J("contentTemplate",l)("extraTemplate",f)("customFilter",i.nzCustomFilter)("filterMultiple",i.nzFilterMultiple)("listOfFilter",i.nzFilters)}}function ot(c,u){}function ct(c,u){if(1&c&&e.YNc(0,ot,0,0,"ng-template",6),2&c){const i=e.oxw(),l=e.MAs(6),f=e.MAs(8);e.Q6J("ngTemplateOutlet",i.nzShowSort?l:f)}}function St(c,u){1&c&&(e.Hsn(0),e.Hsn(1,1))}function At(c,u){if(1&c&&e._UZ(0,"nz-table-sorters",7),2&c){const i=e.oxw(),l=e.MAs(8);e.Q6J("sortOrder",i.sortOrder)("sortDirections",i.sortDirections)("contentTemplate",l)}}function Pt(c,u){1&c&&e.Hsn(0,2)}const Ft=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],xt=["[nz-th-extra]","nz-filter-trigger","*"],Rt=["nz-table-content",""];function Bt(c,u){if(1&c&&e._UZ(0,"col"),2&c){const i=u.$implicit;e.Udp("width",i)("min-width",i)}}function kt(c,u){}function Lt(c,u){if(1&c&&(e.TgZ(0,"thead",3),e.YNc(1,kt,0,0,"ng-template",2),e.qZA()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",i.theadTemplate)}}function Mt(c,u){}const Dt=["tdElement"],Zt=["nz-table-fixed-row",""];function $t(c,u){}function Wt(c,u){if(1&c&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,$t,0,0,"ng-template",5),e.qZA()),2&c){const i=e.oxw(),l=e.MAs(5);e.Udp("width",e.lcZ(1,3,i.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",l)}}function Et(c,u){1&c&&e.Hsn(0)}const Ut=["nz-table-measure-row",""];function Qt(c,u){1&c&&e._UZ(0,"td",1,2)}function Vt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(f){return e.CHM(i),e.oxw(2).onListOfAutoWidthChange(f)}),e.qZA()}if(2&c){const i=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",i)}}function Nt(c,u){if(1&c&&(e.ynx(0),e.YNc(1,Vt,1,1,"tr",2),e.BQk()),2&c){const i=u.ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngIf",l.isInsideTable&&i.length)}}function Yt(c,u){if(1&c&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,i.noResult$))}}const Jt=["tableHeaderElement"],jt=["tableBodyElement"];function qt(c,u){if(1&c&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&c){const i=e.oxw(2);e.Q6J("ngStyle",i.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth)("contentTemplate",i.contentTemplate)}}function en(c,u){}const tn=function(c,u){return{$implicit:c,index:u}};function nn(c,u){if(1&c&&(e.ynx(0),e.YNc(1,en,0,0,"ng-template",13),e.BQk()),2&c){const i=u.$implicit,l=u.index,f=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",f.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,tn,i,l))}}function on(c,u){if(1&c&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,nn,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&c){const i=e.oxw(2);e.Udp("height",i.data.length?i.scrollY:i.noDateVirtualHeight),e.Q6J("itemSize",i.virtualItemSize)("maxBufferPx",i.virtualMaxBufferPx)("minBufferPx",i.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",i.data)("cdkVirtualForTrackBy",i.virtualForTrackBy)}}function an(c,u){if(1&c&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,qt,3,4,"div",5),e.YNc(5,on,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("ngStyle",i.headerStyleMap),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth)("theadTemplate",i.theadTemplate),e.xp6(1),e.Q6J("ngIf",!i.virtualTemplate),e.xp6(1),e.Q6J("ngIf",i.virtualTemplate)}}function sn(c,u){if(1&c&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&c){const i=e.oxw();e.Q6J("ngStyle",i.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth)("theadTemplate",i.theadTemplate)("contentTemplate",i.contentTemplate)}}function rn(c,u){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const i=e.oxw();e.xp6(1),e.Oqu(i.title)}}function ln(c,u){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const i=e.oxw();e.xp6(1),e.Oqu(i.footer)}}function cn(c,u){}function dn(c,u){if(1&c&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const i=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}function pn(c,u){if(1&c&&e._UZ(0,"nz-table-title-footer",11),2&c){const i=e.oxw();e.Q6J("title",i.nzTitle)}}function hn(c,u){if(1&c&&e._UZ(0,"nz-table-inner-scroll",12),2&c){const i=e.oxw(),l=e.MAs(13),f=e.MAs(3);e.Q6J("data",i.data)("scrollX",i.scrollX)("scrollY",i.scrollY)("contentTemplate",l)("listOfColWidth",i.listOfAutoColWidth)("theadTemplate",i.theadTemplate)("verticalScrollBarWidth",i.verticalScrollBarWidth)("virtualTemplate",i.nzVirtualScrollDirective?i.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",i.nzVirtualItemSize)("virtualMaxBufferPx",i.nzVirtualMaxBufferPx)("virtualMinBufferPx",i.nzVirtualMinBufferPx)("tableMainElement",f)("virtualForTrackBy",i.nzVirtualForTrackBy)}}function Ae(c,u){if(1&c&&e._UZ(0,"nz-table-inner-default",13),2&c){const i=e.oxw(),l=e.MAs(13);e.Q6J("tableLayout",i.nzTableLayout)("listOfColWidth",i.listOfManualColWidth)("theadTemplate",i.theadTemplate)("contentTemplate",l)}}function It(c,u){if(1&c&&e._UZ(0,"nz-table-title-footer",14),2&c){const i=e.oxw();e.Q6J("footer",i.nzFooter)}}function un(c,u){}function fn(c,u){if(1&c&&(e.ynx(0),e.YNc(1,un,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const i=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}function gn(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(f){return e.CHM(i),e.oxw(2).onPageSizeChange(f)})("nzPageIndexChange",function(f){return e.CHM(i),e.oxw(2).onPageIndexChange(f)}),e.qZA()}if(2&c){const i=e.oxw(2);e.Q6J("hidden",!i.showPagination)("nzShowSizeChanger",i.nzShowSizeChanger)("nzPageSizeOptions",i.nzPageSizeOptions)("nzItemRender",i.nzItemRender)("nzShowQuickJumper",i.nzShowQuickJumper)("nzHideOnSinglePage",i.nzHideOnSinglePage)("nzShowTotal",i.nzShowTotal)("nzSize","small"===i.nzPaginationType?"small":"default"===i.nzSize?"default":"small")("nzPageSize",i.nzPageSize)("nzTotal",i.nzTotal)("nzSimple",i.nzSimple)("nzPageIndex",i.nzPageIndex)}}function mn(c,u){if(1&c&&e.YNc(0,gn,1,12,"nz-pagination",15),2&c){const i=e.oxw();e.Q6J("ngIf",i.nzShowPagination&&i.data.length)}}function _n(c,u){1&c&&e.Hsn(0)}const W=["contentTemplate"];function ce(c,u){1&c&&e.Hsn(0)}function Ce(c,u){}function We(c,u){if(1&c&&(e.ynx(0),e.YNc(1,Ce,0,0,"ng-template",2),e.BQk()),2&c){e.oxw();const i=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}let at=(()=>{class c{constructor(i,l,f,A){this.nzConfigService=i,this.ngZone=l,this.cdr=f,this.destroy$=A,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(i){this.nzVisible=i,this.nzVisibleChange.next(i)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Ie.R)(this.nzDropdown.nativeElement,"click").pipe((0,z.R)(this.destroy$)).subscribe(i=>{i.stopPropagation()})})}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(v.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(C.kn))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-filter-trigger"]],viewQuery:function(i,l){if(1&i&&e.Gf(S.cm,7,e.SBq),2&i){let f;e.iGM(f=e.CRH())&&(l.nzDropdown=f.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([C.kn])],ngContentSelectors:Je,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(i,l){1&i&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(A){return l.onVisibleChange(A)}),e.Hsn(1),e.qZA()),2&i&&(e.ekj("active",l.nzActive)("ant-table-filter-open",l.nzVisible),e.Q6J("nzBackdrop",l.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",l.nzDropdownMenu)("nzVisible",l.nzVisible))},directives:[S.cm],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzBackdrop",void 0),c})(),je=(()=>{class c{constructor(i,l){this.cdr=i,this.i18n=l,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new M.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(i,l){return l.value}check(i){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(l=>l===i?Object.assign(Object.assign({},l),{checked:!i.checked}):l),i.checked=!i.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(l=>Object.assign(Object.assign({},l),{checked:l===i})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(i){this.isVisible=i,i?this.listOfChecked=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value):this.emitFilterData()}emitFilterData(){const i=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value);(0,g.cO)(this.listOfChecked,i)||this.filterChange.emit(this.filterMultiple?i:i.length>0?i[0]:null)}parseListOfFilter(i,l){return i.map(f=>({text:f.text,value:f.value,checked:!l&&!!f.byDefault}))}getCheckedStatus(i){return i.some(l=>l.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(i){const{listOfFilter:l}=i;l&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO),e.Y36(m.wi))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(i,l){1&i&&(e.TgZ(0,"span",0),e.YNc(1,_t,0,0,"ng-template",1),e.qZA(),e.YNc(2,_,13,8,"ng-container",2)),2&i&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.Q6J("ngIf",!l.customFilter)("ngIfElse",l.extraTemplate))},directives:[at,S.RR,fe.Of,F.Ie,b.ix,h.tP,h.O5,it.w,E.Ls,T.wO,h.sg,T.r9,y.JJ,y.On,qe.dQ],encapsulation:2,changeDetection:0}),c})(),Gt=(()=>{class c{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(i){const{sortDirections:l}=i;l&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(i,l){1&i&&(e.TgZ(0,"span",0),e.YNc(1,r,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,p,1,2,"i",4),e.YNc(5,w,1,2,"i",5),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",l.isDown&&l.isUp),e.xp6(2),e.Q6J("ngIf",l.isUp),e.xp6(1),e.Q6J("ngIf",l.isDown))},directives:[h.tP,h.O5,it.w,E.Ls],encapsulation:2,changeDetection:0}),c})(),vt=(()=>{class c{constructor(i,l){this.renderer=i,this.elementRef=l,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new M.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(i){this.renderer.setStyle(this.elementRef.nativeElement,"left",i)}setAutoRightWidth(i){this.renderer.setStyle(this.elementRef.nativeElement,"right",i)}setIsFirstRight(i){this.setFixClass(i,"ant-table-cell-fix-right-first")}setIsLastLeft(i){this.setFixClass(i,"ant-table-cell-fix-left-last")}setFixClass(i,l){this.renderer.removeClass(this.elementRef.nativeElement,l),i&&this.renderer.addClass(this.elementRef.nativeElement,l)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const i=l=>"string"==typeof l&&""!==l?l:null;this.setAutoLeftWidth(i(this.nzLeft)),this.setAutoRightWidth(i(this.nzRight)),this.changes$.next()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(i,l){2&i&&(e.Udp("position",l.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",l.isFixedRight)("ant-table-cell-fix-left",l.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),c})(),gt=(()=>{class c{constructor(){this.theadTemplate$=new N.t(1),this.hasFixLeft$=new N.t(1),this.hasFixRight$=new N.t(1),this.hostWidth$=new N.t(1),this.columnCount$=new N.t(1),this.showEmpty$=new N.t(1),this.noResult$=new N.t(1),this.listOfThWidthConfigPx$=new se.X([]),this.tableWidthConfigPx$=new se.X([]),this.manualWidthConfigPx$=(0,Oe.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,De.U)(([i,l])=>i.length?i:l)),this.listOfAutoWidthPx$=new N.t(1),this.listOfListOfThWidthPx$=(0,we.T)(this.manualWidthConfigPx$,(0,Oe.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,De.U)(([i,l])=>i.length===l.length?i.map((f,A)=>"0px"===f?l[A]||null:l[A]||f):l))),this.listOfMeasureColumn$=new N.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,De.U)(i=>i.map(l=>parseInt(l,10)))),this.enableAutoMeasure$=new N.t(1)}setTheadTemplate(i){this.theadTemplate$.next(i)}setHasFixLeft(i){this.hasFixLeft$.next(i)}setHasFixRight(i){this.hasFixRight$.next(i)}setTableWidthConfig(i){this.tableWidthConfigPx$.next(i)}setListOfTh(i){let l=0;i.forEach(A=>{l+=A.colspan&&+A.colspan||A.colSpan&&+A.colSpan||1});const f=i.map(A=>A.nzWidth);this.columnCount$.next(l),this.listOfThWidthConfigPx$.next(f)}setListOfMeasureColumn(i){const l=[];i.forEach(f=>{const A=f.colspan&&+f.colspan||f.colSpan&&+f.colSpan||1;for(let G=0;G`${l}px`))}setShowEmpty(i){this.showEmpty$.next(i)}setNoResult(i){this.noResult$.next(i)}setScroll(i,l){const f=!(!i&&!l);f||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(f)}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Xt=(()=>{class c{constructor(i){this.isInsideTable=!1,this.isInsideTable=!!i}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-cell",l.isInsideTable)}}),c})(),Ht=(()=>{class c{constructor(i){this.cdr=i,this.manualClickOrder$=new M.xQ,this.calcOperatorChange$=new M.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new M.xQ,this.destroy$=new M.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(i,l){const f=i.indexOf(l);return f===i.length-1?i[0]:i[f+1]}emitNextSortValue(){if(this.nzShowSort){const i=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(i),this.manualClickOrder$.next(this)}}setSortOrder(i){this.sortOrderChange$.next(i)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(i){this.nzFilterChange.emit(i),this.nzFilterValue=i,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,z.R)(this.destroy$)).subscribe(i=>{this.sortOrder!==i&&(this.sortOrder=i,this.nzSortOrderChange.emit(i)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(i){const{nzSortDirections:l,nzFilters:f,nzSortOrder:A,nzSortFn:G,nzFilterFn:de,nzSortPriority:he,nzFilterMultiple:xe,nzShowSort:Be,nzShowFilter:ue}=i;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),A&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),Be&&(this.isNzShowSortChanged=!0),ue&&(this.isNzShowFilterChanged=!0);const st=yt=>yt&&yt.firstChange&&void 0!==yt.currentValue;if((st(A)||st(G))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),st(f)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(f||xe)&&this.nzShowFilter){const yt=this.nzFilters.filter(wt=>wt.byDefault).map(wt=>wt.value);this.nzFilterValue=this.nzFilterMultiple?yt:yt[0]||null}(G||de||he||f)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO))},c.\u0275cmp=e.Xpm({type:c,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(i,l){1&i&&e.NdJ("click",function(){return l.emitNextSortValue()}),2&i&&e.ekj("ant-table-column-has-sorters",l.nzShowSort)("ant-table-column-sort","descend"===l.sortOrder||"ascend"===l.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:Se,ngContentSelectors:xt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(i,l){if(1&i&&(e.F$t(Ft),e.YNc(0,Le,1,5,"nz-table-filter",0),e.YNc(1,ct,1,1,"ng-template",null,1,e.W1O),e.YNc(3,St,2,0,"ng-template",null,2,e.W1O),e.YNc(5,At,1,3,"ng-template",null,3,e.W1O),e.YNc(7,Pt,1,0,"ng-template",null,4,e.W1O)),2&i){const f=e.MAs(2);e.Q6J("ngIf",l.nzShowFilter||l.nzCustomFilter)("ngIfElse",f)}},directives:[je,Gt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,g.yF)()],c.prototype,"nzShowSort",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzShowFilter",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzCustomFilter",void 0),c})(),dt=(()=>{class c{constructor(i,l){this.renderer=i,this.elementRef=l,this.changes$=new M.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(i){const{nzWidth:l,colspan:f,rowspan:A,colSpan:G,rowSpan:de}=i;if(f||G){const he=this.colspan||this.colSpan;(0,g.kK)(he)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${he}`)}if(A||de){const he=this.rowspan||this.rowSpan;(0,g.kK)(he)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${he}`)}(l||f)&&this.changes$.next()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),c})(),Tn=(()=>{class c{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(i,l){2&i&&(e.Udp("table-layout",l.tableLayout)("width",l.scrollX)("min-width",l.scrollX?"100%":null),e.ekj("ant-table-fixed",l.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Rt,ngContentSelectors:Je,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(i,l){1&i&&(e.F$t(),e.YNc(0,Bt,1,4,"col",0),e.YNc(1,Lt,2,1,"thead",1),e.YNc(2,Mt,0,0,"ng-template",2),e.Hsn(3)),2&i&&(e.Q6J("ngForOf",l.listOfColWidth),e.xp6(1),e.Q6J("ngIf",l.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate))},directives:[h.sg,h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),xn=(()=>{class c{constructor(i,l){this.nzTableStyleService=i,this.renderer=l,this.hostWidth$=new se.X(null),this.enableAutoMeasure$=new se.X(!1),this.destroy$=new M.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:i,hostWidth$:l}=this.nzTableStyleService;i.pipe((0,z.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),l.pipe((0,z.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,z.R)(this.destroy$)).subscribe(i=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${i}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt),e.Y36(e.Qsj))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(i,l){if(1&i&&e.Gf(Dt,7),2&i){let f;e.iGM(f=e.CRH())&&(l.tdElement=f.first)}},attrs:Zt,ngContentSelectors:Je,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(i,l){if(1&i&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,Wt,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Et,1,0,"ng-template",null,3,e.W1O)),2&i){const f=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,l.enableAutoMeasure$))("ngIfElse",f)}},directives:[h.O5,h.tP],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),Mn=(()=>{class c{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(i,l){1&i&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&i&&(e.xp6(1),e.Q6J("contentTemplate",l.contentTemplate)("tableLayout",l.tableLayout)("listOfColWidth",l.listOfColWidth)("theadTemplate",l.theadTemplate))},directives:[Tn],encapsulation:2,changeDetection:0}),c})(),Dn=(()=>{class c{constructor(i,l){this.nzResizeObserver=i,this.ngZone=l,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new M.xQ}trackByFunc(i,l){return l}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Ne.O)(this.listOfTdElement)).pipe((0,ye.w)(i=>(0,Oe.aj)(i.toArray().map(l=>this.nzResizeObserver.observe(l).pipe((0,De.U)(([f])=>{const{width:A}=f.target.getBoundingClientRect();return Math.floor(A)}))))),(0,Ve.b)(16),(0,z.R)(this.destroy$)).subscribe(i=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(i)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(D.D3),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(i,l){if(1&i&&e.Gf(Dt,5),2&i){let f;e.iGM(f=e.CRH())&&(l.listOfTdElement=f)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Ut,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(i,l){1&i&&e.YNc(0,Qt,2,0,"td",0),2&i&&e.Q6J("ngForOf",l.listOfMeasureColumn)("ngForTrackBy",l.trackByFunc)},directives:[h.sg],encapsulation:2,changeDetection:0}),c})(),yn=(()=>{class c{constructor(i){if(this.nzTableStyleService=i,this.isInsideTable=!1,this.showEmpty$=new se.X(!1),this.noResult$=new se.X(void 0),this.listOfMeasureColumn$=new se.X([]),this.destroy$=new M.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:l,noResult$:f,listOfMeasureColumn$:A}=this.nzTableStyleService;f.pipe((0,z.R)(this.destroy$)).subscribe(this.noResult$),A.pipe((0,z.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),l.pipe((0,z.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(i){this.nzTableStyleService.setListOfAutoWidth(i)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tbody"]],hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-tbody",l.isInsideTable)},ngContentSelectors:Je,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(i,l){1&i&&(e.F$t(),e.YNc(0,Nt,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Yt,3,3,"tr",1),e.ALo(4,"async")),2&i&&(e.Q6J("ngIf",e.lcZ(1,2,l.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,l.showEmpty$)))},directives:[Dn,xn,O.gB,h.O5],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),On=(()=>{class c{constructor(i,l,f,A){this.renderer=i,this.ngZone=l,this.platform=f,this.resizeService=A,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=G=>G,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new M.xQ,this.scroll$=new M.xQ,this.destroy$=new M.xQ}setScrollPositionClassName(i=!1){const{scrollWidth:l,scrollLeft:f,clientWidth:A}=this.tableBodyElement.nativeElement,G="ant-table-ping-left",de="ant-table-ping-right";l===A&&0!==l||i?(this.renderer.removeClass(this.tableMainElement,G),this.renderer.removeClass(this.tableMainElement,de)):0===f?(this.renderer.removeClass(this.tableMainElement,G),this.renderer.addClass(this.tableMainElement,de)):l===f+A?(this.renderer.removeClass(this.tableMainElement,de),this.renderer.addClass(this.tableMainElement,G)):(this.renderer.addClass(this.tableMainElement,G),this.renderer.addClass(this.tableMainElement,de))}ngOnChanges(i){const{scrollX:l,scrollY:f,data:A}=i;if(l||f){const G=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&G?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}A&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const i=this.scroll$.pipe((0,Ne.O)(null),(0,Ze.g)(0),(0,ye.w)(()=>(0,Ie.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Ne.O)(!0))),(0,z.R)(this.destroy$)),l=this.resizeService.subscribe().pipe((0,z.R)(this.destroy$)),f=this.data$.pipe((0,z.R)(this.destroy$));(0,we.T)(i,l,f,this.scroll$).pipe((0,Ne.O)(!0),(0,Ze.g)(0),(0,z.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),i.pipe((0,$e.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(n.t4),e.Y36(C.rI))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-scroll"]],viewQuery:function(i,l){if(1&i&&(e.Gf(Jt,5,e.SBq),e.Gf(jt,5,e.SBq),e.Gf(o.N7,5,o.N7)),2&i){let f;e.iGM(f=e.CRH())&&(l.tableHeaderElement=f.first),e.iGM(f=e.CRH())&&(l.tableBodyElement=f.first),e.iGM(f=e.CRH())&&(l.cdkVirtualScrollViewport=f.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(i,l){1&i&&(e.YNc(0,an,6,6,"ng-container",0),e.YNc(1,sn,3,5,"div",1)),2&i&&(e.Q6J("ngIf",l.scrollY),e.xp6(1),e.Q6J("ngIf",!l.scrollY))},directives:[Tn,o.N7,yn,h.O5,h.PC,o.xd,o.x0,h.tP],encapsulation:2,changeDetection:0}),c})(),En=(()=>{class c{constructor(i){this.templateRef=i}static ngTemplateContextGuard(i,l){return!0}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Rgc))},c.\u0275dir=e.lG2({type:c,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),c})(),zn=(()=>{class c{constructor(){this.destroy$=new M.xQ,this.pageIndex$=new se.X(1),this.frontPagination$=new se.X(!0),this.pageSize$=new se.X(10),this.listOfData$=new se.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,Ye.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,Ye.x)()),this.listOfCalcOperator$=new se.X([]),this.queryParams$=(0,Oe.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,Ve.b)(0),(0,Xe.T)(1),(0,De.U)(([i,l,f])=>({pageIndex:i,pageSize:l,sort:f.filter(A=>A.sortFn).map(A=>({key:A.key,value:A.sortOrder})),filter:f.filter(A=>A.filterFn).map(A=>({key:A.key,value:A.filterValue}))}))),this.listOfDataAfterCalc$=(0,Oe.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,De.U)(([i,l])=>{let f=[...i];const A=l.filter(de=>{const{filterValue:he,filterFn:xe}=de;return!(null==he||Array.isArray(he)&&0===he.length)&&"function"==typeof xe});for(const de of A){const{filterFn:he,filterValue:xe}=de;f=f.filter(Be=>he(xe,Be))}const G=l.filter(de=>null!==de.sortOrder&&"function"==typeof de.sortFn).sort((de,he)=>+he.sortPriority-+de.sortPriority);return l.length&&f.sort((de,he)=>{for(const xe of G){const{sortFn:Be,sortOrder:ue}=xe;if(Be&&ue){const st=Be(de,he,ue);if(0!==st)return"ascend"===ue?st:-st}}return 0}),f})),this.listOfFrontEndCurrentPageData$=(0,Oe.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,z.R)(this.destroy$),(0,$e.h)(i=>{const[l,f,A]=i;return l<=(Math.ceil(A.length/f)||1)}),(0,De.U)(([i,l,f])=>f.slice((i-1)*l,i*l))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,ye.w)(i=>i?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,ye.w)(i=>i?this.listOfDataAfterCalc$:this.listOfData$),(0,De.U)(i=>i.length),(0,Ye.x)())}updatePageSize(i){this.pageSize$.next(i)}updateFrontPagination(i){this.frontPagination$.next(i)}updatePageIndex(i){this.pageIndex$.next(i)}updateListOfData(i){this.listOfData$.next(i)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Nn=(()=>{class c{constructor(){this.title=null,this.footer=null}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(i,l){2&i&&e.ekj("ant-table-title",null!==l.title)("ant-table-footer",null!==l.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,l){1&i&&(e.YNc(0,rn,2,1,"ng-container",0),e.YNc(1,ln,2,1,"ng-container",0)),2&i&&(e.Q6J("nzStringTemplateOutlet",l.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",l.footer))},directives:[R.f],encapsulation:2,changeDetection:0}),c})(),In=(()=>{class c{constructor(i,l,f,A,G,de,he){this.elementRef=i,this.nzResizeObserver=l,this.nzConfigService=f,this.cdr=A,this.nzTableStyleService=G,this.nzTableDataService=de,this.directionality=he,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=xe=>xe,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new M.xQ,this.templateMode$=new se.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(i){this.nzTableDataService.updatePageSize(i)}onPageIndexChange(i){this.nzTableDataService.updatePageIndex(i)}ngOnInit(){var i;const{pageIndexDistinct$:l,pageSizeDistinct$:f,listOfCurrentPageData$:A,total$:G,queryParams$:de}=this.nzTableDataService,{theadTemplate$:he,hasFixLeft$:xe,hasFixRight$:Be}=this.nzTableStyleService;this.dir=this.directionality.value,null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.dir=ue,this.cdr.detectChanges()}),de.pipe((0,z.R)(this.destroy$)).subscribe(this.nzQueryParams),l.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{ue!==this.nzPageIndex&&(this.nzPageIndex=ue,this.nzPageIndexChange.next(ue))}),f.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{ue!==this.nzPageSize&&(this.nzPageSize=ue,this.nzPageSizeChange.next(ue))}),G.pipe((0,z.R)(this.destroy$),(0,$e.h)(()=>this.nzFrontPagination)).subscribe(ue=>{ue!==this.nzTotal&&(this.nzTotal=ue,this.cdr.markForCheck())}),A.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.data=ue,this.nzCurrentPageDataChange.next(ue),this.cdr.markForCheck()}),he.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.theadTemplate=ue,this.cdr.markForCheck()}),xe.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.hasFixLeft=ue,this.cdr.markForCheck()}),Be.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.hasFixRight=ue,this.cdr.markForCheck()}),(0,Oe.aj)([G,this.templateMode$]).pipe((0,De.U)(([ue,st])=>0===ue&&!st),(0,z.R)(this.destroy$)).subscribe(ue=>{this.nzTableStyleService.setShowEmpty(ue)}),this.verticalScrollBarWidth=(0,g.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.listOfAutoColWidth=ue,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.listOfManualColWidth=ue,this.cdr.markForCheck()})}ngOnChanges(i){const{nzScroll:l,nzPageIndex:f,nzPageSize:A,nzFrontPagination:G,nzData:de,nzWidthConfig:he,nzNoResult:xe,nzTemplateMode:Be}=i;f&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),A&&this.nzTableDataService.updatePageSize(this.nzPageSize),de&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),G&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),l&&this.setScrollOnChanges(),he&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),Be&&this.templateMode$.next(this.nzTemplateMode),xe&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,De.U)(([i])=>{const{width:l}=i.target.getBoundingClientRect();return Math.floor(l-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,z.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(D.D3),e.Y36(v.jY),e.Y36(e.sBO),e.Y36(gt),e.Y36(zn),e.Y36(t.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table"]],contentQueries:function(i,l,f){if(1&i&&e.Suo(f,En,5),2&i){let A;e.iGM(A=e.CRH())&&(l.nzVirtualScrollDirective=A.first)}},viewQuery:function(i,l){if(1&i&&e.Gf(On,5),2&i){let f;e.iGM(f=e.CRH())&&(l.nzTableInnerScrollComponent=f.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-wrapper-rtl","rtl"===l.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([gt,zn]),e.TTD],ngContentSelectors:Je,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(i,l){if(1&i&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,dn,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,pn,1,1,"nz-table-title-footer",4),e.YNc(5,hn,1,13,"nz-table-inner-scroll",5),e.YNc(6,Ae,1,4,"ng-template",null,6,e.W1O),e.YNc(8,It,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,fn,2,1,"ng-container",1),e.qZA(),e.YNc(10,mn,1,1,"ng-template",null,8,e.W1O),e.YNc(12,_n,1,0,"ng-template",null,9,e.W1O)),2&i){const f=e.MAs(7);e.Q6J("nzDelay",l.nzLoadingDelay)("nzSpinning",l.nzLoading)("nzIndicator",l.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"top"===l.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===l.dir)("ant-table-fixed-header",l.nzData.length&&l.scrollY)("ant-table-fixed-column",l.scrollX)("ant-table-has-fix-left",l.hasFixLeft)("ant-table-has-fix-right",l.hasFixRight)("ant-table-bordered",l.nzBordered)("nz-table-out-bordered",l.nzOuterBordered&&!l.nzBordered)("ant-table-middle","middle"===l.nzSize)("ant-table-small","small"===l.nzSize),e.xp6(2),e.Q6J("ngIf",l.nzTitle),e.xp6(1),e.Q6J("ngIf",l.scrollY||l.scrollX)("ngIfElse",f),e.xp6(3),e.Q6J("ngIf",l.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"bottom"===l.nzPaginationPosition)}},directives:[ge.W,Nn,On,Mn,H,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,g.yF)()],c.prototype,"nzFrontPagination",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzTemplateMode",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzShowPagination",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzLoading",void 0),(0,P.gn)([(0,g.yF)()],c.prototype,"nzOuterBordered",void 0),(0,P.gn)([(0,v.oS)()],c.prototype,"nzLoadingIndicator",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzBordered",void 0),(0,P.gn)([(0,v.oS)()],c.prototype,"nzSize",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,P.gn)([(0,v.oS)(),(0,g.yF)()],c.prototype,"nzSimple",void 0),c})(),Sn=(()=>{class c{constructor(i){this.nzTableStyleService=i,this.destroy$=new M.xQ,this.listOfFixedColumns$=new N.t(1),this.listOfColumns$=new N.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,ye.w)(l=>(0,we.T)(this.listOfFixedColumns$,...l.map(f=>f.changes$)).pipe((0,Ke.zg)(()=>this.listOfFixedColumns$))),(0,z.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,De.U)(l=>l.filter(f=>!1!==f.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,De.U)(l=>l.filter(f=>!1!==f.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,ye.w)(l=>(0,we.T)(this.listOfColumns$,...l.map(f=>f.changes$)).pipe((0,Ke.zg)(()=>this.listOfColumns$))),(0,z.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!i}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Ne.O)(this.listOfCellFixedDirective),(0,z.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Ne.O)(this.listOfNzThDirective),(0,z.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(i=>{i.forEach(l=>l.setIsLastLeft(l===i[i.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(i=>{i.forEach(l=>l.setIsFirstRight(l===i[0]))}),(0,Oe.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,z.R)(this.destroy$)).subscribe(([i,l])=>{l.forEach((f,A)=>{if(f.isAutoLeft){const de=l.slice(0,A).reduce((xe,Be)=>xe+(Be.colspan||Be.colSpan||1),0),he=i.slice(0,de).reduce((xe,Be)=>xe+Be,0);f.setAutoLeftWidth(`${he}px`)}})}),(0,Oe.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,z.R)(this.destroy$)).subscribe(([i,l])=>{l.forEach((f,A)=>{const G=l[l.length-A-1];if(G.isAutoRight){const he=l.slice(l.length-A,l.length).reduce((Be,ue)=>Be+(ue.colspan||ue.colSpan||1),0),xe=i.slice(i.length-he,i.length).reduce((Be,ue)=>Be+ue,0);G.setAutoRightWidth(`${xe}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(i,l,f){if(1&i&&(e.Suo(f,dt,4),e.Suo(f,vt,4)),2&i){let A;e.iGM(A=e.CRH())&&(l.listOfNzThDirective=A),e.iGM(A=e.CRH())&&(l.listOfCellFixedDirective=A)}},hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-row",l.isInsideTable)}}),c})(),wn=(()=>{class c{constructor(i,l,f,A){this.elementRef=i,this.renderer=l,this.nzTableStyleService=f,this.nzTableDataService=A,this.destroy$=new M.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const i=this.listOfNzTrDirective.changes.pipe((0,Ne.O)(this.listOfNzTrDirective),(0,De.U)(G=>G&&G.first)),l=i.pipe((0,ye.w)(G=>G?G.listOfColumnsChanges$:Fe.E),(0,z.R)(this.destroy$));l.subscribe(G=>this.nzTableStyleService.setListOfTh(G)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,ye.w)(G=>G?l:(0,Re.of)([]))).pipe((0,z.R)(this.destroy$)).subscribe(G=>this.nzTableStyleService.setListOfMeasureColumn(G));const f=i.pipe((0,ye.w)(G=>G?G.listOfFixedLeftColumnChanges$:Fe.E),(0,z.R)(this.destroy$)),A=i.pipe((0,ye.w)(G=>G?G.listOfFixedRightColumnChanges$:Fe.E),(0,z.R)(this.destroy$));f.subscribe(G=>{this.nzTableStyleService.setHasFixLeft(0!==G.length)}),A.subscribe(G=>{this.nzTableStyleService.setHasFixRight(0!==G.length)})}if(this.nzTableDataService){const i=this.listOfNzThAddOnComponent.changes.pipe((0,Ne.O)(this.listOfNzThAddOnComponent));i.pipe((0,ye.w)(()=>(0,we.T)(...this.listOfNzThAddOnComponent.map(A=>A.manualClickOrder$))),(0,z.R)(this.destroy$)).subscribe(A=>{this.nzSortOrderChange.emit({key:A.nzColumnKey,value:A.sortOrder}),A.nzSortFn&&!1===A.nzSortPriority&&this.listOfNzThAddOnComponent.filter(de=>de!==A).forEach(de=>de.clearSortOrder())}),i.pipe((0,ye.w)(A=>(0,we.T)(i,...A.map(G=>G.calcOperatorChange$)).pipe((0,Ke.zg)(()=>i))),(0,De.U)(A=>A.filter(G=>!!G.nzSortFn||!!G.nzFilterFn).map(G=>{const{nzSortFn:de,sortOrder:he,nzFilterFn:xe,nzFilterValue:Be,nzSortPriority:ue,nzColumnKey:st}=G;return{key:st,sortFn:de,sortPriority:ue,sortOrder:he,filterFn:xe,filterValue:Be}})),(0,Ze.g)(0),(0,z.R)(this.destroy$)).subscribe(A=>{this.nzTableDataService.listOfCalcOperator$.next(A)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(gt,8),e.Y36(zn,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(i,l,f){if(1&i&&(e.Suo(f,Sn,5),e.Suo(f,Ht,5)),2&i){let A;e.iGM(A=e.CRH())&&(l.listOfNzTrDirective=A),e.iGM(A=e.CRH())&&(l.listOfNzThAddOnComponent=A)}},viewQuery:function(i,l){if(1&i&&e.Gf(W,7),2&i){let f;e.iGM(f=e.CRH())&&(l.templateRef=f.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Je,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(i,l){1&i&&(e.F$t(),e.YNc(0,ce,1,0,"ng-template",null,0,e.W1O),e.YNc(2,We,2,1,"ng-container",1)),2&i&&(e.xp6(2),e.Q6J("ngIf",!l.isInsideTable))},directives:[h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),An=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[t.vT,T.ip,y.u5,R.T,fe.aF,F.Wr,S.b1,b.sL,h.ez,n.ud,q,D.y7,ge.j,m.YI,E.PV,O.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/91.cab8652a2fa56b1a.js b/src/blrec/data/webapp/91.cab8652a2fa56b1a.js new file mode 100644 index 0000000..6e8c675 --- /dev/null +++ b/src/blrec/data/webapp/91.cab8652a2fa56b1a.js @@ -0,0 +1 @@ +(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[91],{8737:(X,x,s)=>{"use strict";s.d(x,{yT:()=>n,QL:()=>o,gZ:()=>h,_m:()=>e,ip:()=>y,Dr:()=>b,rc:()=>D,J_:()=>P,tp:()=>R,kV:()=>S,O6:()=>O,D4:()=>m,$w:()=>E,Rc:()=>T});var t=s(8760);const n="\u8bbe\u7f6e\u540c\u6b65\u5931\u8d25\uff01",o="https://api.bilibili.com",h="https://api.live.bilibili.com",e=/^(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?(?:\/(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?)*$/,y="{roomid} - {uname}/blive_{roomid}_{year}-{month}-{day}-{hour}{minute}{second}",b=[{name:"roomid",desc:"\u623f\u95f4\u53f7"},{name:"uname",desc:"\u4e3b\u64ad\u7528\u6237\u540d"},{name:"title",desc:"\u623f\u95f4\u6807\u9898"},{name:"area",desc:"\u76f4\u64ad\u5b50\u5206\u533a\u540d\u79f0"},{name:"parent_area",desc:"\u76f4\u64ad\u4e3b\u5206\u533a\u540d\u79f0"},{name:"year",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5e74\u4efd"},{name:"month",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u6708\u4efd"},{name:"day",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5929\u6570"},{name:"hour",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5c0f\u65f6"},{name:"minute",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5206\u949f"},{name:"second",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u79d2\u6570"}],D=[{label:"\u81ea\u52a8",value:t.zu.AUTO},{label:"\u8c28\u614e",value:t.zu.SAFE},{label:"\u4ece\u4e0d",value:t.zu.NEVER}],P=[{label:"\u9ed8\u8ba4",value:t._l.DEFAULT},{label:"\u53bb\u91cd",value:t._l.DEDUP}],R=[{label:"FLV",value:"flv"},{label:"HLS (fmp4)",value:"fmp4"}],S=[{label:"\u6807\u51c6",value:"standard"},{label:"\u539f\u59cb",value:"raw"}],O=[{label:"4K",value:2e4},{label:"\u539f\u753b",value:1e4},{label:"\u84dd\u5149(\u675c\u6bd4)",value:401},{label:"\u84dd\u5149",value:400},{label:"\u8d85\u6e05",value:250},{label:"\u9ad8\u6e05",value:150},{label:"\u6d41\u7545",value:80}],m=[{label:"3 \u79d2",value:3},{label:"5 \u79d2",value:5},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],E=[{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600},{label:"15 \u5206\u949f",value:900},{label:"20 \u5206\u949f",value:1200},{label:"30 \u5206\u949f",value:1800}],T=[{label:"4 KB",value:4096},{label:"8 KB",value:8192},{label:"16 KB",value:16384},{label:"32 KB",value:32768},{label:"64 KB",value:65536},{label:"128 KB",value:131072},{label:"256 KB",value:262144},{label:"512 KB",value:524288},{label:"1 MB",value:1048576},{label:"2 MB",value:2097152},{label:"4 MB",value:4194304},{label:"8 MB",value:8388608},{label:"16 MB",value:16777216},{label:"32 MB",value:33554432},{label:"64 MB",value:67108864},{label:"128 MB",value:134217728},{label:"256 MB",value:268435456},{label:"512 MB",value:536870912}]},9089:(X,x,s)=>{"use strict";s.d(x,{Sc:()=>E});var t=s(4843),n=s(2198),o=s(13),h=s(5778),e=s(4850),y=s(1854),b=s(7079),D=s(4177),P=s(214);const O=function S(M){return"string"==typeof M||!(0,D.Z)(M)&&(0,P.Z)(M)&&"[object String]"==(0,b.Z)(M)};var m=s(6422);function E(M){return(0,t.z)((0,n.h)(()=>M.valid),(0,o.b)(300),function T(){return(0,t.z)((0,e.U)(M=>O(M)?M.trim():(0,m.Z)(M,(N,z,v)=>{N[v]=O(z)?z.trim():z},{})))}(),(0,h.x)(y.Z))}},5136:(X,x,s)=>{"use strict";s.d(x,{R:()=>e});var t=s(2340),n=s(5e3),o=s(520);const h=t.N.apiUrl;let e=(()=>{class y{constructor(D){this.http=D}getSettings(D=null,P=null){return this.http.get(h+"/api/v1/settings",{params:{include:null!=D?D:[],exclude:null!=P?P:[]}})}changeSettings(D){return this.http.patch(h+"/api/v1/settings",D)}getTaskOptions(D){return this.http.get(h+`/api/v1/settings/tasks/${D}`)}changeTaskOptions(D,P){return this.http.patch(h+`/api/v1/settings/tasks/${D}`,P)}}return y.\u0275fac=function(D){return new(D||y)(n.LFG(o.eN))},y.\u0275prov=n.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})()},8760:(X,x,s)=>{"use strict";s.d(x,{_l:()=>t,zu:()=>n,gP:()=>o,gq:()=>h,jK:()=>e,q1:()=>y,wA:()=>b,_1:()=>D,X:()=>P,tI:()=>R});var t=(()=>{return(S=t||(t={})).DEFAULT="default",S.DEDUP="dedup",t;var S})(),n=(()=>{return(S=n||(n={})).AUTO="auto",S.SAFE="safe",S.NEVER="never",n;var S})();const o=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],h=["sendkey"],e=["server","pushkey"],y=["token","topic"],b=["token","chatid"],D=["enabled"],P=["notifyBegan","notifyEnded","notifyError","notifySpace"],R=["beganMessageType","beganMessageTitle","beganMessageContent","endedMessageType","endedMessageTitle","endedMessageContent","spaceMessageType","spaceMessageTitle","spaceMessageContent","errorMessageType","errorMessageTitle","errorMessageContent"]},4501:(X,x,s)=>{"use strict";s.d(x,{q:()=>O});var t=s(5e3),n=s(4182),o=s(2134),h=s(9089),e=s(4546),y=s(1894),b=s(1047),D=s(9808);function P(m,E){1&m&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6587\u4ef6\u5927\u5c0f "),t.BQk())}function R(m,E){1&m&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function S(m,E){if(1&m&&(t.YNc(0,P,2,0,"ng-container",4),t.YNc(1,R,2,0,"ng-container",4)),2&m){const T=E.$implicit;t.Q6J("ngIf",T.hasError("required")),t.xp6(1),t.Q6J("ngIf",T.hasError("pattern"))}}let O=(()=>{class m{constructor(T){this.value=0,this.onChange=()=>{},this.onTouched=()=>{},this.formGroup=T.group({duration:["",[n.kI.required,n.kI.pattern(/^\d{2}:[0-5]\d:[0-5]\d$/)]]})}get durationControl(){return this.formGroup.get("duration")}ngOnInit(){this.durationControl.valueChanges.pipe((0,h.Sc)(this.durationControl)).subscribe(T=>{this.onDisplayValueChange(T)})}writeValue(T){this.value=T,this.updateDisplayValue(T)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){T?this.durationControl.disable():this.durationControl.enable()}onDisplayValueChange(T){const F=(0,o.RA)(T);"number"==typeof F&&this.value!==F&&(this.value=F,this.onChange(F))}updateDisplayValue(T){const F=(0,o.LU)(T);this.durationControl.setValue(F)}}return m.\u0275fac=function(T){return new(T||m)(t.Y36(n.qu))},m.\u0275cmp=t.Xpm({type:m,selectors:[["app-input-duration"]],features:[t._Bn([{provide:n.JU,useExisting:(0,t.Gpc)(()=>m),multi:!0}])],decls:6,vars:2,consts:[["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["nz-input","","type","text","formControlName","duration"],["errorTip",""],[4,"ngIf"]],template:function(T,F){if(1&T&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item"),t.TgZ(2,"nz-form-control",1),t._UZ(3,"input",2),t.YNc(4,S,2,2,"ng-template",null,3,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&T){const M=t.MAs(5);t.Q6J("formGroup",F.formGroup),t.xp6(2),t.Q6J("nzErrorTip",M)}},directives:[n._Y,n.JL,e.Lr,n.sg,y.SK,e.Nx,y.t3,e.Fd,b.Zp,n.Fj,n.JJ,n.u,D.O5],styles:["nz-form-item[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),m})()},6457:(X,x,s)=>{"use strict";s.d(x,{i:()=>O});var t=s(5e3),n=s(4182),o=s(2134),h=s(9089),e=s(4546),y=s(1894),b=s(1047),D=s(9808);function P(m,E){1&m&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6587\u4ef6\u5927\u5c0f "),t.BQk())}function R(m,E){1&m&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function S(m,E){if(1&m&&(t.YNc(0,P,2,0,"ng-container",4),t.YNc(1,R,2,0,"ng-container",4)),2&m){const T=E.$implicit;t.Q6J("ngIf",T.hasError("required")),t.xp6(1),t.Q6J("ngIf",T.hasError("pattern"))}}let O=(()=>{class m{constructor(T){this.value=0,this.onChange=()=>{},this.onTouched=()=>{},this.formGroup=T.group({filesize:["",[n.kI.required,n.kI.pattern(/^\d{1,3}(?:\.\d{1,2})?\s?[GMK]?B$/)]]})}get filesizeControl(){return this.formGroup.get("filesize")}ngOnInit(){this.filesizeControl.valueChanges.pipe((0,h.Sc)(this.filesizeControl)).subscribe(T=>{this.onDisplayValueChange(T)})}writeValue(T){this.value=T,this.updateDisplayValue(T)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){T?this.filesizeControl.disable():this.filesizeControl.enable()}onDisplayValueChange(T){const F=(0,o.Jt)(T);"number"==typeof F&&this.value!==F&&(this.value=F,this.onChange(F))}updateDisplayValue(T){const F=(0,o.D9)(T);this.filesizeControl.setValue(F)}}return m.\u0275fac=function(T){return new(T||m)(t.Y36(n.qu))},m.\u0275cmp=t.Xpm({type:m,selectors:[["app-input-filesize"]],features:[t._Bn([{provide:n.JU,useExisting:(0,t.Gpc)(()=>m),multi:!0}])],decls:6,vars:2,consts:[["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["nz-input","","type","text","formControlName","filesize"],["errorTip",""],[4,"ngIf"]],template:function(T,F){if(1&T&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item"),t.TgZ(2,"nz-form-control",1),t._UZ(3,"input",2),t.YNc(4,S,2,2,"ng-template",null,3,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&T){const M=t.MAs(5);t.Q6J("formGroup",F.formGroup),t.xp6(2),t.Q6J("nzErrorTip",M)}},directives:[n._Y,n.JL,e.Lr,n.sg,y.SK,e.Nx,y.t3,e.Fd,b.Zp,n.Fj,n.JJ,n.u,D.O5],styles:["nz-form-item[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),m})()},7512:(X,x,s)=>{"use strict";s.d(x,{q:()=>P});var t=s(5545),n=s(5e3),o=s(9808),h=s(7525),e=s(1945);function y(R,S){if(1&R&&n._UZ(0,"nz-spin",2),2&R){const O=n.oxw();n.Q6J("nzSize","large")("nzSpinning",O.loading)}}function b(R,S){if(1&R&&(n.TgZ(0,"div",6),n.GkF(1,7),n.qZA()),2&R){const O=n.oxw(2);n.Q6J("ngStyle",O.contentStyles),n.xp6(1),n.Q6J("ngTemplateOutlet",O.content.templateRef)}}function D(R,S){if(1&R&&(n.TgZ(0,"div",3),n._UZ(1,"nz-page-header",4),n.YNc(2,b,2,2,"div",5),n.qZA()),2&R){const O=n.oxw();n.Q6J("ngStyle",O.pageStyles),n.xp6(1),n.Q6J("nzTitle",O.pageTitle)("nzGhost",!1),n.xp6(1),n.Q6J("ngIf",O.content)}}let P=(()=>{class R{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return R.\u0275fac=function(O){return new(O||R)},R.\u0275cmp=n.Xpm({type:R,selectors:[["app-sub-page"]],contentQueries:function(O,m,E){if(1&O&&n.Suo(E,t.Y,5),2&O){let T;n.iGM(T=n.CRH())&&(m.content=T.first)}},inputs:{pageTitle:"pageTitle",loading:"loading",pageStyles:"pageStyles",contentStyles:"contentStyles"},decls:3,vars:2,consts:[["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"spinner",3,"nzSize","nzSpinning"],[1,"sub-page",3,"ngStyle"],["nzBackIcon","",1,"page-header",3,"nzTitle","nzGhost"],["class","page-content",3,"ngStyle",4,"ngIf"],[1,"page-content",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(O,m){if(1&O&&(n.YNc(0,y,1,2,"nz-spin",0),n.YNc(1,D,3,4,"ng-template",null,1,n.W1O)),2&O){const E=n.MAs(2);n.Q6J("ngIf",m.loading)("ngIfElse",E)}},directives:[o.O5,h.W,o.PC,e.$O,o.tP],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.sub-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{padding-top:0}.sub-page[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-top:3px;margin-bottom:1em}.sub-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}"],changeDetection:0}),R})()},5545:(X,x,s)=>{"use strict";s.d(x,{Y:()=>n});var t=s(5e3);let n=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.Rgc))},o.\u0275dir=t.lG2({type:o,selectors:[["","appSubPageContent",""]]}),o})()},2134:(X,x,s)=>{"use strict";s.d(x,{e5:()=>y,AX:()=>b,N4:()=>D,LU:()=>P,RA:()=>R,D9:()=>S,Jt:()=>O});var t=s(6422),n=s(1854),o=s(1999),h=s(855);function y(m,E,T=!0){return function F(M,N){return(0,t.Z)(M,(z,v,C)=>{const f=Reflect.get(N,C);(0,n.Z)(v,f)||Reflect.set(z,C,T&&(0,o.Z)(v)&&(0,o.Z)(f)?F(v,f):v)})}(m,E)}function b(m,E=" ",T=3){let F,M;if(m<=0)return"0"+E+"kbps";if(m<1e6)F=m/1e3,M="kbps";else if(m<1e9)F=m/1e6,M="Mbps";else if(m<1e12)F=m/1e9,M="Gbps";else{if(!(m<1e15))throw RangeError(`the rate argument ${m} out of range`);F=m/1e12,M="Tbps"}const N=T-Math.floor(Math.abs(Math.log10(F)))-1;return F.toFixed(N<0?0:N)+E+M}function D(m,E=" ",T=3){let F,M;if(m<=0)return"0"+E+"B/s";if(m<1e3)F=m,M="B/s";else if(m<1e6)F=m/1e3,M="KB/s";else if(m<1e9)F=m/1e6,M="MB/s";else if(m<1e12)F=m/1e9,M="GB/s";else{if(!(m<1e15))throw RangeError(`the rate argument ${m} out of range`);F=m/1e12,M="TB/s"}const N=T-Math.floor(Math.abs(Math.log10(F)))-1;return F.toFixed(N<0?0:N)+E+M}function P(m,E=!1){m>0||(m=0);const T=Math.floor(m/3600),F=Math.floor(m/60%60),M=Math.floor(m%60);let N="";return E?T>0&&(N+=T+":"):(N+=T<10?"0"+T:T,N+=":"),N+=F<10?"0"+F:F,N+=":",N+=M<10?"0"+M:M,N}function R(m){try{const[E,T,F,M]=/(\d{1,2}):(\d{2}):(\d{2})/.exec(m);return 3600*parseInt(T)+60*parseInt(F)+parseInt(M)}catch(E){return console.error(`Failed to parse duration: ${m}`,E),null}}function S(m){return h(m)}function O(m){try{const[E,T,F]=/^(\d+(?:\.\d+)?)\s*([TGMK]?B)$/.exec(m);switch(F){case"B":return parseFloat(T);case"KB":return 1024*parseFloat(T);case"MB":return 1048576*parseFloat(T);case"GB":return 1024**3*parseFloat(T);case"TB":return 1024**4*parseFloat(T);default:return console.warn(`Unexpected unit: ${F}`,m),null}}catch(E){return console.error(`Failed to parse filesize: ${m}`,E),null}}},855:function(X){X.exports=function(){"use strict";var x=/^(b|B)$/,s={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},t={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},n={floor:Math.floor,ceil:Math.ceil};function o(h){var e,y,b,D,P,R,S,O,m,E,T,F,M,N,z,v,C,f,L,J,Z,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},I=[],U=0;if(isNaN(h))throw new TypeError("Invalid number");if(b=!0===Q.bits,z=!0===Q.unix,F=!0===Q.pad,M=void 0!==Q.round?Q.round:z?1:2,S=void 0!==Q.locale?Q.locale:"",O=Q.localeOptions||{},v=void 0!==Q.separator?Q.separator:"",C=void 0!==Q.spacer?Q.spacer:z?"":" ",L=Q.symbols||{},f=2===(y=Q.base||2)&&Q.standard||"jedec",T=Q.output||"string",P=!0===Q.fullform,R=Q.fullforms instanceof Array?Q.fullforms:[],e=void 0!==Q.exponent?Q.exponent:-1,J=n[Q.roundingMethod]||Math.round,m=(E=Number(h))<0,D=y>2?1e3:1024,Z=!1===isNaN(Q.precision)?parseInt(Q.precision,10):0,m&&(E=-E),(-1===e||isNaN(e))&&(e=Math.floor(Math.log(E)/Math.log(D)))<0&&(e=0),e>8&&(Z>0&&(Z+=8-e),e=8),"exponent"===T)return e;if(0===E)I[0]=0,N=I[1]=z?"":s[f][b?"bits":"bytes"][e];else{U=E/(2===y?Math.pow(2,10*e):Math.pow(1e3,e)),b&&(U*=8)>=D&&e<8&&(U/=D,e++);var ae=Math.pow(10,e>0?M:0);I[0]=J(U*ae)/ae,I[0]===D&&e<8&&void 0===Q.exponent&&(I[0]=1,e++),N=I[1]=10===y&&1===e?b?"kb":"kB":s[f][b?"bits":"bytes"][e],z&&(I[1]="jedec"===f?I[1].charAt(0):e>0?I[1].replace(/B$/,""):I[1],x.test(I[1])&&(I[0]=Math.floor(I[0]),I[1]=""))}if(m&&(I[0]=-I[0]),Z>0&&(I[0]=I[0].toPrecision(Z)),I[1]=L[I[1]]||I[1],!0===S?I[0]=I[0].toLocaleString():S.length>0?I[0]=I[0].toLocaleString(S,O):v.length>0&&(I[0]=I[0].toString().replace(".",v)),F&&!1===Number.isInteger(I[0])&&M>0){var pe=v||".",me=I[0].toString().split(pe),be=me[1]||"",Ee=be.length,Te=M-Ee;I[0]="".concat(me[0]).concat(pe).concat(be.padEnd(Ee+Te,"0"))}return P&&(I[1]=R[e]?R[e]:t[f][e]+(b?"bit":"byte")+(1===I[0]?"":"s")),"array"===T?I:"object"===T?{value:I[0],symbol:I[1],exponent:e,unit:N}:I.join(C)}return o.partial=function(h){return function(e){return o(e,h)}},o}()},2622:(X,x,s)=>{"use strict";s.d(x,{Z:()=>M});var o=s(3093);const e=function h(N,z){for(var v=N.length;v--;)if((0,o.Z)(N[v][0],z))return v;return-1};var b=Array.prototype.splice;function F(N){var z=-1,v=null==N?0:N.length;for(this.clear();++z-1},F.prototype.set=function E(N,z){var v=this.__data__,C=e(v,N);return C<0?(++this.size,v.push([N,z])):v[C][1]=z,this};const M=F},9329:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(3858),n=s(5946);const h=(0,t.Z)(n.Z,"Map")},3639:(X,x,s)=>{"use strict";s.d(x,{Z:()=>_e});const o=(0,s(3858).Z)(Object,"create");var R=Object.prototype.hasOwnProperty;var E=Object.prototype.hasOwnProperty;function v(te){var re=-1,B=null==te?0:te.length;for(this.clear();++re{"use strict";s.d(x,{Z:()=>F});var t=s(2622);var R=s(9329),S=s(3639);function T(M){var N=this.__data__=new t.Z(M);this.size=N.size}T.prototype.clear=function n(){this.__data__=new t.Z,this.size=0},T.prototype.delete=function h(M){var N=this.__data__,z=N.delete(M);return this.size=N.size,z},T.prototype.get=function y(M){return this.__data__.get(M)},T.prototype.has=function D(M){return this.__data__.has(M)},T.prototype.set=function m(M,N){var z=this.__data__;if(z instanceof t.Z){var v=z.__data__;if(!R.Z||v.length<199)return v.push([M,N]),this.size=++z.size,this;z=this.__data__=new S.Z(v)}return z.set(M,N),this.size=z.size,this};const F=T},8492:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=s(5946).Z.Symbol},1630:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=s(5946).Z.Uint8Array},7585:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){for(var e=-1,y=null==o?0:o.length;++e{"use strict";s.d(x,{Z:()=>S});var o=s(4825),h=s(4177),e=s(5202),y=s(6667),b=s(7583),P=Object.prototype.hasOwnProperty;const S=function R(O,m){var E=(0,h.Z)(O),T=!E&&(0,o.Z)(O),F=!E&&!T&&(0,e.Z)(O),M=!E&&!T&&!F&&(0,b.Z)(O),N=E||T||F||M,z=N?function t(O,m){for(var E=-1,T=Array(O);++E{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){for(var e=-1,y=h.length,b=o.length;++e{"use strict";s.d(x,{Z:()=>y});var t=s(3496),n=s(3093),h=Object.prototype.hasOwnProperty;const y=function e(b,D,P){var R=b[D];(!h.call(b,D)||!(0,n.Z)(R,P)||void 0===P&&!(D in b))&&(0,t.Z)(b,D,P)}},3496:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});var t=s(2370);const o=function n(h,e,y){"__proto__"==e&&t.Z?(0,t.Z)(h,e,{configurable:!0,enumerable:!0,value:y,writable:!0}):h[e]=y}},4792:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(1999),n=Object.create;const h=function(){function e(){}return function(y){if(!(0,t.Z)(y))return{};if(n)return n(y);e.prototype=y;var b=new e;return e.prototype=void 0,b}}()},1149:(X,x,s)=>{"use strict";s.d(x,{Z:()=>b});const h=function t(D){return function(P,R,S){for(var O=-1,m=Object(P),E=S(P),T=E.length;T--;){var F=E[D?T:++O];if(!1===R(m[F],F,m))break}return P}}();var e=s(1952);const b=function y(D,P){return D&&h(D,P,e.Z)}},7298:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(3449),n=s(2168);const h=function o(e,y){for(var b=0,D=(y=(0,t.Z)(y,e)).length;null!=e&&b{"use strict";s.d(x,{Z:()=>h});var t=s(6623),n=s(4177);const h=function o(e,y,b){var D=y(e);return(0,n.Z)(e)?D:(0,t.Z)(D,b(e))}},7079:(X,x,s)=>{"use strict";s.d(x,{Z:()=>F});var t=s(8492),n=Object.prototype,o=n.hasOwnProperty,h=n.toString,e=t.Z?t.Z.toStringTag:void 0;var P=Object.prototype.toString;var E=t.Z?t.Z.toStringTag:void 0;const F=function T(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":E&&E in Object(M)?function y(M){var N=o.call(M,e),z=M[e];try{M[e]=void 0;var v=!0}catch(f){}var C=h.call(M);return v&&(N?M[e]=z:delete M[e]),C}(M):function R(M){return P.call(M)}(M)}},771:(X,x,s)=>{"use strict";s.d(x,{Z:()=>ut});var t=s(5343),n=s(3639);function D(H){var q=-1,fe=null==H?0:H.length;for(this.__data__=new n.Z;++qwe))return!1;var Re=se.get(H),De=se.get(q);if(Re&&De)return Re==q&&De==H;var Ne=-1,ye=!0,Ve=2&fe?new P:void 0;for(se.set(H,q),se.set(q,H);++Ne{"use strict";s.d(x,{Z:()=>le});var t=s(5343),n=s(771);var b=s(1999);const P=function D($){return $==$&&!(0,b.Z)($)};var R=s(1952);const E=function m($,ee){return function(_e){return null!=_e&&_e[$]===ee&&(void 0!==ee||$ in Object(_e))}},F=function T($){var ee=function S($){for(var ee=(0,R.Z)($),_e=ee.length;_e--;){var te=ee[_e],re=$[te];ee[_e]=[te,re,P(re)]}return ee}($);return 1==ee.length&&ee[0][2]?E(ee[0][0],ee[0][1]):function(_e){return _e===$||function e($,ee,_e,te){var re=_e.length,B=re,ne=!te;if(null==$)return!B;for($=Object($);re--;){var k=_e[re];if(ne&&k[2]?k[1]!==$[k[0]]:!(k[0]in $))return!1}for(;++re{"use strict";s.d(x,{Z:()=>D});var t=s(1986);const h=(0,s(5820).Z)(Object.keys,Object);var y=Object.prototype.hasOwnProperty;const D=function b(P){if(!(0,t.Z)(P))return h(P);var R=[];for(var S in Object(P))y.call(P,S)&&"constructor"!=S&&R.push(S);return R}},6932:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o){return function(h){return o(h)}}},3449:(X,x,s)=>{"use strict";s.d(x,{Z:()=>Q});var t=s(4177),n=s(8042),o=s(3639);function e(I,U){if("function"!=typeof I||null!=U&&"function"!=typeof U)throw new TypeError("Expected a function");var ae=function(){var pe=arguments,me=U?U.apply(this,pe):pe[0],be=ae.cache;if(be.has(me))return be.get(me);var Ee=I.apply(this,pe);return ae.cache=be.set(me,Ee)||be,Ee};return ae.cache=new(e.Cache||o.Z),ae}e.Cache=o.Z;const y=e;var R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g;const m=function D(I){var U=y(I,function(pe){return 500===ae.size&&ae.clear(),pe}),ae=U.cache;return U}(function(I){var U=[];return 46===I.charCodeAt(0)&&U.push(""),I.replace(R,function(ae,pe,me,be){U.push(me?be.replace(S,"$1"):pe||ae)}),U});var E=s(8492);var M=s(6460),z=E.Z?E.Z.prototype:void 0,v=z?z.toString:void 0;const f=function C(I){if("string"==typeof I)return I;if((0,t.Z)(I))return function T(I,U){for(var ae=-1,pe=null==I?0:I.length,me=Array(pe);++ae{"use strict";s.d(x,{Z:()=>o});var t=s(3858);const o=function(){try{var h=(0,t.Z)(Object,"defineProperty");return h({},"",{}),h}catch(e){}}()},8346:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},8501:(X,x,s)=>{"use strict";s.d(x,{Z:()=>e});var t=s(8203),n=s(3976),o=s(1952);const e=function h(y){return(0,t.Z)(y,o.Z,n.Z)}},3858:(X,x,s)=>{"use strict";s.d(x,{Z:()=>f});var L,t=s(2089),o=s(5946).Z["__core-js_shared__"],e=(L=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";var D=s(1999),P=s(4407),S=/^\[object .+?Constructor\]$/,F=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const N=function M(L){return!(!(0,D.Z)(L)||function y(L){return!!e&&e in L}(L))&&((0,t.Z)(L)?F:S).test((0,P.Z)(L))},f=function C(L,J){var Z=function z(L,J){return null==L?void 0:L[J]}(L,J);return N(Z)?Z:void 0}},5650:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=(0,s(5820).Z)(Object.getPrototypeOf,Object)},3976:(X,x,s)=>{"use strict";s.d(x,{Z:()=>D});var o=s(3419),e=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols;const D=y?function(P){return null==P?[]:(P=Object(P),function t(P,R){for(var S=-1,O=null==P?0:P.length,m=0,E=[];++S{"use strict";s.d(x,{Z:()=>Q});var t=s(3858),n=s(5946);const h=(0,t.Z)(n.Z,"DataView");var e=s(9329);const b=(0,t.Z)(n.Z,"Promise"),P=(0,t.Z)(n.Z,"Set"),S=(0,t.Z)(n.Z,"WeakMap");var O=s(7079),m=s(4407),E="[object Map]",F="[object Promise]",M="[object Set]",N="[object WeakMap]",z="[object DataView]",v=(0,m.Z)(h),C=(0,m.Z)(e.Z),f=(0,m.Z)(b),L=(0,m.Z)(P),J=(0,m.Z)(S),Z=O.Z;(h&&Z(new h(new ArrayBuffer(1)))!=z||e.Z&&Z(new e.Z)!=E||b&&Z(b.resolve())!=F||P&&Z(new P)!=M||S&&Z(new S)!=N)&&(Z=function(I){var U=(0,O.Z)(I),ae="[object Object]"==U?I.constructor:void 0,pe=ae?(0,m.Z)(ae):"";if(pe)switch(pe){case v:return z;case C:return E;case f:return F;case L:return M;case J:return N}return U});const Q=Z},6667:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var n=/^(?:0|[1-9]\d*)$/;const h=function o(e,y){var b=typeof e;return!!(y=null==y?9007199254740991:y)&&("number"==b||"symbol"!=b&&n.test(e))&&e>-1&&e%1==0&&e{"use strict";s.d(x,{Z:()=>y});var t=s(4177),n=s(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const y=function e(b,D){if((0,t.Z)(b))return!1;var P=typeof b;return!("number"!=P&&"symbol"!=P&&"boolean"!=P&&null!=b&&!(0,n.Z)(b))||h.test(b)||!o.test(b)||null!=D&&b in Object(D)}},1986:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});var t=Object.prototype;const o=function n(h){var e=h&&h.constructor;return h===("function"==typeof e&&e.prototype||t)}},6594:(X,x,s)=>{"use strict";s.d(x,{Z:()=>b});var t=s(8346),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,e=o&&o.exports===n&&t.Z.process;const b=function(){try{return o&&o.require&&o.require("util").types||e&&e.binding&&e.binding("util")}catch(P){}}()},5820:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){return function(e){return o(h(e))}}},5946:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(8346),n="object"==typeof self&&self&&self.Object===Object&&self;const h=t.Z||n||Function("return this")()},2168:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(6460);const h=function o(e){if("string"==typeof e||(0,t.Z)(e))return e;var y=e+"";return"0"==y&&1/e==-1/0?"-0":y}},4407:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var n=Function.prototype.toString;const h=function o(e){if(null!=e){try{return n.call(e)}catch(y){}try{return e+""}catch(y){}}return""}},3523:(X,x,s)=>{"use strict";s.d(x,{Z:()=>_n});var t=s(5343),n=s(7585),o=s(1481),h=s(3496);const y=function e(W,ce,Ce,We){var Ct=!Ce;Ce||(Ce={});for(var at=-1,je=ce.length;++at{"use strict";s.d(x,{Z:()=>n});const n=function t(o,h){return o===h||o!=o&&h!=h}},5867:(X,x,s)=>{"use strict";s.d(x,{Z:()=>O});const n=function t(m,E){return null!=m&&E in Object(m)};var o=s(3449),h=s(4825),e=s(4177),y=s(6667),b=s(8696),D=s(2168);const O=function S(m,E){return null!=m&&function P(m,E,T){for(var F=-1,M=(E=(0,o.Z)(E,m)).length,N=!1;++F{"use strict";s.d(x,{Z:()=>n});const n=function t(o){return o}},4825:(X,x,s)=>{"use strict";s.d(x,{Z:()=>R});var t=s(7079),n=s(214);const e=function h(S){return(0,n.Z)(S)&&"[object Arguments]"==(0,t.Z)(S)};var y=Object.prototype,b=y.hasOwnProperty,D=y.propertyIsEnumerable;const R=e(function(){return arguments}())?e:function(S){return(0,n.Z)(S)&&b.call(S,"callee")&&!D.call(S,"callee")}},4177:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=Array.isArray},8706:(X,x,s)=>{"use strict";s.d(x,{Z:()=>h});var t=s(2089),n=s(8696);const h=function o(e){return null!=e&&(0,n.Z)(e.length)&&!(0,t.Z)(e)}},5202:(X,x,s)=>{"use strict";s.d(x,{Z:()=>R});var t=s(5946),h="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=h&&"object"==typeof module&&module&&!module.nodeType&&module,b=e&&e.exports===h?t.Z.Buffer:void 0;const R=(b?b.isBuffer:void 0)||function n(){return!1}},1854:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});var t=s(771);const o=function n(h,e){return(0,t.Z)(h,e)}},2089:(X,x,s)=>{"use strict";s.d(x,{Z:()=>D});var t=s(7079),n=s(1999);const D=function b(P){if(!(0,n.Z)(P))return!1;var R=(0,t.Z)(P);return"[object Function]"==R||"[object GeneratorFunction]"==R||"[object AsyncFunction]"==R||"[object Proxy]"==R}},8696:(X,x,s)=>{"use strict";s.d(x,{Z:()=>o});const o=function n(h){return"number"==typeof h&&h>-1&&h%1==0&&h<=9007199254740991}},1999:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o){var h=typeof o;return null!=o&&("object"==h||"function"==h)}},214:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(o){return null!=o&&"object"==typeof o}},6460:(X,x,s)=>{"use strict";s.d(x,{Z:()=>e});var t=s(7079),n=s(214);const e=function h(y){return"symbol"==typeof y||(0,n.Z)(y)&&"[object Symbol]"==(0,t.Z)(y)}},7583:(X,x,s)=>{"use strict";s.d(x,{Z:()=>Y});var t=s(7079),n=s(8696),o=s(214),U={};U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U["[object Arguments]"]=U["[object Array]"]=U["[object ArrayBuffer]"]=U["[object Boolean]"]=U["[object DataView]"]=U["[object Date]"]=U["[object Error]"]=U["[object Function]"]=U["[object Map]"]=U["[object Number]"]=U["[object Object]"]=U["[object RegExp]"]=U["[object Set]"]=U["[object String]"]=U["[object WeakMap]"]=!1;var me=s(6932),be=s(6594),Ee=be.Z&&be.Z.isTypedArray;const Y=Ee?(0,me.Z)(Ee):function ae(le){return(0,o.Z)(le)&&(0,n.Z)(le.length)&&!!U[(0,t.Z)(le)]}},1952:(X,x,s)=>{"use strict";s.d(x,{Z:()=>e});var t=s(3487),n=s(4884),o=s(8706);const e=function h(y){return(0,o.Z)(y)?(0,t.Z)(y):(0,n.Z)(y)}},3419:(X,x,s)=>{"use strict";s.d(x,{Z:()=>n});const n=function t(){return[]}},6422:(X,x,s)=>{"use strict";s.d(x,{Z:()=>O});var t=s(7585),n=s(4792),o=s(1149),h=s(7242),e=s(5650),y=s(4177),b=s(5202),D=s(2089),P=s(1999),R=s(7583);const O=function S(m,E,T){var F=(0,y.Z)(m),M=F||(0,b.Z)(m)||(0,R.Z)(m);if(E=(0,h.Z)(E,4),null==T){var N=m&&m.constructor;T=M?F?new N:[]:(0,P.Z)(m)&&(0,D.Z)(N)?(0,n.Z)((0,e.Z)(m)):{}}return(M?t.Z:o.Z)(m,function(z,v,C){return E(T,z,v,C)}),T}},6699:(X,x,s)=>{"use strict";s.d(x,{Dz:()=>T,Rt:()=>M});var t=s(655),n=s(5e3),o=s(9439),h=s(1721),e=s(925),y=s(9808),b=s(647),D=s(226);const P=["textEl"];function R(N,z){if(1&N&&n._UZ(0,"i",3),2&N){const v=n.oxw();n.Q6J("nzType",v.nzIcon)}}function S(N,z){if(1&N){const v=n.EpF();n.TgZ(0,"img",4),n.NdJ("error",function(f){return n.CHM(v),n.oxw().imgError(f)}),n.qZA()}if(2&N){const v=n.oxw();n.Q6J("src",v.nzSrc,n.LSH),n.uIk("srcset",v.nzSrcSet,n.LSH)("alt",v.nzAlt)}}function O(N,z){if(1&N&&(n.TgZ(0,"span",5,6),n._uU(2),n.qZA()),2&N){const v=n.oxw();n.Q6J("ngStyle",v.textStyles),n.xp6(2),n.Oqu(v.nzText)}}let T=(()=>{class N{constructor(v,C,f,L){this.nzConfigService=v,this.elementRef=C,this.cdr=f,this.platform=L,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new n.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(v){this.nzError.emit(v),v.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const v=this.textEl.nativeElement.offsetWidth,C=this.el.getBoundingClientRect().width,f=2*this.nzGap{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return N.\u0275fac=function(v){return new(v||N)(n.Y36(o.jY),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(e.t4))},N.\u0275cmp=n.Xpm({type:N,selectors:[["nz-avatar"]],viewQuery:function(v,C){if(1&v&&n.Gf(P,5),2&v){let f;n.iGM(f=n.CRH())&&(C.textEl=f.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(v,C){2&v&&(n.Udp("width",C.customSize)("height",C.customSize)("line-height",C.customSize)("font-size",C.hasIcon&&C.customSize?C.nzSize/2:null,"px"),n.ekj("ant-avatar-lg","large"===C.nzSize)("ant-avatar-sm","small"===C.nzSize)("ant-avatar-square","square"===C.nzShape)("ant-avatar-circle","circle"===C.nzShape)("ant-avatar-icon",C.nzIcon)("ant-avatar-image",C.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[n.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(v,C){1&v&&(n.YNc(0,R,1,1,"i",0),n.YNc(1,S,1,3,"img",1),n.YNc(2,O,3,2,"span",2)),2&v&&(n.Q6J("ngIf",C.nzIcon&&C.hasIcon),n.xp6(1),n.Q6J("ngIf",C.nzSrc&&C.hasSrc),n.xp6(1),n.Q6J("ngIf",C.nzText&&C.hasText))},directives:[y.O5,b.Ls,y.PC],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,o.oS)()],N.prototype,"nzShape",void 0),(0,t.gn)([(0,o.oS)()],N.prototype,"nzSize",void 0),(0,t.gn)([(0,o.oS)(),(0,h.Rn)()],N.prototype,"nzGap",void 0),N})(),M=(()=>{class N{}return N.\u0275fac=function(v){return new(v||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({imports:[[D.vT,y.ez,b.PV,e.ud]]}),N})()},6042:(X,x,s)=>{"use strict";s.d(x,{ix:()=>z,fY:()=>v,sL:()=>C});var t=s(655),n=s(5e3),o=s(8929),h=s(3753),e=s(7625),y=s(1059),b=s(2198),D=s(9439),P=s(1721),R=s(647),S=s(226),O=s(9808),m=s(2683),E=s(2643);const T=["nz-button",""];function F(f,L){1&f&&n._UZ(0,"i",1)}const M=["*"],N="button";let z=(()=>{class f{constructor(J,Z,Q,I,U,ae){this.ngZone=J,this.elementRef=Z,this.cdr=Q,this.renderer=I,this.nzConfigService=U,this.directionality=ae,this._nzModuleName=N,this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ,this.loading$=new o.xQ,this.nzConfigService.getConfigChangeEventForComponent(N).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(J,Z){J.forEach(Q=>{if("#text"===Q.nodeName){const I=Z.createElement("span"),U=Z.parentNode(Q);Z.insertBefore(U,I,Q),Z.appendChild(I,Q)}})}assertIconOnly(J,Z){const Q=Array.from(J.childNodes),I=Q.filter(me=>"I"===me.nodeName).length,U=Q.every(me=>"#text"!==me.nodeName);Q.every(me=>"SPAN"!==me.nodeName)&&U&&I>=1&&Z.addClass(J,"ant-btn-icon-only")}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,e.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.elementRef.nativeElement,"click").pipe((0,e.R)(this.destroy$)).subscribe(Z=>{var Q;this.disabled&&"A"===(null===(Q=Z.target)||void 0===Q?void 0:Q.tagName)&&(Z.preventDefault(),Z.stopImmediatePropagation())})})}ngOnChanges(J){const{nzLoading:Z}=J;Z&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,y.O)(this.nzLoading),(0,b.h)(()=>!!this.nzIconDirectiveElement),(0,e.R)(this.destroy$)).subscribe(J=>{const Z=this.nzIconDirectiveElement.nativeElement;J?this.renderer.setStyle(Z,"display","none"):this.renderer.removeStyle(Z,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(J){return new(J||f)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.Qsj),n.Y36(D.jY),n.Y36(S.Is,8))},f.\u0275cmp=n.Xpm({type:f,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(J,Z,Q){if(1&J&&n.Suo(Q,R.Ls,5,n.SBq),2&J){let I;n.iGM(I=n.CRH())&&(Z.nzIconDirectiveElement=I.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(J,Z){2&J&&(n.uIk("tabindex",Z.disabled?-1:null===Z.tabIndex?null:Z.tabIndex)("disabled",Z.disabled||null),n.ekj("ant-btn-primary","primary"===Z.nzType)("ant-btn-dashed","dashed"===Z.nzType)("ant-btn-link","link"===Z.nzType)("ant-btn-text","text"===Z.nzType)("ant-btn-circle","circle"===Z.nzShape)("ant-btn-round","round"===Z.nzShape)("ant-btn-lg","large"===Z.nzSize)("ant-btn-sm","small"===Z.nzSize)("ant-btn-dangerous",Z.nzDanger)("ant-btn-loading",Z.nzLoading)("ant-btn-background-ghost",Z.nzGhost)("ant-btn-block",Z.nzBlock)("ant-input-search-button",Z.nzSearch)("ant-btn-rtl","rtl"===Z.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[n.TTD],attrs:T,ngContentSelectors:M,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(J,Z){1&J&&(n.F$t(),n.YNc(0,F,1,0,"i",0),n.Hsn(1)),2&J&&n.Q6J("ngIf",Z.nzLoading)},directives:[O.O5,R.Ls,m.w],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,P.yF)()],f.prototype,"nzBlock",void 0),(0,t.gn)([(0,P.yF)()],f.prototype,"nzGhost",void 0),(0,t.gn)([(0,P.yF)()],f.prototype,"nzSearch",void 0),(0,t.gn)([(0,P.yF)()],f.prototype,"nzLoading",void 0),(0,t.gn)([(0,P.yF)()],f.prototype,"nzDanger",void 0),(0,t.gn)([(0,P.yF)()],f.prototype,"disabled",void 0),(0,t.gn)([(0,D.oS)()],f.prototype,"nzSize",void 0),f})(),v=(()=>{class f{constructor(J){this.directionality=J,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ}ngOnInit(){var J;this.dir=this.directionality.value,null===(J=this.directionality.change)||void 0===J||J.pipe((0,e.R)(this.destroy$)).subscribe(Z=>{this.dir=Z})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(J){return new(J||f)(n.Y36(S.Is,8))},f.\u0275cmp=n.Xpm({type:f,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(J,Z){2&J&&n.ekj("ant-btn-group-lg","large"===Z.nzSize)("ant-btn-group-sm","small"===Z.nzSize)("ant-btn-group-rtl","rtl"===Z.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:M,decls:1,vars:0,template:function(J,Z){1&J&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),C=(()=>{class f{}return f.\u0275fac=function(J){return new(J||f)},f.\u0275mod=n.oAB({type:f}),f.\u0275inj=n.cJS({imports:[[S.vT,O.ez,E.vG,R.PV,m.a],m.a,E.vG]}),f})()},7484:(X,x,s)=>{"use strict";s.d(x,{bd:()=>_e,l7:()=>te,vh:()=>re});var t=s(655),n=s(5e3),o=s(1721),h=s(8929),e=s(7625),y=s(9439),b=s(226),D=s(9808),P=s(969);function R(B,ne){1&B&&n.Hsn(0)}const S=["*"];function O(B,ne){1&B&&(n.TgZ(0,"div",4),n._UZ(1,"div",5),n.qZA()),2&B&&n.Q6J("ngClass",ne.$implicit)}function m(B,ne){if(1&B&&(n.TgZ(0,"div",2),n.YNc(1,O,2,1,"div",3),n.qZA()),2&B){const k=ne.$implicit;n.xp6(1),n.Q6J("ngForOf",k)}}function E(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzTitle)}}function T(B,ne){if(1&B&&(n.TgZ(0,"div",11),n.YNc(1,E,2,1,"ng-container",12),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzTitle)}}function F(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzExtra)}}function M(B,ne){if(1&B&&(n.TgZ(0,"div",13),n.YNc(1,F,2,1,"ng-container",12),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzExtra)}}function N(B,ne){}function z(B,ne){if(1&B&&(n.ynx(0),n.YNc(1,N,0,0,"ng-template",14),n.BQk()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",k.listOfNzCardTabComponent.template)}}function v(B,ne){if(1&B&&(n.TgZ(0,"div",6),n.TgZ(1,"div",7),n.YNc(2,T,2,1,"div",8),n.YNc(3,M,2,1,"div",9),n.qZA(),n.YNc(4,z,2,1,"ng-container",10),n.qZA()),2&B){const k=n.oxw();n.xp6(2),n.Q6J("ngIf",k.nzTitle),n.xp6(1),n.Q6J("ngIf",k.nzExtra),n.xp6(1),n.Q6J("ngIf",k.listOfNzCardTabComponent)}}function C(B,ne){}function f(B,ne){if(1&B&&(n.TgZ(0,"div",15),n.YNc(1,C,0,0,"ng-template",14),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",k.nzCover)}}function L(B,ne){1&B&&(n.ynx(0),n.Hsn(1),n.BQk())}function J(B,ne){1&B&&n._UZ(0,"nz-card-loading")}function Z(B,ne){}function Q(B,ne){if(1&B&&(n.TgZ(0,"li"),n.TgZ(1,"span"),n.YNc(2,Z,0,0,"ng-template",14),n.qZA(),n.qZA()),2&B){const k=ne.$implicit,ie=n.oxw(2);n.Udp("width",100/ie.nzActions.length,"%"),n.xp6(2),n.Q6J("ngTemplateOutlet",k)}}function I(B,ne){if(1&B&&(n.TgZ(0,"ul",16),n.YNc(1,Q,3,3,"li",17),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngForOf",k.nzActions)}}function U(B,ne){}function ae(B,ne){if(1&B&&(n.TgZ(0,"div",2),n.YNc(1,U,0,0,"ng-template",3),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",k.nzAvatar)}}function pe(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzTitle)}}function me(B,ne){if(1&B&&(n.TgZ(0,"div",7),n.YNc(1,pe,2,1,"ng-container",8),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzTitle)}}function be(B,ne){if(1&B&&(n.ynx(0),n._uU(1),n.BQk()),2&B){const k=n.oxw(3);n.xp6(1),n.Oqu(k.nzDescription)}}function Ee(B,ne){if(1&B&&(n.TgZ(0,"div",9),n.YNc(1,be,2,1,"ng-container",8),n.qZA()),2&B){const k=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",k.nzDescription)}}function Te(B,ne){if(1&B&&(n.TgZ(0,"div",4),n.YNc(1,me,2,1,"div",5),n.YNc(2,Ee,2,1,"div",6),n.qZA()),2&B){const k=n.oxw();n.xp6(1),n.Q6J("ngIf",k.nzTitle),n.xp6(1),n.Q6J("ngIf",k.nzDescription)}}let Y=(()=>{class B{constructor(){this.nzHoverable=!0}}return B.\u0275fac=function(k){return new(k||B)},B.\u0275dir=n.lG2({type:B,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(k,ie){2&k&&n.ekj("ant-card-hoverable",ie.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,t.gn)([(0,o.yF)()],B.prototype,"nzHoverable",void 0),B})(),le=(()=>{class B{}return B.\u0275fac=function(k){return new(k||B)},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card-tab"]],viewQuery:function(k,ie){if(1&k&&n.Gf(n.Rgc,7),2&k){let K;n.iGM(K=n.CRH())&&(ie.template=K.first)}},exportAs:["nzCardTab"],ngContentSelectors:S,decls:1,vars:0,template:function(k,ie){1&k&&(n.F$t(),n.YNc(0,R,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),B})(),$=(()=>{class B{constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return B.\u0275fac=function(k){return new(k||B)},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(k,ie){1&k&&(n.TgZ(0,"div",0),n.YNc(1,m,2,1,"div",1),n.qZA()),2&k&&(n.xp6(1),n.Q6J("ngForOf",ie.listOfLoading))},directives:[D.sg,D.mk],encapsulation:2,changeDetection:0}),B})(),_e=(()=>{class B{constructor(k,ie,K){this.nzConfigService=k,this.cdr=ie,this.directionality=K,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new h.xQ,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var k;null===(k=this.directionality.change)||void 0===k||k.pipe((0,e.R)(this.destroy$)).subscribe(ie=>{this.dir=ie,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return B.\u0275fac=function(k){return new(k||B)(n.Y36(y.jY),n.Y36(n.sBO),n.Y36(b.Is,8))},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card"]],contentQueries:function(k,ie,K){if(1&k&&(n.Suo(K,le,5),n.Suo(K,Y,4)),2&k){let ze;n.iGM(ze=n.CRH())&&(ie.listOfNzCardTabComponent=ze.first),n.iGM(ze=n.CRH())&&(ie.listOfNzCardGridDirective=ze)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(k,ie){2&k&&n.ekj("ant-card-loading",ie.nzLoading)("ant-card-bordered",!1===ie.nzBorderless&&ie.nzBordered)("ant-card-hoverable",ie.nzHoverable)("ant-card-small","small"===ie.nzSize)("ant-card-contain-grid",ie.listOfNzCardGridDirective&&ie.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===ie.nzType)("ant-card-contain-tabs",!!ie.listOfNzCardTabComponent)("ant-card-rtl","rtl"===ie.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:S,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(k,ie){if(1&k&&(n.F$t(),n.YNc(0,v,5,3,"div",0),n.YNc(1,f,2,1,"div",1),n.TgZ(2,"div",2),n.YNc(3,L,2,0,"ng-container",3),n.YNc(4,J,1,0,"ng-template",null,4,n.W1O),n.qZA(),n.YNc(6,I,2,1,"ul",5)),2&k){const K=n.MAs(5);n.Q6J("ngIf",ie.nzTitle||ie.nzExtra||ie.listOfNzCardTabComponent),n.xp6(1),n.Q6J("ngIf",ie.nzCover),n.xp6(1),n.Q6J("ngStyle",ie.nzBodyStyle),n.xp6(1),n.Q6J("ngIf",!ie.nzLoading)("ngIfElse",K),n.xp6(3),n.Q6J("ngIf",ie.nzActions.length)}},directives:[$,D.O5,P.f,D.tP,D.PC,D.sg],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,y.oS)(),(0,o.yF)()],B.prototype,"nzBordered",void 0),(0,t.gn)([(0,y.oS)(),(0,o.yF)()],B.prototype,"nzBorderless",void 0),(0,t.gn)([(0,o.yF)()],B.prototype,"nzLoading",void 0),(0,t.gn)([(0,y.oS)(),(0,o.yF)()],B.prototype,"nzHoverable",void 0),(0,t.gn)([(0,y.oS)()],B.prototype,"nzSize",void 0),B})(),te=(()=>{class B{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return B.\u0275fac=function(k){return new(k||B)},B.\u0275cmp=n.Xpm({type:B,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(k,ie){1&k&&(n.YNc(0,ae,2,1,"div",0),n.YNc(1,Te,3,2,"div",1)),2&k&&(n.Q6J("ngIf",ie.nzAvatar),n.xp6(1),n.Q6J("ngIf",ie.nzTitle||ie.nzDescription))},directives:[D.O5,D.tP,P.f],encapsulation:2,changeDetection:0}),B})(),re=(()=>{class B{}return B.\u0275fac=function(k){return new(k||B)},B.\u0275mod=n.oAB({type:B}),B.\u0275inj=n.cJS({imports:[[D.ez,P.T],b.vT]}),B})()},6114:(X,x,s)=>{"use strict";s.d(x,{Ie:()=>F,Wr:()=>N});var t=s(655),n=s(5e3),o=s(4182),h=s(8929),e=s(3753),y=s(7625),b=s(1721),D=s(5664),P=s(226),R=s(9808);const S=["*"],O=["inputElement"],m=["nz-checkbox",""];let T=(()=>{class z{constructor(C,f){this.nzOnChange=new n.vpe,this.checkboxList=[],C.addClass(f.nativeElement,"ant-checkbox-group")}addCheckbox(C){this.checkboxList.push(C)}removeCheckbox(C){this.checkboxList.splice(this.checkboxList.indexOf(C),1)}onChange(){const C=this.checkboxList.filter(f=>f.nzChecked).map(f=>f.nzValue);this.nzOnChange.emit(C)}}return z.\u0275fac=function(C){return new(C||z)(n.Y36(n.Qsj),n.Y36(n.SBq))},z.\u0275cmp=n.Xpm({type:z,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:S,decls:1,vars:0,template:function(C,f){1&C&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),z})(),F=(()=>{class z{constructor(C,f,L,J,Z,Q){this.ngZone=C,this.elementRef=f,this.nzCheckboxWrapperComponent=L,this.cdr=J,this.focusMonitor=Z,this.directionality=Q,this.dir="ltr",this.destroy$=new h.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new n.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(C){this.nzDisabled||(this.nzChecked=C,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(C){this.nzChecked=C,this.cdr.markForCheck()}registerOnChange(C){this.onChange=C}registerOnTouched(C){this.onTouched=C}setDisabledState(C){this.nzDisabled=C,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,y.R)(this.destroy$)).subscribe(C=>{C||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,y.R)(this.destroy$)).subscribe(C=>{this.dir=C,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,y.R)(this.destroy$)).subscribe(C=>{C.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,y.R)(this.destroy$)).subscribe(C=>C.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return z.\u0275fac=function(C){return new(C||z)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(T,8),n.Y36(n.sBO),n.Y36(D.tE),n.Y36(P.Is,8))},z.\u0275cmp=n.Xpm({type:z,selectors:[["","nz-checkbox",""]],viewQuery:function(C,f){if(1&C&&n.Gf(O,7),2&C){let L;n.iGM(L=n.CRH())&&(f.inputElement=L.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(C,f){2&C&&n.ekj("ant-checkbox-wrapper-checked",f.nzChecked)("ant-checkbox-rtl","rtl"===f.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[n._Bn([{provide:o.JU,useExisting:(0,n.Gpc)(()=>z),multi:!0}])],attrs:m,ngContentSelectors:S,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(C,f){1&C&&(n.F$t(),n.TgZ(0,"span",0),n.TgZ(1,"input",1,2),n.NdJ("ngModelChange",function(J){return f.innerCheckedChange(J)}),n.qZA(),n._UZ(3,"span",3),n.qZA(),n.TgZ(4,"span"),n.Hsn(5),n.qZA()),2&C&&(n.ekj("ant-checkbox-checked",f.nzChecked&&!f.nzIndeterminate)("ant-checkbox-disabled",f.nzDisabled)("ant-checkbox-indeterminate",f.nzIndeterminate),n.xp6(1),n.Q6J("checked",f.nzChecked)("ngModel",f.nzChecked)("disabled",f.nzDisabled),n.uIk("autofocus",f.nzAutoFocus?"autofocus":null)("id",f.nzId))},directives:[o.Wl,o.JJ,o.On],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,b.yF)()],z.prototype,"nzAutoFocus",void 0),(0,t.gn)([(0,b.yF)()],z.prototype,"nzDisabled",void 0),(0,t.gn)([(0,b.yF)()],z.prototype,"nzIndeterminate",void 0),(0,t.gn)([(0,b.yF)()],z.prototype,"nzChecked",void 0),z})(),N=(()=>{class z{}return z.\u0275fac=function(C){return new(C||z)},z.\u0275mod=n.oAB({type:z}),z.\u0275inj=n.cJS({imports:[[P.vT,R.ez,o.u5,D.rt]]}),z})()},2683:(X,x,s)=>{"use strict";s.d(x,{w:()=>o,a:()=>h});var t=s(925),n=s(5e3);let o=(()=>{class e{constructor(b,D){this.elementRef=b,this.renderer=D,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return e.\u0275fac=function(b){return new(b||e)(n.Y36(n.SBq),n.Y36(n.Qsj))},e.\u0275dir=n.lG2({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[n.TTD]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(b){return new(b||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ud]]}),e})()},2643:(X,x,s)=>{"use strict";s.d(x,{dQ:()=>D,vG:()=>P});var t=s(925),n=s(5e3),o=s(6360);class h{constructor(S,O,m,E){this.triggerElement=S,this.ngZone=O,this.insertExtraNode=m,this.platformId=E,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=T=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===T.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const S=this.triggerElement,O=this.getWaveColor(S);S.setAttribute(this.waveAttributeName,"true"),!(Date.now(){S.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(S){return!!S&&"#ffffff"!==S&&"rgb(255, 255, 255)"!==S&&this.isNotGrey(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&"transparent"!==S}isNotGrey(S){const O=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(O&&O[1]&&O[2]&&O[3]&&O[1]===O[2]&&O[2]===O[3])}getWaveColor(S){const O=getComputedStyle(S);return O.getPropertyValue("border-top-color")||O.getPropertyValue("border-color")||O.getPropertyValue("background-color")}runTimeoutOutsideZone(S,O){this.ngZone.runOutsideAngular(()=>setTimeout(S,O))}}const e={disabled:!1},y=new n.OlP("nz-wave-global-options",{providedIn:"root",factory:function b(){return e}});let D=(()=>{class R{constructor(O,m,E,T,F){this.ngZone=O,this.elementRef=m,this.config=E,this.animationType=T,this.platformId=F,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let O=!1;return this.config&&"boolean"==typeof this.config.disabled&&(O=this.config.disabled),"NoopAnimations"===this.animationType&&(O=!0),O}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new h(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return R.\u0275fac=function(O){return new(O||R)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(y,8),n.Y36(o.Qb,8),n.Y36(n.Lbi))},R.\u0275dir=n.lG2({type:R,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),R})(),P=(()=>{class R{}return R.\u0275fac=function(O){return new(O||R)},R.\u0275mod=n.oAB({type:R}),R.\u0275inj=n.cJS({imports:[[t.ud]]}),R})()},5737:(X,x,s)=>{"use strict";s.d(x,{g:()=>P,S:()=>R});var t=s(655),n=s(5e3),o=s(1721),h=s(9808),e=s(969),y=s(226);function b(S,O){if(1&S&&(n.ynx(0),n._uU(1),n.BQk()),2&S){const m=n.oxw(2);n.xp6(1),n.Oqu(m.nzText)}}function D(S,O){if(1&S&&(n.TgZ(0,"span",1),n.YNc(1,b,2,1,"ng-container",2),n.qZA()),2&S){const m=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",m.nzText)}}let P=(()=>{class S{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return S.\u0275fac=function(m){return new(m||S)},S.\u0275cmp=n.Xpm({type:S,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(m,E){2&m&&n.ekj("ant-divider-horizontal","horizontal"===E.nzType)("ant-divider-vertical","vertical"===E.nzType)("ant-divider-with-text",E.nzText)("ant-divider-plain",E.nzPlain)("ant-divider-with-text-left",E.nzText&&"left"===E.nzOrientation)("ant-divider-with-text-right",E.nzText&&"right"===E.nzOrientation)("ant-divider-with-text-center",E.nzText&&"center"===E.nzOrientation)("ant-divider-dashed",E.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(m,E){1&m&&n.YNc(0,D,2,1,"span",0),2&m&&n.Q6J("ngIf",E.nzText)},directives:[h.O5,e.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,o.yF)()],S.prototype,"nzDashed",void 0),(0,t.gn)([(0,o.yF)()],S.prototype,"nzPlain",void 0),S})(),R=(()=>{class S{}return S.\u0275fac=function(m){return new(m||S)},S.\u0275mod=n.oAB({type:S}),S.\u0275inj=n.cJS({imports:[[y.vT,h.ez,e.T]]}),S})()},3677:(X,x,s)=>{"use strict";s.d(x,{cm:()=>le,b1:()=>re,wA:()=>_e,RR:()=>te});var t=s(655),n=s(1159),o=s(7429),h=s(5e3),e=s(8929),y=s(591),b=s(6787),D=s(3753),P=s(8896),R=s(6053),S=s(7604),O=s(4850),m=s(7545),E=s(2198),T=s(7138),F=s(5778),M=s(7625),N=s(9439),z=s(6950),v=s(1721),C=s(2845),f=s(925),L=s(226),J=s(9808),Z=s(4182),Q=s(6042),I=s(4832),U=s(969),ae=s(647),pe=s(4219),me=s(8076);function be(k,ie){if(1&k){const K=h.EpF();h.TgZ(0,"div",0),h.NdJ("@slideMotion.done",function(Me){return h.CHM(K),h.oxw().onAnimationEvent(Me)})("mouseenter",function(){return h.CHM(K),h.oxw().setMouseState(!0)})("mouseleave",function(){return h.CHM(K),h.oxw().setMouseState(!1)}),h.Hsn(1),h.qZA()}if(2&k){const K=h.oxw();h.ekj("ant-dropdown-rtl","rtl"===K.dir),h.Q6J("ngClass",K.nzOverlayClassName)("ngStyle",K.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)("nzNoAnimation",null==K.noAnimation?null:K.noAnimation.nzNoAnimation)}}const Ee=["*"],Y=[z.yW.bottomLeft,z.yW.bottomRight,z.yW.topRight,z.yW.topLeft];let le=(()=>{class k{constructor(K,ze,Me,Pe,Ue,Qe){this.nzConfigService=K,this.elementRef=ze,this.overlay=Me,this.renderer=Pe,this.viewContainerRef=Ue,this.platform=Qe,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new e.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new y.X(!1),this.nzTrigger$=new y.X("hover"),this.overlayClose$=new e.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new h.vpe}setDropdownMenuValue(K,ze){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(K,ze)}ngAfterViewInit(){if(this.nzDropdownMenu){const K=this.elementRef.nativeElement,ze=(0,b.T)((0,D.R)(K,"mouseenter").pipe((0,S.h)(!0)),(0,D.R)(K,"mouseleave").pipe((0,S.h)(!1))),Pe=(0,b.T)(this.nzDropdownMenu.mouseState$,ze),Ue=(0,D.R)(K,"click").pipe((0,O.U)(()=>!this.nzVisible)),Qe=this.nzTrigger$.pipe((0,m.w)(ke=>"hover"===ke?Pe:"click"===ke?Ue:P.E)),Ge=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,E.h)(()=>this.nzClickHide),(0,S.h)(!1)),rt=(0,b.T)(Qe,Ge,this.overlayClose$).pipe((0,E.h)(()=>!this.nzDisabled)),tt=(0,b.T)(this.inputVisible$,rt);(0,R.aj)([tt,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,O.U)(([ke,et])=>ke||et),(0,T.e)(150),(0,F.x)(),(0,E.h)(()=>this.platform.isBrowser),(0,M.R)(this.destroy$)).subscribe(ke=>{const nt=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:K).getBoundingClientRect().width;this.nzVisible!==ke&&this.nzVisibleChange.emit(ke),this.nzVisible=ke,ke?(this.overlayRef?this.overlayRef.getConfig().minWidth=nt:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:nt,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,b.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,E.h)(He=>!this.elementRef.nativeElement.contains(He.target))),this.overlayRef.keydownEvents().pipe((0,E.h)(He=>He.keyCode===n.hY&&!(0,n.Vb)(He)))).pipe((0,M.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([z.yW[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new o.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,M.R)(this.destroy$)).subscribe(ke=>{"void"===ke.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(K){const{nzVisible:ze,nzDisabled:Me,nzOverlayClassName:Pe,nzOverlayStyle:Ue,nzTrigger:Qe}=K;if(Qe&&this.nzTrigger$.next(this.nzTrigger),ze&&this.inputVisible$.next(this.nzVisible),Me){const Ge=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Ge,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Ge,"disabled")}Pe&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Ue&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return k.\u0275fac=function(K){return new(K||k)(h.Y36(N.jY),h.Y36(h.SBq),h.Y36(C.aV),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(f.t4))},k.\u0275dir=h.lG2({type:k,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[h.TTD]}),(0,t.gn)([(0,N.oS)(),(0,v.yF)()],k.prototype,"nzBackdrop",void 0),(0,t.gn)([(0,v.yF)()],k.prototype,"nzClickHide",void 0),(0,t.gn)([(0,v.yF)()],k.prototype,"nzDisabled",void 0),(0,t.gn)([(0,v.yF)()],k.prototype,"nzVisible",void 0),k})(),$=(()=>{class k{}return k.\u0275fac=function(K){return new(K||k)},k.\u0275mod=h.oAB({type:k}),k.\u0275inj=h.cJS({}),k})(),_e=(()=>{class k{constructor(K,ze,Me){this.renderer=K,this.nzButtonGroupComponent=ze,this.elementRef=Me}ngAfterViewInit(){const K=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&K&&this.renderer.addClass(K,"ant-dropdown-button")}}return k.\u0275fac=function(K){return new(K||k)(h.Y36(h.Qsj),h.Y36(Q.fY,9),h.Y36(h.SBq))},k.\u0275dir=h.lG2({type:k,selectors:[["","nz-button","","nz-dropdown",""]]}),k})(),te=(()=>{class k{constructor(K,ze,Me,Pe,Ue,Qe,Ge){this.cdr=K,this.elementRef=ze,this.renderer=Me,this.viewContainerRef=Pe,this.nzMenuService=Ue,this.directionality=Qe,this.noAnimation=Ge,this.mouseState$=new y.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new h.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new e.xQ}onAnimationEvent(K){this.animationStateChange$.emit(K)}setMouseState(K){this.mouseState$.next(K)}setValue(K,ze){this[K]=ze,this.cdr.markForCheck()}ngOnInit(){var K;null===(K=this.directionality.change)||void 0===K||K.pipe((0,M.R)(this.destroy$)).subscribe(ze=>{this.dir=ze,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return k.\u0275fac=function(K){return new(K||k)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(pe.hl),h.Y36(L.Is,8),h.Y36(I.P,9))},k.\u0275cmp=h.Xpm({type:k,selectors:[["nz-dropdown-menu"]],viewQuery:function(K,ze){if(1&K&&h.Gf(h.Rgc,7),2&K){let Me;h.iGM(Me=h.CRH())&&(ze.templateRef=Me.first)}},exportAs:["nzDropdownMenu"],features:[h._Bn([pe.hl,{provide:pe.Cc,useValue:!0}])],ngContentSelectors:Ee,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(K,ze){1&K&&(h.F$t(),h.YNc(0,be,2,7,"ng-template"))},directives:[J.mk,J.PC,I.P],encapsulation:2,data:{animation:[me.mF]},changeDetection:0}),k})(),re=(()=>{class k{}return k.\u0275fac=function(K){return new(K||k)},k.\u0275mod=h.oAB({type:k}),k.\u0275inj=h.cJS({imports:[[L.vT,J.ez,C.U8,Z.u5,Q.sL,pe.ip,ae.PV,I.g,f.ud,z.e4,$,U.T],pe.ip]}),k})();new C.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new C.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new C.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new C.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},685:(X,x,s)=>{"use strict";s.d(x,{gB:()=>Ee,p9:()=>me,Xo:()=>Te});var t=s(7429),n=s(5e3),o=s(8929),h=s(7625),e=s(1059),y=s(9439),b=s(4170),D=s(9808),P=s(969),R=s(226);function S(Y,le){if(1&Y&&(n.ynx(0),n._UZ(1,"img",5),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.Q6J("src",$.nzNotFoundImage,n.LSH)("alt",$.isContentString?$.nzNotFoundContent:"empty")}}function O(Y,le){if(1&Y&&(n.ynx(0),n.YNc(1,S,2,2,"ng-container",4),n.BQk()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",$.nzNotFoundImage)}}function m(Y,le){1&Y&&n._UZ(0,"nz-empty-default")}function E(Y,le){1&Y&&n._UZ(0,"nz-empty-simple")}function T(Y,le){if(1&Y&&(n.ynx(0),n._uU(1),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.hij(" ",$.isContentString?$.nzNotFoundContent:$.locale.description," ")}}function F(Y,le){if(1&Y&&(n.TgZ(0,"p",6),n.YNc(1,T,2,1,"ng-container",4),n.qZA()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",$.nzNotFoundContent)}}function M(Y,le){if(1&Y&&(n.ynx(0),n._uU(1),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.hij(" ",$.nzNotFoundFooter," ")}}function N(Y,le){if(1&Y&&(n.TgZ(0,"div",7),n.YNc(1,M,2,1,"ng-container",4),n.qZA()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",$.nzNotFoundFooter)}}function z(Y,le){1&Y&&n._UZ(0,"nz-empty",6),2&Y&&n.Q6J("nzNotFoundImage","simple")}function v(Y,le){1&Y&&n._UZ(0,"nz-empty",7),2&Y&&n.Q6J("nzNotFoundImage","simple")}function C(Y,le){1&Y&&n._UZ(0,"nz-empty")}function f(Y,le){if(1&Y&&(n.ynx(0,2),n.YNc(1,z,1,1,"nz-empty",3),n.YNc(2,v,1,1,"nz-empty",4),n.YNc(3,C,1,0,"nz-empty",5),n.BQk()),2&Y){const $=n.oxw();n.Q6J("ngSwitch",$.size),n.xp6(1),n.Q6J("ngSwitchCase","normal"),n.xp6(1),n.Q6J("ngSwitchCase","small")}}function L(Y,le){}function J(Y,le){if(1&Y&&n.YNc(0,L,0,0,"ng-template",8),2&Y){const $=n.oxw(2);n.Q6J("cdkPortalOutlet",$.contentPortal)}}function Z(Y,le){if(1&Y&&(n.ynx(0),n._uU(1),n.BQk()),2&Y){const $=n.oxw(2);n.xp6(1),n.hij(" ",$.content," ")}}function Q(Y,le){if(1&Y&&(n.ynx(0),n.YNc(1,J,1,1,void 0,1),n.YNc(2,Z,2,1,"ng-container",1),n.BQk()),2&Y){const $=n.oxw();n.xp6(1),n.Q6J("ngIf","string"!==$.contentType),n.xp6(1),n.Q6J("ngIf","string"===$.contentType)}}const I=new n.OlP("nz-empty-component-name");let U=(()=>{class Y{}return Y.\u0275fac=function($){return new($||Y)},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function($,ee){1&$&&(n.O4$(),n.TgZ(0,"svg",0),n.TgZ(1,"g",1),n.TgZ(2,"g",2),n._UZ(3,"ellipse",3),n._UZ(4,"path",4),n._UZ(5,"path",5),n._UZ(6,"path",6),n._UZ(7,"path",7),n.qZA(),n._UZ(8,"path",8),n.TgZ(9,"g",9),n._UZ(10,"ellipse",10),n._UZ(11,"path",11),n.qZA(),n.qZA(),n.qZA())},encapsulation:2,changeDetection:0}),Y})(),ae=(()=>{class Y{}return Y.\u0275fac=function($){return new($||Y)},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function($,ee){1&$&&(n.O4$(),n.TgZ(0,"svg",0),n.TgZ(1,"g",1),n._UZ(2,"ellipse",2),n.TgZ(3,"g",3),n._UZ(4,"path",4),n._UZ(5,"path",5),n.qZA(),n.qZA(),n.qZA())},encapsulation:2,changeDetection:0}),Y})();const pe=["default","simple"];let me=(()=>{class Y{constructor($,ee){this.i18n=$,this.cdr=ee,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new o.xQ}ngOnChanges($){const{nzNotFoundContent:ee,nzNotFoundImage:_e}=$;if(ee&&(this.isContentString="string"==typeof ee.currentValue),_e){const te=_e.currentValue||"default";this.isImageBuildIn=pe.findIndex(re=>re===te)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function($){return new($||Y)(n.Y36(b.wi),n.Y36(n.sBO))},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[n.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function($,ee){1&$&&(n.TgZ(0,"div",0),n.YNc(1,O,2,1,"ng-container",1),n.YNc(2,m,1,0,"nz-empty-default",1),n.YNc(3,E,1,0,"nz-empty-simple",1),n.qZA(),n.YNc(4,F,2,1,"p",2),n.YNc(5,N,2,1,"div",3)),2&$&&(n.xp6(1),n.Q6J("ngIf",!ee.isImageBuildIn),n.xp6(1),n.Q6J("ngIf",ee.isImageBuildIn&&"simple"!==ee.nzNotFoundImage),n.xp6(1),n.Q6J("ngIf",ee.isImageBuildIn&&"simple"===ee.nzNotFoundImage),n.xp6(1),n.Q6J("ngIf",null!==ee.nzNotFoundContent),n.xp6(1),n.Q6J("ngIf",ee.nzNotFoundFooter))},directives:[U,ae,D.O5,P.f],encapsulation:2,changeDetection:0}),Y})(),Ee=(()=>{class Y{constructor($,ee,_e,te){this.configService=$,this.viewContainerRef=ee,this.cdr=_e,this.injector=te,this.contentType="string",this.size="",this.destroy$=new o.xQ}ngOnChanges($){$.nzComponentName&&(this.size=function be(Y){switch(Y){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}($.nzComponentName.currentValue)),$.specificContent&&!$.specificContent.isFirstChange()&&(this.content=$.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const $=this.content;if("string"==typeof $)this.contentType="string";else if($ instanceof n.Rgc){const ee={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.UE($,this.viewContainerRef,ee)}else if($ instanceof n.DyG){const ee=n.zs3.create({parent:this.injector,providers:[{provide:I,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.C5($,this.viewContainerRef,ee)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,e.O)(!0),(0,h.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return Y.\u0275fac=function($){return new($||Y)(n.Y36(y.jY),n.Y36(n.s_b),n.Y36(n.sBO),n.Y36(n.zs3))},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[n.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function($,ee){1&$&&(n.YNc(0,f,4,3,"ng-container",0),n.YNc(1,Q,3,2,"ng-container",1)),2&$&&(n.Q6J("ngIf",!ee.content&&null!==ee.specificContent),n.xp6(1),n.Q6J("ngIf",ee.content))},directives:[me,D.O5,D.RF,D.n9,D.ED,t.Pl],encapsulation:2,changeDetection:0}),Y})(),Te=(()=>{class Y{}return Y.\u0275fac=function($){return new($||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[R.vT,D.ez,t.eL,P.T,b.YI]]}),Y})()},7957:(X,x,s)=>{"use strict";s.d(x,{du:()=>bt,Hf:()=>_t,Uh:()=>zt,Qp:()=>_,Sf:()=>Je});var t=s(2845),n=s(7429),o=s(5e3),h=s(8929),e=s(3753),y=s(8514),b=s(7625),D=s(2198),P=s(2986),R=s(1059),S=s(6947),O=s(1721),m=s(9808),E=s(6360),T=s(1777),F=s(5664),M=s(9439),N=s(4170),z=s(969),v=s(2683),C=s(647),f=s(6042),L=s(2643);s(2313);class Q{transform(d,r=0,p="B",w){if(!((0,O.ui)(d)&&(0,O.ui)(r)&&r%1==0&&r>=0))return d;let j=d,oe=p;for(;"B"!==oe;)j*=1024,oe=Q.formats[oe].prev;if(w){const Se=(0,O.YM)(Q.calculateResult(Q.formats[w],j),r);return Q.formatResult(Se,w)}for(const ve in Q.formats)if(Q.formats.hasOwnProperty(ve)){const Se=Q.formats[ve];if(j{class a{transform(r,p="px"){let Se="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(Le=>Le===p)&&(Se=p),"number"==typeof r?`${r}${Se}`:`${r}`}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:a,pure:!0}),a})(),Ee=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=o.oAB({type:a}),a.\u0275inj=o.cJS({imports:[[m.ez]]}),a})();var Te=s(655),Y=s(1159),le=s(226),$=s(4832);const ee=["nz-modal-close",""];function _e(a,d){if(1&a&&(o.ynx(0),o._UZ(1,"i",2),o.BQk()),2&a){const r=d.$implicit;o.xp6(1),o.Q6J("nzType",r)}}const te=["modalElement"];function re(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function B(a,d){if(1&a&&(o.ynx(0),o._UZ(1,"span",17),o.BQk()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}function ne(a,d){}function k(a,d){if(1&a&&o._UZ(0,"div",17),2&a){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function ie(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCancel()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw();o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function K(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){return o.CHM(r),o.oxw().onOk()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw();o.Q6J("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled)("nzDanger",r.config.nzOkDanger),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}const ze=["nz-modal-title",""];function Me(a,d){if(1&a&&(o.ynx(0),o._UZ(1,"div",2),o.BQk()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}const Pe=["nz-modal-footer",""];function Ue(a,d){if(1&a&&o._UZ(0,"div",5),2&a){const r=o.oxw(3);o.Q6J("innerHTML",r.config.nzFooter,o.oJD)}}function Qe(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",7),o.NdJ("click",function(){const j=o.CHM(r).$implicit;return o.oxw(4).onButtonClick(j)}),o._uU(1),o.qZA()}if(2&a){const r=d.$implicit,p=o.oxw(4);o.Q6J("hidden",!p.getButtonCallableProp(r,"show"))("nzLoading",p.getButtonCallableProp(r,"loading"))("disabled",p.getButtonCallableProp(r,"disabled"))("nzType",r.type)("nzDanger",r.danger)("nzShape",r.shape)("nzSize",r.size)("nzGhost",r.ghost),o.xp6(1),o.hij(" ",r.label," ")}}function Ge(a,d){if(1&a&&(o.ynx(0),o.YNc(1,Qe,2,9,"button",6),o.BQk()),2&a){const r=o.oxw(3);o.xp6(1),o.Q6J("ngForOf",r.buttons)}}function rt(a,d){if(1&a&&(o.ynx(0),o.YNc(1,Ue,1,1,"div",3),o.YNc(2,Ge,2,1,"ng-container",4),o.BQk()),2&a){const r=o.oxw(2);o.xp6(1),o.Q6J("ngIf",!r.buttonsFooter),o.xp6(1),o.Q6J("ngIf",r.buttonsFooter)}}const tt=function(a,d){return{$implicit:a,modalRef:d}};function ke(a,d){if(1&a&&(o.ynx(0),o.YNc(1,rt,3,2,"ng-container",2),o.BQk()),2&a){const r=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",r.config.nzFooter)("nzStringTemplateOutletContext",o.WLB(2,tt,r.config.nzComponentParams,r.modalRef))}}function et(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onCancel()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw(2);o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function nt(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",11),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onOk()}),o._uU(1),o.qZA()}if(2&a){const r=o.oxw(2);o.Q6J("nzType",r.config.nzOkType)("nzDanger",r.config.nzOkDanger)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}function He(a,d){if(1&a&&(o.YNc(0,et,2,4,"button",8),o.YNc(1,nt,2,6,"button",9)),2&a){const r=o.oxw();o.Q6J("ngIf",null!==r.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==r.config.nzOkText)}}function mt(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function pt(a,d){1&a&&o._UZ(0,"div",10)}function ht(a,d){}function ut(a,d){if(1&a&&o._UZ(0,"div",11),2&a){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function H(a,d){if(1&a){const r=o.EpF();o.TgZ(0,"div",12),o.NdJ("cancelTriggered",function(){return o.CHM(r),o.oxw().onCloseClick()})("okTriggered",function(){return o.CHM(r),o.oxw().onOkClick()}),o.qZA()}if(2&a){const r=o.oxw();o.Q6J("modalRef",r.modalRef)}}const q=()=>{};class fe{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=q,this.nzOnOk=q,this.nzIconType="question-circle"}}const se="ant-modal-mask",Oe="modal",we={modalContainer:(0,T.X$)("modalContainer",[(0,T.SB)("void, exit",(0,T.oB)({})),(0,T.SB)("enter",(0,T.oB)({})),(0,T.eR)("* => enter",(0,T.jt)(".24s",(0,T.oB)({}))),(0,T.eR)("* => void, * => exit",(0,T.jt)(".2s",(0,T.oB)({})))])};function Re(a,d,r){return void 0===a?void 0===d?r:d:a}function Ne(a){const{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:w,nzOkLoading:j,nzOkDisabled:oe,nzCancelDisabled:ve,nzCancelLoading:Se,nzKeyboard:Le,nzNoAnimation:ot,nzContent:ct,nzComponentParams:St,nzFooter:At,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:xt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Mt,nzOkText:Dt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Ut,nzOnOk:Qt,nzOnCancel:Vt,nzAfterOpen:Nt,nzAfterClose:Yt,nzCloseOnNavigation:Jt,nzAutofocus:jt}=a;return{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:w,nzOkLoading:j,nzOkDisabled:oe,nzCancelDisabled:ve,nzCancelLoading:Se,nzKeyboard:Le,nzNoAnimation:ot,nzContent:ct,nzComponentParams:St,nzFooter:At,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:xt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Mt,nzOkText:Dt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Ut,nzOnOk:Qt,nzOnCancel:Vt,nzAfterOpen:Nt,nzAfterClose:Yt,nzCloseOnNavigation:Jt,nzAutofocus:jt}}function ye(){throw Error("Attempting to attach modal content after content is already attached")}let Ve=(()=>{class a extends n.en{constructor(r,p,w,j,oe,ve,Se,Le,ot,ct){super(),this.ngZone=r,this.host=p,this.focusTrapFactory=w,this.cdr=j,this.render=oe,this.overlayRef=ve,this.nzConfigService=Se,this.config=Le,this.animationType=ct,this.animationStateChanged=new o.vpe,this.containerClick=new o.vpe,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new h.xQ,this.document=ot,this.dir=ve.getDirection(),this.isStringContent="string"==typeof Le.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Oe).pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const r=this.nzConfigService.getConfigForComponent(Oe)||{};return!!Re(this.config.nzMask,r.nzMask,!0)}get maskClosable(){const r=this.nzConfigService.getConfigForComponent(Oe)||{};return!!Re(this.config.nzMaskClosable,r.nzMaskClosable,!0)}onContainerClick(r){r.target===r.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(r){return this.portalOutlet.hasAttached()&&ye(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(r)}attachTemplatePortal(r){return this.portalOutlet.hasAttached()&&ye(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(r)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const r=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const p=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),w=(0,O.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(r,"transform-origin",`${w.left+p.width/2-r.offsetLeft}px ${w.top+p.height/2-r.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const r=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const p=this.document.activeElement;p!==r&&!r.contains(p)&&r.focus()}}restoreFocus(){const r=this.elementFocusedBeforeModalWasOpened;if(r&&"function"==typeof r.focus){const p=this.document.activeElement,w=this.host.nativeElement;(!p||p===this.document.body||p===w||w.contains(p))&&r.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const r=this.modalElementRef.nativeElement,p=this.overlayRef.backdropElement;r.classList.add("ant-zoom-enter"),r.classList.add("ant-zoom-enter-active"),p&&(p.classList.add("ant-fade-enter"),p.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const r=this.modalElementRef.nativeElement;r.classList.add("ant-zoom-leave"),r.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(r=!1){const p=this.overlayRef.backdropElement;if(p){if(this.animationDisabled()||r)return void p.classList.remove(se);p.classList.add("ant-fade-leave"),p.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const r=this.overlayRef.backdropElement,p=this.modalElementRef.nativeElement;r&&(r.classList.remove("ant-fade-enter"),r.classList.remove("ant-fade-enter-active")),p.classList.remove("ant-zoom-enter"),p.classList.remove("ant-zoom-enter-active"),p.classList.remove("ant-zoom-leave"),p.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const r=this.overlayRef.backdropElement;r&&(0,O.DX)(this.config.nzZIndex)&&this.render.setStyle(r,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const r=this.overlayRef.backdropElement;if(r&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(w=>{this.render.removeStyle(r,w)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const p=Object.assign({},this.config.nzMaskStyle);Object.keys(p).forEach(w=>{this.render.setStyle(r,w,p[w])}),this.oldMaskStyle=p}}updateMaskClassname(){const r=this.overlayRef.backdropElement;r&&(this.showMask?r.classList.add(se):r.classList.remove(se))}onAnimationDone(r){"enter"===r.toState?this.trapFocus():"exit"===r.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(r)}onAnimationStart(r){"enter"===r.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===r.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(r)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(r){this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"mouseup").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,e.R)(r.nativeElement,"mousedown").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return a.\u0275fac=function(r){o.$Z()},a.\u0275dir=o.lG2({type:a,features:[o.qOj]}),a})(),Ze=(()=>{class a{constructor(r){this.config=r}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(fe))},a.\u0275cmp=o.Xpm({type:a,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:ee,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(r,p){1&r&&(o.TgZ(0,"span",0),o.YNc(1,_e,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzCloseIcon))},directives:[z.f,v.w,C.Ls],encapsulation:2,changeDetection:0}),a})(),$e=(()=>{class a extends Ve{constructor(r,p,w,j,oe,ve,Se,Le,ot,ct,St){super(r,w,j,oe,ve,Se,Le,ot,ct,St),this.i18n=p,this.config=ot,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.R0b),o.Y36(N.wi),o.Y36(o.SBq),o.Y36(F.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(t.Iu),o.Y36(M.jY),o.Y36(fe),o.Y36(m.K0,8),o.Y36(E.Qb,8))},a.\u0275cmp=o.Xpm({type:a,selectors:[["nz-modal-confirm-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(n.Pl,7),o.Gf(te,7)),2&r){let w;o.iGM(w=o.CRH())&&(p.portalOutlet=w.first),o.iGM(w=o.CRH())&&(p.modalElementRef=w.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(j){return p.onAnimationStart(j)})("@modalContainer.done",function(j){return p.onAnimationDone(j)}),o.NdJ("click",function(j){return p.onContainerClick(j)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[o.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,re,1,0,"button",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o._UZ(8,"i",7),o.TgZ(9,"span",8),o.YNc(10,B,2,1,"ng-container",9),o.qZA(),o.TgZ(11,"div",10),o.YNc(12,ne,0,0,"ng-template",11),o.YNc(13,k,1,1,"div",12),o.qZA(),o.qZA(),o.TgZ(14,"div",13),o.YNc(15,ie,2,4,"button",14),o.YNc(16,K,2,6,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,11,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(3),o.Q6J("nzType",p.config.nzIconType),o.xp6(2),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle),o.xp6(3),o.Q6J("ngIf",p.isStringContent),o.xp6(2),o.Q6J("ngIf",null!==p.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzOkText))},directives:[Ze,f.ix,m.mk,m.PC,m.O5,v.w,C.Ls,z.f,n.Pl,L.dQ],pipes:[I],encapsulation:2,data:{animation:[we.modalContainer]}}),a})(),Ye=(()=>{class a{constructor(r){this.config=r}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(fe))},a.\u0275cmp=o.Xpm({type:a,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:ze,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0),o.YNc(1,Me,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle))},directives:[z.f],encapsulation:2,changeDetection:0}),a})(),Xe=(()=>{class a{constructor(r,p){this.i18n=r,this.config=p,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.destroy$=new h.xQ,Array.isArray(p.nzFooter)&&(this.buttonsFooter=!0,this.buttons=p.nzFooter.map(Ke)),this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(r,p){const w=r[p],j=this.modalRef.getContentComponent();return"function"==typeof w?w.apply(r,j&&[j]):w}onButtonClick(r){if(!this.getButtonCallableProp(r,"loading")){const w=this.getButtonCallableProp(r,"onClick");r.autoLoading&&(0,O.tI)(w)&&(r.loading=!0,w.then(()=>r.loading=!1).catch(j=>{throw r.loading=!1,j}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(N.wi),o.Y36(fe))},a.\u0275cmp=o.Xpm({type:a,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:Pe,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(r,p){if(1&r&&(o.YNc(0,ke,2,5,"ng-container",0),o.YNc(1,He,2,2,"ng-template",null,1,o.W1O)),2&r){const w=o.MAs(2);o.Q6J("ngIf",p.config.nzFooter)("ngIfElse",w)}},directives:[f.ix,m.O5,z.f,m.sg,L.dQ,v.w],encapsulation:2}),a})();function Ke(a){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},a)}let it=(()=>{class a extends Ve{constructor(r,p,w,j,oe,ve,Se,Le,ot,ct){super(r,p,w,j,oe,ve,Se,Le,ot,ct),this.config=Le}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(F.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(t.Iu),o.Y36(M.jY),o.Y36(fe),o.Y36(m.K0,8),o.Y36(E.Qb,8))},a.\u0275cmp=o.Xpm({type:a,selectors:[["nz-modal-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(n.Pl,7),o.Gf(te,7)),2&r){let w;o.iGM(w=o.CRH())&&(p.portalOutlet=w.first),o.iGM(w=o.CRH())&&(p.modalElementRef=w.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(j){return p.onAnimationStart(j)})("@modalContainer.done",function(j){return p.onAnimationDone(j)}),o.NdJ("click",function(j){return p.onContainerClick(j)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},exportAs:["nzModalContainer"],features:[o.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,mt,1,0,"button",3),o.YNc(5,pt,1,0,"div",4),o.TgZ(6,"div",5),o.YNc(7,ht,0,0,"ng-template",6),o.YNc(8,ut,1,1,"div",7),o.qZA(),o.YNc(9,H,1,1,"div",8),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,9,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngIf",p.config.nzTitle),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(2),o.Q6J("ngIf",p.isStringContent),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzFooter))},directives:[Ze,Ye,Xe,m.mk,m.PC,m.O5,n.Pl],pipes:[I],encapsulation:2,data:{animation:[we.modalContainer]}}),a})();class qe{constructor(d,r,p){this.overlayRef=d,this.config=r,this.containerInstance=p,this.componentInstance=null,this.state=0,this.afterClose=new h.xQ,this.afterOpen=new h.xQ,this.destroy$=new h.xQ,p.animationStateChanged.pipe((0,D.h)(w=>"done"===w.phaseName&&"enter"===w.toState),(0,P.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),r.nzAfterOpen instanceof o.vpe&&r.nzAfterOpen.emit()}),p.animationStateChanged.pipe((0,D.h)(w=>"done"===w.phaseName&&"exit"===w.toState),(0,P.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),p.containerClick.pipe((0,P.q)(1),(0,b.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),d.keydownEvents().pipe((0,D.h)(w=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&w.keyCode===Y.hY&&!(0,Y.Vb)(w))).subscribe(w=>{w.preventDefault(),this.trigger("cancel")}),p.cancelTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),p.okTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),d.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),r.nzAfterClose instanceof o.vpe&&r.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(d){this.close(d)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(d){0===this.state&&(this.result=d,this.containerInstance.animationStateChanged.pipe((0,D.h)(r=>"start"===r.phaseName),(0,P.q)(1)).subscribe(r=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},r.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(d){Object.assign(this.config,d),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(d){return(0,Te.mG)(this,void 0,void 0,function*(){const r={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[d],p={ok:"nzOkLoading",cancel:"nzCancelLoading"}[d];if(!this.config[p])if(r instanceof o.vpe)r.emit(this.getContentComponent());else if("function"==typeof r){const j=r(this.getContentComponent());if((0,O.tI)(j)){this.config[p]=!0;let oe=!1;try{oe=yield j}finally{this.config[p]=!1,this.closeWhitResult(oe)}}else this.closeWhitResult(j)}})}closeWhitResult(d){!1!==d&&this.close(d)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let Je=(()=>{class a{constructor(r,p,w,j,oe){this.overlay=r,this.injector=p,this.nzConfigService=w,this.parentModal=j,this.directionality=oe,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new h.xQ,this.afterAllClose=(0,y.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,R.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const r=this.parentModal;return r?r._afterAllClosed:this.afterAllClosedAtThisLevel}create(r){return this.open(r.nzContent,r)}closeAll(){this.closeModals(this.openModals)}confirm(r={},p="confirm"){return"nzFooter"in r&&(0,S.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in r||(r.nzWidth=416),"nzMaskClosable"in r||(r.nzMaskClosable=!1),r.nzModalType="confirm",r.nzClassName=`ant-modal-confirm ant-modal-confirm-${p} ${r.nzClassName||""}`,this.create(r)}info(r={}){return this.confirmFactory(r,"info")}success(r={}){return this.confirmFactory(r,"success")}error(r={}){return this.confirmFactory(r,"error")}warning(r={}){return this.confirmFactory(r,"warning")}open(r,p){const w=function Fe(a,d){return Object.assign(Object.assign({},d),a)}(p||{},new fe),j=this.createOverlay(w),oe=this.attachModalContainer(j,w),ve=this.attachModalContent(r,oe,j,w);return oe.modalRef=ve,this.openModals.push(ve),ve.afterClose.subscribe(()=>this.removeOpenModal(ve)),ve}removeOpenModal(r){const p=this.openModals.indexOf(r);p>-1&&(this.openModals.splice(p,1),this.openModals.length||this._afterAllClosed.next())}closeModals(r){let p=r.length;for(;p--;)r[p].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(r){const p=this.nzConfigService.getConfigForComponent(Oe)||{},w=new t.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Re(r.nzCloseOnNavigation,p.nzCloseOnNavigation,!0),direction:Re(r.nzDirection,p.nzDirection,this.directionality.value)});return Re(r.nzMask,p.nzMask,!0)&&(w.backdropClass=se),this.overlay.create(w)}attachModalContainer(r,p){const j=o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:t.Iu,useValue:r},{provide:fe,useValue:p}]}),ve=new n.C5("confirm"===p.nzModalType?$e:it,p.nzViewContainerRef,j);return r.attach(ve).instance}attachModalContent(r,p,w,j){const oe=new qe(w,j,p);if(r instanceof o.Rgc)p.attachTemplatePortal(new n.UE(r,null,{$implicit:j.nzComponentParams,modalRef:oe}));else if((0,O.DX)(r)&&"string"!=typeof r){const ve=this.createInjector(oe,j),Se=p.attachComponentPortal(new n.C5(r,j.nzViewContainerRef,ve));(function De(a,d){Object.assign(a,d)})(Se.instance,j.nzComponentParams),oe.componentInstance=Se.instance}else p.attachStringContent();return oe}createInjector(r,p){return o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:qe,useValue:r}]})}confirmFactory(r={},p){return"nzIconType"in r||(r.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[p]),"nzCancelText"in r||(r.nzCancelText=null),this.confirm(r,p)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return a.\u0275fac=function(r){return new(r||a)(o.LFG(t.aV),o.LFG(o.zs3),o.LFG(M.jY),o.LFG(a,12),o.LFG(le.Is,8))},a.\u0275prov=o.Yz7({token:a,factory:a.\u0275fac}),a})(),_t=(()=>{class a{constructor(r){this.templateRef=r}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.Rgc))},a.\u0275dir=o.lG2({type:a,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),a})(),zt=(()=>{class a{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(qe,8),o.Y36(o.Rgc))},a.\u0275dir=o.lG2({type:a,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),a})(),Ot=(()=>{class a{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(qe,8),o.Y36(o.Rgc))},a.\u0275dir=o.lG2({type:a,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),a})(),bt=(()=>{class a{constructor(r,p,w){this.cdr=r,this.modal=p,this.viewContainerRef=w,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new o.vpe,this.nzOnCancel=new o.vpe,this.nzAfterOpen=new o.vpe,this.nzAfterClose=new o.vpe,this.nzVisibleChange=new o.vpe,this.modalRef=null,this.destroy$=new h.xQ}set modalTitle(r){r&&this.setTitleWithTemplate(r)}set modalFooter(r){r&&this.setFooterWithTemplate(r)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const r=this.getConfig();this.modalRef=this.modal.create(r),this.modalRef.afterClose.asObservable().pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(r){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(r),this.modalRef=null)}destroy(r){this.close(r)}triggerOk(){var r;null===(r=this.modalRef)||void 0===r||r.triggerOk()}triggerCancel(){var r;null===(r=this.modalRef)||void 0===r||r.triggerCancel()}getContentComponent(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getContentComponent()}getElement(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(r){this.nzTitle=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(r){this.nzFooter=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const r=Ne(this);return r.nzViewContainerRef=this.viewContainerRef,r.nzContent=this.nzContent||this.contentFromContentChild,r}ngOnChanges(r){const{nzVisible:p}=r,w=(0,Te._T)(r,["nzVisible"]);Object.keys(w).length&&this.modalRef&&this.modalRef.updateConfig(Ne(this)),p&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var r;null===(r=this.modalRef)||void 0===r||r._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(r){return new(r||a)(o.Y36(o.sBO),o.Y36(Je),o.Y36(o.s_b))},a.\u0275cmp=o.Xpm({type:a,selectors:[["nz-modal"]],contentQueries:function(r,p,w){if(1&r&&(o.Suo(w,Ot,7,o.Rgc),o.Suo(w,_t,7,o.Rgc),o.Suo(w,zt,7,o.Rgc)),2&r){let j;o.iGM(j=o.CRH())&&(p.modalTitle=j.first),o.iGM(j=o.CRH())&&(p.contentFromContentChild=j.first),o.iGM(j=o.CRH())&&(p.modalFooter=j.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[o.TTD],decls:0,vars:0,template:function(r,p){},encapsulation:2,changeDetection:0}),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzMask",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzMaskClosable",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCloseOnNavigation",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzVisible",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzClosable",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzOkLoading",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzOkDisabled",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCancelDisabled",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCancelLoading",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzKeyboard",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzNoAnimation",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzCentered",void 0),(0,Te.gn)([(0,O.yF)()],a.prototype,"nzOkDanger",void 0),a})(),_=(()=>{class a{}return a.\u0275fac=function(r){return new(r||a)},a.\u0275mod=o.oAB({type:a}),a.\u0275inj=o.cJS({providers:[Je],imports:[[m.ez,le.vT,t.U8,z.T,n.eL,N.YI,f.sL,C.PV,Ee,$.g,Ee]]}),a})()},3868:(X,x,s)=>{"use strict";s.d(x,{Bq:()=>T,Of:()=>N,Dg:()=>M,aF:()=>z});var t=s(5e3),n=s(655),o=s(4182),h=s(5647),e=s(8929),y=s(3753),b=s(7625),D=s(1721),P=s(226),R=s(5664),S=s(9808);const O=["*"],m=["inputElement"],E=["nz-radio",""];let T=(()=>{class v{}return v.\u0275fac=function(f){return new(f||v)},v.\u0275dir=t.lG2({type:v,selectors:[["","nz-radio-button",""]]}),v})(),F=(()=>{class v{constructor(){this.selected$=new h.t(1),this.touched$=new e.xQ,this.disabled$=new h.t(1),this.name$=new h.t(1)}touch(){this.touched$.next()}select(f){this.selected$.next(f)}setDisabled(f){this.disabled$.next(f)}setName(f){this.name$.next(f)}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275prov=t.Yz7({token:v,factory:v.\u0275fac}),v})(),M=(()=>{class v{constructor(f,L,J){this.cdr=f,this.nzRadioService=L,this.directionality=J,this.value=null,this.destroy$=new e.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var f;this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(L=>{this.value!==L&&(this.value=L,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,b.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(f=this.directionality.change)||void 0===f||f.pipe((0,b.R)(this.destroy$)).subscribe(L=>{this.dir=L,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(f){const{nzDisabled:L,nzName:J}=f;L&&this.nzRadioService.setDisabled(this.nzDisabled),J&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(f){this.value=f,this.nzRadioService.select(f),this.cdr.markForCheck()}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this.nzDisabled=f,this.nzRadioService.setDisabled(f),this.cdr.markForCheck()}}return v.\u0275fac=function(f){return new(f||v)(t.Y36(t.sBO),t.Y36(F),t.Y36(P.Is,8))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(f,L){2&f&&t.ekj("ant-radio-group-large","large"===L.nzSize)("ant-radio-group-small","small"===L.nzSize)("ant-radio-group-solid","solid"===L.nzButtonStyle)("ant-radio-group-rtl","rtl"===L.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[t._Bn([F,{provide:o.JU,useExisting:(0,t.Gpc)(()=>v),multi:!0}]),t.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(f,L){1&f&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,n.gn)([(0,D.yF)()],v.prototype,"nzDisabled",void 0),v})(),N=(()=>{class v{constructor(f,L,J,Z,Q,I,U){this.ngZone=f,this.elementRef=L,this.cdr=J,this.focusMonitor=Z,this.directionality=Q,this.nzRadioService=I,this.nzRadioButtonDirective=U,this.isNgModel=!1,this.destroy$=new e.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(f){this.nzDisabled=f,this.cdr.markForCheck()}writeValue(f){this.isChecked=f,this.cdr.markForCheck()}registerOnChange(f){this.isNgModel=!0,this.onChange=f}registerOnTouched(f){this.onTouched=f}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.name=f,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.nzDisabled=f,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.isChecked=this.nzValue===f,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(f=>{f||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,y.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(f=>{f.stopPropagation(),f.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return v.\u0275fac=function(f){return new(f||v)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(R.tE),t.Y36(P.Is,8),t.Y36(F,8),t.Y36(T,8))},v.\u0275cmp=t.Xpm({type:v,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(f,L){if(1&f&&t.Gf(m,5),2&f){let J;t.iGM(J=t.CRH())&&(L.inputElement=J.first)}},hostVars:16,hostBindings:function(f,L){2&f&&t.ekj("ant-radio-wrapper",!L.isRadioButton)("ant-radio-button-wrapper",L.isRadioButton)("ant-radio-wrapper-checked",L.isChecked&&!L.isRadioButton)("ant-radio-button-wrapper-checked",L.isChecked&&L.isRadioButton)("ant-radio-wrapper-disabled",L.nzDisabled&&!L.isRadioButton)("ant-radio-button-wrapper-disabled",L.nzDisabled&&L.isRadioButton)("ant-radio-wrapper-rtl",!L.isRadioButton&&"rtl"===L.dir)("ant-radio-button-wrapper-rtl",L.isRadioButton&&"rtl"===L.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[t._Bn([{provide:o.JU,useExisting:(0,t.Gpc)(()=>v),multi:!0}])],attrs:E,ngContentSelectors:O,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(f,L){1&f&&(t.F$t(),t.TgZ(0,"span"),t._UZ(1,"input",0,1),t._UZ(3,"span"),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&f&&(t.ekj("ant-radio",!L.isRadioButton)("ant-radio-checked",L.isChecked&&!L.isRadioButton)("ant-radio-disabled",L.nzDisabled&&!L.isRadioButton)("ant-radio-button",L.isRadioButton)("ant-radio-button-checked",L.isChecked&&L.isRadioButton)("ant-radio-button-disabled",L.nzDisabled&&L.isRadioButton),t.xp6(1),t.ekj("ant-radio-input",!L.isRadioButton)("ant-radio-button-input",L.isRadioButton),t.Q6J("disabled",L.nzDisabled)("checked",L.isChecked),t.uIk("autofocus",L.nzAutoFocus?"autofocus":null)("name",L.name),t.xp6(2),t.ekj("ant-radio-inner",!L.isRadioButton)("ant-radio-button-inner",L.isRadioButton))},encapsulation:2,changeDetection:0}),(0,n.gn)([(0,D.yF)()],v.prototype,"nzDisabled",void 0),(0,n.gn)([(0,D.yF)()],v.prototype,"nzAutoFocus",void 0),v})(),z=(()=>{class v{}return v.\u0275fac=function(f){return new(f||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[[P.vT,S.ez,o.u5]]}),v})()},5197:(X,x,s)=>{"use strict";s.d(x,{Ip:()=>$e,Vq:()=>Ot,LV:()=>bt});var t=s(5e3),n=s(8929),o=s(3753),h=s(591),e=s(6053),y=s(6787),b=s(3393),D=s(685),P=s(969),R=s(9808),S=s(647),O=s(2683),m=s(655),E=s(1059),T=s(7625),F=s(7545),M=s(4090),N=s(1721),z=s(1159),v=s(2845),C=s(4182),f=s(8076),L=s(9439);const J=["moz","ms","webkit"];function I(_){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(_);const V=J.filter(a=>`${a}CancelAnimationFrame`in window||`${a}CancelRequestAnimationFrame`in window)[0];return V?(window[`${V}CancelAnimationFrame`]||window[`${V}CancelRequestAnimationFrame`]).call(this,_):clearTimeout(_)}const U=function Q(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const _=J.filter(V=>`${V}RequestAnimationFrame`in window)[0];return _?window[`${_}RequestAnimationFrame`]:function Z(){let _=0;return function(V){const a=(new Date).getTime(),d=Math.max(0,16-(a-_)),r=setTimeout(()=>{V(a+d)},d);return _=a+d,r}}()}();var ae=s(5664),pe=s(4832),me=s(925),be=s(226),Ee=s(6950),Te=s(4170);const Y=["*"];function le(_,V){if(1&_&&(t.ynx(0),t._uU(1),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.Oqu(a.nzLabel)}}function $(_,V){if(1&_&&(t.ynx(0),t._uU(1),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.Oqu(a.label)}}function ee(_,V){}function _e(_,V){if(1&_&&(t.ynx(0),t.YNc(1,ee,0,0,"ng-template",3),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",a.template)}}function te(_,V){1&_&&t._UZ(0,"i",6)}function re(_,V){if(1&_&&(t.TgZ(0,"div",4),t.YNc(1,te,1,0,"i",5),t.qZA()),2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngIf",!a.icon)("ngIfElse",a.icon)}}function B(_,V){if(1&_&&(t.TgZ(0,"div",4),t._UZ(1,"nz-embed-empty",5),t.qZA()),2&_){const a=t.oxw();t.xp6(1),t.Q6J("specificContent",a.notFoundContent)}}function ne(_,V){if(1&_&&t._UZ(0,"nz-option-item-group",9),2&_){const a=t.oxw().$implicit;t.Q6J("nzLabel",a.groupLabel)}}function k(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-option-item",10),t.NdJ("itemHover",function(r){return t.CHM(a),t.oxw(2).onItemHover(r)})("itemClick",function(r){return t.CHM(a),t.oxw(2).onItemClick(r)}),t.qZA()}if(2&_){const a=t.oxw().$implicit,d=t.oxw();t.Q6J("icon",d.menuItemSelectedIcon)("customContent",a.nzCustomContent)("template",a.template)("grouped",!!a.groupLabel)("disabled",a.nzDisabled)("showState","tags"===d.mode||"multiple"===d.mode)("label",a.nzLabel)("compareWith",d.compareWith)("activatedValue",d.activatedValue)("listOfSelectedValue",d.listOfSelectedValue)("value",a.nzValue)}}function ie(_,V){1&_&&(t.ynx(0,6),t.YNc(1,ne,1,1,"nz-option-item-group",7),t.YNc(2,k,1,11,"nz-option-item",8),t.BQk()),2&_&&(t.Q6J("ngSwitch",V.$implicit.type),t.xp6(1),t.Q6J("ngSwitchCase","group"),t.xp6(1),t.Q6J("ngSwitchCase","item"))}function K(_,V){}function ze(_,V){1&_&&t.Hsn(0)}const Me=["inputElement"],Pe=["mirrorElement"];function Ue(_,V){1&_&&t._UZ(0,"span",3,4)}function Qe(_,V){if(1&_&&(t.TgZ(0,"div",4),t._uU(1),t.qZA()),2&_){const a=t.oxw(2);t.xp6(1),t.Oqu(a.label)}}function Ge(_,V){if(1&_&&t._uU(0),2&_){const a=t.oxw(2);t.Oqu(a.label)}}function rt(_,V){if(1&_&&(t.ynx(0),t.YNc(1,Qe,2,1,"div",2),t.YNc(2,Ge,1,1,"ng-template",null,3,t.W1O),t.BQk()),2&_){const a=t.MAs(3),d=t.oxw();t.xp6(1),t.Q6J("ngIf",d.deletable)("ngIfElse",a)}}function tt(_,V){1&_&&t._UZ(0,"i",7)}function ke(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"span",5),t.NdJ("click",function(r){return t.CHM(a),t.oxw().onDelete(r)}),t.YNc(1,tt,1,0,"i",6),t.qZA()}if(2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngIf",!a.removeIcon)("ngIfElse",a.removeIcon)}}const et=function(_){return{$implicit:_}};function nt(_,V){if(1&_&&(t.ynx(0),t._uU(1),t.BQk()),2&_){const a=t.oxw();t.xp6(1),t.hij(" ",a.placeholder," ")}}function He(_,V){if(1&_&&t._UZ(0,"nz-select-item",6),2&_){const a=t.oxw(2);t.Q6J("deletable",!1)("disabled",!1)("removeIcon",a.removeIcon)("label",a.listOfTopItem[0].nzLabel)("contentTemplateOutlet",a.customTemplate)("contentTemplateOutletContext",a.listOfTopItem[0])}}function mt(_,V){if(1&_){const a=t.EpF();t.ynx(0),t.TgZ(1,"nz-select-search",4),t.NdJ("isComposingChange",function(r){return t.CHM(a),t.oxw().isComposingChange(r)})("valueChange",function(r){return t.CHM(a),t.oxw().onInputValueChange(r)}),t.qZA(),t.YNc(2,He,1,6,"nz-select-item",5),t.BQk()}if(2&_){const a=t.oxw();t.xp6(1),t.Q6J("nzId",a.nzId)("disabled",a.disabled)("value",a.inputValue)("showInput",a.showSearch)("mirrorSync",!1)("autofocus",a.autofocus)("focusTrigger",a.open),t.xp6(1),t.Q6J("ngIf",a.isShowSingleLabel)}}function pt(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-select-item",9),t.NdJ("delete",function(){const p=t.CHM(a).$implicit;return t.oxw(2).onDeleteItem(p.contentTemplateOutletContext)}),t.qZA()}if(2&_){const a=V.$implicit,d=t.oxw(2);t.Q6J("removeIcon",d.removeIcon)("label",a.nzLabel)("disabled",a.nzDisabled||d.disabled)("contentTemplateOutlet",a.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",a.contentTemplateOutletContext)}}function ht(_,V){if(1&_){const a=t.EpF();t.ynx(0),t.YNc(1,pt,1,6,"nz-select-item",7),t.TgZ(2,"nz-select-search",8),t.NdJ("isComposingChange",function(r){return t.CHM(a),t.oxw().isComposingChange(r)})("valueChange",function(r){return t.CHM(a),t.oxw().onInputValueChange(r)}),t.qZA(),t.BQk()}if(2&_){const a=t.oxw();t.xp6(1),t.Q6J("ngForOf",a.listOfSlicedItem)("ngForTrackBy",a.trackValue),t.xp6(1),t.Q6J("nzId",a.nzId)("disabled",a.disabled)("value",a.inputValue)("autofocus",a.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",a.open)}}function ut(_,V){if(1&_&&t._UZ(0,"nz-select-placeholder",10),2&_){const a=t.oxw();t.Q6J("placeholder",a.placeHolder)}}function H(_,V){1&_&&t._UZ(0,"i",2)}function q(_,V){1&_&&t._UZ(0,"i",7)}function fe(_,V){1&_&&t._UZ(0,"i",8)}function ge(_,V){if(1&_&&(t.ynx(0),t.YNc(1,q,1,0,"i",5),t.YNc(2,fe,1,0,"i",6),t.BQk()),2&_){const a=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!a.search),t.xp6(1),t.Q6J("ngIf",a.search)}}function Ie(_,V){if(1&_&&(t.ynx(0),t._UZ(1,"i",10),t.BQk()),2&_){const a=V.$implicit;t.xp6(1),t.Q6J("nzType",a)}}function se(_,V){if(1&_&&t.YNc(0,Ie,2,1,"ng-container",9),2&_){const a=t.oxw(2);t.Q6J("nzStringTemplateOutlet",a.suffixIcon)}}function Oe(_,V){if(1&_&&(t.YNc(0,ge,3,2,"ng-container",3),t.YNc(1,se,1,1,"ng-template",null,4,t.W1O)),2&_){const a=t.MAs(2),d=t.oxw();t.Q6J("ngIf",!d.suffixIcon)("ngIfElse",a)}}function we(_,V){1&_&&t._UZ(0,"i",1)}function Fe(_,V){if(1&_&&t._UZ(0,"nz-select-arrow",5),2&_){const a=t.oxw();t.Q6J("loading",a.nzLoading)("search",a.nzOpen&&a.nzShowSearch)("suffixIcon",a.nzSuffixIcon)}}function Re(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-select-clear",6),t.NdJ("clear",function(){return t.CHM(a),t.oxw().onClearSelection()}),t.qZA()}if(2&_){const a=t.oxw();t.Q6J("clearIcon",a.nzClearIcon)}}function De(_,V){if(1&_){const a=t.EpF();t.TgZ(0,"nz-option-container",7),t.NdJ("keydown",function(r){return t.CHM(a),t.oxw().onKeyDown(r)})("itemClick",function(r){return t.CHM(a),t.oxw().onItemClick(r)})("scrollToBottom",function(){return t.CHM(a),t.oxw().nzScrollToBottom.emit()}),t.qZA()}if(2&_){const a=t.oxw();t.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===a.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===a.dropDownPosition),t.Q6J("ngStyle",a.nzDropdownStyle)("itemSize",a.nzOptionHeightPx)("maxItemLength",a.nzOptionOverflowSize)("matchWidth",a.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==a.noAnimation?null:a.noAnimation.nzNoAnimation)("nzNoAnimation",null==a.noAnimation?null:a.noAnimation.nzNoAnimation)("listOfContainerItem",a.listOfContainerItem)("menuItemSelectedIcon",a.nzMenuItemSelectedIcon)("notFoundContent",a.nzNotFoundContent)("activatedValue",a.activatedValue)("listOfSelectedValue",a.listOfValue)("dropdownRender",a.nzDropdownRender)("compareWith",a.compareWith)("mode",a.nzMode)}}let Ne=(()=>{class _{constructor(){this.nzLabel=null,this.changes=new n.xQ}ngOnChanges(){this.changes.next()}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[t.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(a,d){1&a&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),_})(),ye=(()=>{class _{constructor(){this.nzLabel=null}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(a,d){1&a&&t.YNc(0,le,2,1,"ng-container",0),2&a&&t.Q6J("nzStringTemplateOutlet",d.nzLabel)},directives:[P.f],encapsulation:2,changeDetection:0}),_})(),Ve=(()=>{class _{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new t.vpe,this.itemHover=new t.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(a){const{value:d,activatedValue:r,listOfSelectedValue:p}=a;(d||p)&&(this.selected=this.listOfSelectedValue.some(w=>this.compareWith(w,this.value))),(d||r)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(a,d){1&a&&t.NdJ("mouseenter",function(){return d.onHostMouseEnter()})("click",function(){return d.onHostClick()}),2&a&&(t.uIk("title",d.label),t.ekj("ant-select-item-option-grouped",d.grouped)("ant-select-item-option-selected",d.selected&&!d.disabled)("ant-select-item-option-disabled",d.disabled)("ant-select-item-option-active",d.activated&&!d.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[t.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(a,d){1&a&&(t.TgZ(0,"div",0),t.YNc(1,$,2,1,"ng-container",1),t.YNc(2,_e,2,1,"ng-container",1),t.qZA(),t.YNc(3,re,2,2,"div",2)),2&a&&(t.xp6(1),t.Q6J("ngIf",!d.customContent),t.xp6(1),t.Q6J("ngIf",d.customContent),t.xp6(1),t.Q6J("ngIf",d.showState&&d.selected))},directives:[R.O5,R.tP,S.Ls,O.w],encapsulation:2,changeDetection:0}),_})(),Ze=(()=>{class _{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new t.vpe,this.scrollToBottom=new t.vpe,this.scrolledIndex=0}onItemClick(a){this.itemClick.emit(a)}onItemHover(a){this.activatedValue=a}trackValue(a,d){return d.key}onScrolledIndexChange(a){this.scrolledIndex=a,a===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const a=this.listOfContainerItem.findIndex(d=>this.compareWith(d.key,this.activatedValue));(a=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(a||0)}ngOnChanges(a){const{listOfContainerItem:d,activatedValue:r}=a;(d||r)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option-container"]],viewQuery:function(a,d){if(1&a&&t.Gf(b.N7,7),2&a){let r;t.iGM(r=t.CRH())&&(d.cdkVirtualScrollViewport=r.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[t.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(a,d){1&a&&(t.TgZ(0,"div"),t.YNc(1,B,2,1,"div",0),t.TgZ(2,"cdk-virtual-scroll-viewport",1),t.NdJ("scrolledIndexChange",function(p){return d.onScrolledIndexChange(p)}),t.YNc(3,ie,3,3,"ng-template",2),t.qZA(),t.YNc(4,K,0,0,"ng-template",3),t.qZA()),2&a&&(t.xp6(1),t.Q6J("ngIf",0===d.listOfContainerItem.length),t.xp6(1),t.Udp("height",d.listOfContainerItem.length*d.itemSize,"px")("max-height",d.itemSize*d.maxItemLength,"px"),t.ekj("full-width",!d.matchWidth),t.Q6J("itemSize",d.itemSize)("maxBufferPx",d.itemSize*d.maxItemLength)("minBufferPx",d.itemSize*d.maxItemLength),t.xp6(1),t.Q6J("cdkVirtualForOf",d.listOfContainerItem)("cdkVirtualForTrackBy",d.trackValue)("cdkVirtualForTemplateCacheSize",0),t.xp6(1),t.Q6J("ngTemplateOutlet",d.dropdownRender))},directives:[D.gB,b.N7,ye,Ve,R.O5,b.xd,b.x0,R.RF,R.n9,R.tP],encapsulation:2,changeDetection:0}),_})(),$e=(()=>{class _{constructor(a,d){this.nzOptionGroupComponent=a,this.destroy$=d,this.changes=new n.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,E.O)(!0),(0,T.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(Ne,8),t.Y36(M.kn))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-option"]],viewQuery:function(a,d){if(1&a&&t.Gf(t.Rgc,7),2&a){let r;t.iGM(r=t.CRH())&&(d.template=r.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[t._Bn([M.kn]),t.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(a,d){1&a&&(t.F$t(),t.YNc(0,ze,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,m.gn)([(0,N.yF)()],_.prototype,"nzDisabled",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzHide",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzCustomContent",void 0),_})(),Ye=(()=>{class _{constructor(a,d,r){this.elementRef=a,this.renderer=d,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.vpe,this.isComposingChange=new t.vpe}setCompositionState(a){this.isComposingChange.next(a)}onValueChange(a){this.value=a,this.valueChange.next(a),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const a=this.mirrorElement.nativeElement,d=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(d,"width"),a.innerHTML=this.renderer.createText(`${r.value} `),this.renderer.setStyle(d,"width",`${a.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(a){const d=this.inputElement.nativeElement,{focusTrigger:r,showInput:p}=a;p&&(this.showInput?this.renderer.removeAttribute(d,"readonly"):this.renderer.setAttribute(d,"readonly","readonly")),r&&!0===r.currentValue&&!1===r.previousValue&&d.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(ae.tE))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-search"]],viewQuery:function(a,d){if(1&a&&(t.Gf(Me,7),t.Gf(Pe,5)),2&a){let r;t.iGM(r=t.CRH())&&(d.inputElement=r.first),t.iGM(r=t.CRH())&&(d.mirrorElement=r.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[t._Bn([{provide:C.ve,useValue:!1}]),t.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(a,d){1&a&&(t.TgZ(0,"input",0,1),t.NdJ("ngModelChange",function(p){return d.onValueChange(p)})("compositionstart",function(){return d.setCompositionState(!0)})("compositionend",function(){return d.setCompositionState(!1)}),t.qZA(),t.YNc(2,Ue,2,0,"span",2)),2&a&&(t.Udp("opacity",d.showInput?null:0),t.Q6J("ngModel",d.value)("disabled",d.disabled),t.uIk("id",d.nzId)("autofocus",d.autofocus?"autofocus":null),t.xp6(2),t.Q6J("ngIf",d.mirrorSync))},directives:[C.Fj,C.JJ,C.On,R.O5],encapsulation:2,changeDetection:0}),_})(),Xe=(()=>{class _{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.vpe}onDelete(a){a.preventDefault(),a.stopPropagation(),this.disabled||this.delete.next(a)}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(a,d){2&a&&(t.uIk("title",d.label),t.ekj("ant-select-selection-item-disabled",d.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(a,d){1&a&&(t.YNc(0,rt,4,2,"ng-container",0),t.YNc(1,ke,2,2,"span",1)),2&a&&(t.Q6J("nzStringTemplateOutlet",d.contentTemplateOutlet)("nzStringTemplateOutletContext",t.VKq(3,et,d.contentTemplateOutletContext)),t.xp6(1),t.Q6J("ngIf",d.deletable&&!d.disabled))},directives:[P.f,R.O5,S.Ls,O.w],encapsulation:2,changeDetection:0}),_})(),Ke=(()=>{class _{constructor(){this.placeholder=null}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(a,d){1&a&&t.YNc(0,nt,2,1,"ng-container",0),2&a&&t.Q6J("nzStringTemplateOutlet",d.placeholder)},directives:[P.f],encapsulation:2,changeDetection:0}),_})(),it=(()=>{class _{constructor(a,d,r){this.elementRef=a,this.ngZone=d,this.noAnimation=r,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new t.vpe,this.inputValueChange=new t.vpe,this.deleteItem=new t.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new n.xQ}updateTemplateVariable(){const a=0===this.listOfTopItem.length;this.isShowPlaceholder=a&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!a&&!this.isComposing&&!this.inputValue}isComposingChange(a){this.isComposing=a,this.updateTemplateVariable()}onInputValueChange(a){a!==this.inputValue&&(this.inputValue=a,this.updateTemplateVariable(),this.inputValueChange.emit(a),this.tokenSeparate(a,this.tokenSeparators))}tokenSeparate(a,d){if(a&&a.length&&d.length&&"default"!==this.mode&&((w,j)=>{for(let oe=0;oe0)return!0;return!1})(a,d)){const w=((w,j)=>{const oe=new RegExp(`[${j.join()}]`),ve=w.split(oe).filter(Se=>Se);return[...new Set(ve)]})(a,d);this.tokenize.next(w)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(a,d){return d.nzValue}onDeleteItem(a){!this.disabled&&!a.nzDisabled&&this.deleteItem.next(a)}ngOnChanges(a){const{listOfTopItem:d,maxTagCount:r,customTemplate:p,maxTagPlaceholder:w}=a;if(d&&this.updateTemplateVariable(),d||r||p||w){const j=this.listOfTopItem.slice(0,this.maxTagCount).map(oe=>({nzLabel:oe.nzLabel,nzValue:oe.nzValue,nzDisabled:oe.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:oe}));if(this.listOfTopItem.length>this.maxTagCount){const oe=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,ve=this.listOfTopItem.map(Le=>Le.nzValue),Se={nzLabel:oe,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:ve.slice(this.maxTagCount)};j.push(Se)}this.listOfSlicedItem=j}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,o.R)(this.elementRef.nativeElement,"click").pipe((0,T.R)(this.destroy$)).subscribe(a=>{a.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,o.R)(this.elementRef.nativeElement,"keydown").pipe((0,T.R)(this.destroy$)).subscribe(a=>{if(a.target instanceof HTMLInputElement){const d=a.target.value;a.keyCode===z.ZH&&"default"!==this.mode&&!d&&this.listOfTopItem.length>0&&(a.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(pe.P,9))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-top-control"]],viewQuery:function(a,d){if(1&a&&t.Gf(Ye,5),2&a){let r;t.iGM(r=t.CRH())&&(d.nzSelectSearchComponent=r.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[t.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(a,d){1&a&&(t.ynx(0,0),t.YNc(1,mt,3,8,"ng-container",1),t.YNc(2,ht,3,9,"ng-container",2),t.BQk(),t.YNc(3,ut,1,1,"nz-select-placeholder",3)),2&a&&(t.Q6J("ngSwitch",d.mode),t.xp6(1),t.Q6J("ngSwitchCase","default"),t.xp6(2),t.Q6J("ngIf",d.isShowPlaceholder))},directives:[Ye,Xe,Ke,R.RF,R.n9,R.O5,R.ED,R.sg,O.w],encapsulation:2,changeDetection:0}),_})(),qe=(()=>{class _{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(a,d){2&a&&t.ekj("ant-select-arrow-loading",d.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(a,d){if(1&a&&(t.YNc(0,H,1,0,"i",0),t.YNc(1,Oe,3,2,"ng-template",null,1,t.W1O)),2&a){const r=t.MAs(2);t.Q6J("ngIf",d.loading)("ngIfElse",r)}},directives:[R.O5,S.Ls,O.w,P.f],encapsulation:2,changeDetection:0}),_})(),Je=(()=>{class _{constructor(){this.clearIcon=null,this.clear=new t.vpe}onClick(a){a.preventDefault(),a.stopPropagation(),this.clear.emit(a)}}return _.\u0275fac=function(a){return new(a||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(a,d){1&a&&t.NdJ("click",function(p){return d.onClick(p)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(a,d){1&a&&t.YNc(0,we,1,0,"i",0),2&a&&t.Q6J("ngIf",!d.clearIcon)("ngIfElse",d.clearIcon)},directives:[R.O5,S.Ls,O.w],encapsulation:2,changeDetection:0}),_})();const _t=(_,V)=>!(!V||!V.nzLabel)&&V.nzLabel.toString().toLowerCase().indexOf(_.toLowerCase())>-1;let Ot=(()=>{class _{constructor(a,d,r,p,w,j,oe,ve){this.destroy$=a,this.nzConfigService=d,this.cdr=r,this.elementRef=p,this.platform=w,this.focusMonitor=j,this.directionality=oe,this.noAnimation=ve,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=_t,this.compareWith=(Se,Le)=>Se===Le,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new t.vpe,this.nzScrollToBottom=new t.vpe,this.nzOpenChange=new t.vpe,this.nzBlur=new t.vpe,this.nzFocus=new t.vpe,this.listOfValue$=new h.X([]),this.listOfTemplateItem$=new h.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(a){this._nzShowArrow=a}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(a){return{nzValue:a,nzLabel:a,type:"item"}}onItemClick(a){if(this.activatedValue=a,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],a))&&this.updateListOfValue([a]),this.setOpenState(!1);else{const d=this.listOfValue.findIndex(r=>this.compareWith(r,a));if(-1!==d){const r=this.listOfValue.filter((p,w)=>w!==d);this.updateListOfValue(r)}else if(this.listOfValue.length!this.compareWith(r,a.nzValue));this.updateListOfValue(d),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let a=this.listOfTagAndTemplateItem.filter(p=>!p.nzHide).filter(p=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,p));if("tags"===this.nzMode&&this.searchValue){const p=this.listOfTagAndTemplateItem.find(w=>w.nzLabel===this.searchValue);if(p)this.activatedValue=p.nzValue;else{const w=this.generateTagItem(this.searchValue);a=[w,...a],this.activatedValue=w.nzValue}}const d=a.find(p=>this.compareWith(p.nzValue,this.listOfValue[0]))||a[0];this.activatedValue=d&&d.nzValue||null;let r=[];this.isReactiveDriven?r=[...new Set(this.nzOptions.filter(p=>p.groupLabel).map(p=>p.groupLabel))]:this.listOfNzOptionGroupComponent&&(r=this.listOfNzOptionGroupComponent.map(p=>p.nzLabel)),r.forEach(p=>{const w=a.findIndex(j=>p===j.groupLabel);w>-1&&a.splice(w,0,{groupLabel:p,type:"group",key:p})}),this.listOfContainerItem=[...a],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(a){const r=((p,w)=>"default"===this.nzMode?p.length>0?p[0]:null:p)(a);this.value!==r&&(this.listOfValue=a,this.listOfValue$.next(a),this.value=r,this.onChange(this.value))}onTokenSeparate(a){const d=this.listOfTagAndTemplateItem.filter(r=>-1!==a.findIndex(p=>p===r.nzLabel)).map(r=>r.nzValue).filter(r=>-1===this.listOfValue.findIndex(p=>this.compareWith(p,r)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...d]);else if("tags"===this.nzMode){const r=a.filter(p=>-1===this.listOfTagAndTemplateItem.findIndex(w=>w.nzLabel===p));this.updateListOfValue([...this.listOfValue,...d,...r])}this.clearInput()}onOverlayKeyDown(a){a.keyCode===z.hY&&this.setOpenState(!1)}onKeyDown(a){if(this.nzDisabled)return;const d=this.listOfContainerItem.filter(p=>"item"===p.type).filter(p=>!p.nzDisabled),r=d.findIndex(p=>this.compareWith(p.nzValue,this.activatedValue));switch(a.keyCode){case z.LH:a.preventDefault(),this.nzOpen&&(this.activatedValue=d[r>0?r-1:d.length-1].nzValue);break;case z.JH:a.preventDefault(),this.nzOpen?this.activatedValue=d[r{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,a!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){U(()=>{var a,d;null===(d=null===(a=this.cdkConnectedOverlay)||void 0===a?void 0:a.overlayRef)||void 0===d||d.updatePosition()})}writeValue(a){if(this.value!==a){this.value=a;const r=((p,w)=>null==p?[]:"default"===this.nzMode?[p]:p)(a);this.listOfValue=r,this.listOfValue$.next(r),this.cdr.markForCheck()}}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=a,a&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(a){const{nzOpen:d,nzDisabled:r,nzOptions:p}=a;if(d&&this.onOpenChange(),r&&this.nzDisabled&&this.setOpenState(!1),p){this.isReactiveDriven=!0;const j=(this.nzOptions||[]).map(oe=>({template:oe.label instanceof t.Rgc?oe.label:null,nzLabel:"string"==typeof oe.label||"number"==typeof oe.label?oe.label:null,nzValue:oe.value,nzDisabled:oe.disabled||!1,nzHide:oe.hide||!1,nzCustomContent:oe.label instanceof t.Rgc,groupLabel:oe.groupLabel||null,type:"item",key:oe.value}));this.listOfTemplateItem$.next(j)}}ngOnInit(){var a;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,T.R)(this.destroy$)).subscribe(d=>{d?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,e.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,T.R)(this.destroy$)).subscribe(([d,r])=>{const p=d.filter(()=>"tags"===this.nzMode).filter(w=>-1===r.findIndex(j=>this.compareWith(j.nzValue,w))).map(w=>this.listOfTopItem.find(j=>this.compareWith(j.nzValue,w))||this.generateTagItem(w));this.listOfTagAndTemplateItem=[...r,...p],this.listOfTopItem=this.listOfValue.map(w=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(j=>this.compareWith(w,j.nzValue))).filter(w=>!!w),this.updateListOfContainerItem()}),null===(a=this.directionality.change)||void 0===a||a.pipe((0,T.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,T.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,y.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,E.O)(!0),(0,F.w)(()=>(0,y.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(a=>a.changes),...this.listOfNzOptionGroupComponent.map(a=>a.changes)).pipe((0,E.O)(!0))),(0,T.R)(this.destroy$)).subscribe(()=>{const a=this.listOfNzOptionComponent.toArray().map(d=>{const{template:r,nzLabel:p,nzValue:w,nzDisabled:j,nzHide:oe,nzCustomContent:ve,groupLabel:Se}=d;return{template:r,nzLabel:p,nzValue:w,nzDisabled:j,nzHide:oe,nzCustomContent:ve,groupLabel:Se,type:"item",key:w}});this.listOfTemplateItem$.next(a),this.cdr.markForCheck()})}ngOnDestroy(){I(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(M.kn),t.Y36(L.jY),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(me.t4),t.Y36(ae.tE),t.Y36(be.Is,8),t.Y36(pe.P,9))},_.\u0275cmp=t.Xpm({type:_,selectors:[["nz-select"]],contentQueries:function(a,d,r){if(1&a&&(t.Suo(r,$e,5),t.Suo(r,Ne,5)),2&a){let p;t.iGM(p=t.CRH())&&(d.listOfNzOptionComponent=p),t.iGM(p=t.CRH())&&(d.listOfNzOptionGroupComponent=p)}},viewQuery:function(a,d){if(1&a&&(t.Gf(v.xu,7,t.SBq),t.Gf(v.pI,7),t.Gf(it,7),t.Gf(Ne,7,t.SBq),t.Gf(it,7,t.SBq)),2&a){let r;t.iGM(r=t.CRH())&&(d.originElement=r.first),t.iGM(r=t.CRH())&&(d.cdkConnectedOverlay=r.first),t.iGM(r=t.CRH())&&(d.nzSelectTopControlComponent=r.first),t.iGM(r=t.CRH())&&(d.nzOptionGroupComponentElement=r.first),t.iGM(r=t.CRH())&&(d.nzSelectTopControlComponentElement=r.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(a,d){1&a&&t.NdJ("click",function(){return d.onHostClick()}),2&a&&t.ekj("ant-select-lg","large"===d.nzSize)("ant-select-sm","small"===d.nzSize)("ant-select-show-arrow",d.nzShowArrow)("ant-select-disabled",d.nzDisabled)("ant-select-show-search",(d.nzShowSearch||"default"!==d.nzMode)&&!d.nzDisabled)("ant-select-allow-clear",d.nzAllowClear)("ant-select-borderless",d.nzBorderless)("ant-select-open",d.nzOpen)("ant-select-focused",d.nzOpen||d.focused)("ant-select-single","default"===d.nzMode)("ant-select-multiple","default"!==d.nzMode)("ant-select-rtl","rtl"===d.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[t._Bn([M.kn,{provide:C.JU,useExisting:(0,t.Gpc)(()=>_),multi:!0}]),t.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(a,d){if(1&a&&(t.TgZ(0,"nz-select-top-control",0,1),t.NdJ("inputValueChange",function(p){return d.onInputValueChange(p)})("tokenize",function(p){return d.onTokenSeparate(p)})("deleteItem",function(p){return d.onItemDelete(p)})("keydown",function(p){return d.onKeyDown(p)}),t.qZA(),t.YNc(2,Fe,1,3,"nz-select-arrow",2),t.YNc(3,Re,1,1,"nz-select-clear",3),t.YNc(4,De,1,19,"ng-template",4),t.NdJ("overlayKeydown",function(p){return d.onOverlayKeyDown(p)})("overlayOutsideClick",function(p){return d.onClickOutside(p)})("detach",function(){return d.setOpenState(!1)})("positionChange",function(p){return d.onPositionChange(p)})),2&a){const r=t.MAs(1);t.Q6J("nzId",d.nzId)("open",d.nzOpen)("disabled",d.nzDisabled)("mode",d.nzMode)("@.disabled",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("nzNoAnimation",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("maxTagPlaceholder",d.nzMaxTagPlaceholder)("removeIcon",d.nzRemoveIcon)("placeHolder",d.nzPlaceHolder)("maxTagCount",d.nzMaxTagCount)("customTemplate",d.nzCustomTemplate)("tokenSeparators",d.nzTokenSeparators)("showSearch",d.nzShowSearch)("autofocus",d.nzAutoFocus)("listOfTopItem",d.listOfTopItem),t.xp6(2),t.Q6J("ngIf",d.nzShowArrow),t.xp6(1),t.Q6J("ngIf",d.nzAllowClear&&!d.nzDisabled&&d.listOfValue.length),t.xp6(1),t.Q6J("cdkConnectedOverlayHasBackdrop",d.nzBackdrop)("cdkConnectedOverlayMinWidth",d.nzDropdownMatchSelectWidth?null:d.triggerWidth)("cdkConnectedOverlayWidth",d.nzDropdownMatchSelectWidth?d.triggerWidth:null)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",d.nzDropdownClassName)("cdkConnectedOverlayOpen",d.nzOpen)}},directives:[it,qe,Je,Ze,O.w,v.xu,pe.P,R.O5,v.pI,Ee.hQ,R.PC],encapsulation:2,data:{animation:[f.mF]},changeDetection:0}),(0,m.gn)([(0,L.oS)()],_.prototype,"nzSuffixIcon",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzAllowClear",void 0),(0,m.gn)([(0,L.oS)(),(0,N.yF)()],_.prototype,"nzBorderless",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzShowSearch",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzLoading",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzAutoFocus",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzAutoClearSearchValue",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzServerSearch",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzDisabled",void 0),(0,m.gn)([(0,N.yF)()],_.prototype,"nzOpen",void 0),(0,m.gn)([(0,L.oS)(),(0,N.yF)()],_.prototype,"nzBackdrop",void 0),_})(),bt=(()=>{class _{}return _.\u0275fac=function(a){return new(a||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[be.vT,R.ez,Te.YI,C.u5,me.ud,v.U8,S.PV,P.T,D.Xo,Ee.e4,pe.g,O.a,b.Cl,ae.rt]]}),_})()},6462:(X,x,s)=>{"use strict";s.d(x,{i:()=>L,m:()=>J});var t=s(655),n=s(1159),o=s(5e3),h=s(4182),e=s(8929),y=s(3753),b=s(7625),D=s(9439),P=s(1721),R=s(5664),S=s(226),O=s(2643),m=s(9808),E=s(647),T=s(969);const F=["switchElement"];function M(Z,Q){1&Z&&o._UZ(0,"i",8)}function N(Z,Q){if(1&Z&&(o.ynx(0),o._uU(1),o.BQk()),2&Z){const I=o.oxw(2);o.xp6(1),o.Oqu(I.nzCheckedChildren)}}function z(Z,Q){if(1&Z&&(o.ynx(0),o.YNc(1,N,2,1,"ng-container",9),o.BQk()),2&Z){const I=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",I.nzCheckedChildren)}}function v(Z,Q){if(1&Z&&(o.ynx(0),o._uU(1),o.BQk()),2&Z){const I=o.oxw(2);o.xp6(1),o.Oqu(I.nzUnCheckedChildren)}}function C(Z,Q){if(1&Z&&o.YNc(0,v,2,1,"ng-container",9),2&Z){const I=o.oxw();o.Q6J("nzStringTemplateOutlet",I.nzUnCheckedChildren)}}let L=(()=>{class Z{constructor(I,U,ae,pe,me,be){this.nzConfigService=I,this.host=U,this.ngZone=ae,this.cdr=pe,this.focusMonitor=me,this.directionality=be,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new e.xQ}updateValue(I){this.isChecked!==I&&(this.isChecked=I,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(I=>{this.dir=I,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,y.R)(this.host.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(I=>{I.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,y.R)(this.switchElement.nativeElement,"keydown").pipe((0,b.R)(this.destroy$)).subscribe(I=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:U}=I;U!==n.oh&&U!==n.SV&&U!==n.L_&&U!==n.K5||(I.preventDefault(),this.ngZone.run(()=>{U===n.oh?this.updateValue(!1):U===n.SV?this.updateValue(!0):(U===n.L_||U===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,b.R)(this.destroy$)).subscribe(I=>{I||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(I){this.isChecked=I,this.cdr.markForCheck()}registerOnChange(I){this.onChange=I}registerOnTouched(I){this.onTouched=I}setDisabledState(I){this.nzDisabled=I,this.cdr.markForCheck()}}return Z.\u0275fac=function(I){return new(I||Z)(o.Y36(D.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(R.tE),o.Y36(S.Is,8))},Z.\u0275cmp=o.Xpm({type:Z,selectors:[["nz-switch"]],viewQuery:function(I,U){if(1&I&&o.Gf(F,7),2&I){let ae;o.iGM(ae=o.CRH())&&(U.switchElement=ae.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>Z),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(I,U){if(1&I&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,M,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,z,2,1,"ng-container",5),o.YNc(6,C,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&I){const ae=o.MAs(7);o.ekj("ant-switch-checked",U.isChecked)("ant-switch-loading",U.nzLoading)("ant-switch-disabled",U.nzDisabled)("ant-switch-small","small"===U.nzSize)("ant-switch-rtl","rtl"===U.dir),o.Q6J("disabled",U.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",U.nzLoading),o.xp6(2),o.Q6J("ngIf",U.isChecked)("ngIfElse",ae)}},directives:[O.dQ,m.O5,E.Ls,T.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,P.yF)()],Z.prototype,"nzLoading",void 0),(0,t.gn)([(0,P.yF)()],Z.prototype,"nzDisabled",void 0),(0,t.gn)([(0,P.yF)()],Z.prototype,"nzControl",void 0),(0,t.gn)([(0,D.oS)()],Z.prototype,"nzSize",void 0),Z})(),J=(()=>{class Z{}return Z.\u0275fac=function(I){return new(I||Z)},Z.\u0275mod=o.oAB({type:Z}),Z.\u0275inj=o.cJS({imports:[[S.vT,m.ez,O.vG,E.PV,T.T]]}),Z})()},592:(X,x,s)=>{"use strict";s.d(x,{Uo:()=>Xt,N8:()=>In,HQ:()=>An,p0:()=>yn,qD:()=>Ht,_C:()=>dt,Om:()=>wn,$Z:()=>Sn});var t=s(226),n=s(925),o=s(3393),h=s(9808),e=s(5e3),y=s(4182),b=s(6042),D=s(5577),P=s(6114),R=s(969),S=s(3677),O=s(685),m=s(4170),E=s(647),T=s(4219),F=s(655),M=s(8929),N=s(5647),z=s(7625),v=s(9439),C=s(4090),f=s(1721),L=s(5197);const J=["nz-pagination-item",""];function Z(c,u){if(1&c&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&c){const i=e.oxw().page;e.xp6(1),e.Oqu(i)}}function Q(c,u){1&c&&e._UZ(0,"i",9)}function I(c,u){1&c&&e._UZ(0,"i",10)}function U(c,u){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,Q,1,0,"i",7),e.YNc(3,I,1,0,"i",8),e.BQk(),e.qZA()),2&c){const i=e.oxw(2);e.Q6J("disabled",i.disabled),e.xp6(1),e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function ae(c,u){1&c&&e._UZ(0,"i",10)}function pe(c,u){1&c&&e._UZ(0,"i",9)}function me(c,u){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,ae,1,0,"i",11),e.YNc(3,pe,1,0,"i",12),e.BQk(),e.qZA()),2&c){const i=e.oxw(2);e.Q6J("disabled",i.disabled),e.xp6(1),e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function be(c,u){1&c&&e._UZ(0,"i",20)}function Ee(c,u){1&c&&e._UZ(0,"i",21)}function Te(c,u){if(1&c&&(e.ynx(0,2),e.YNc(1,be,1,0,"i",18),e.YNc(2,Ee,1,0,"i",19),e.BQk()),2&c){const i=e.oxw(4);e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function Y(c,u){1&c&&e._UZ(0,"i",21)}function le(c,u){1&c&&e._UZ(0,"i",20)}function $(c,u){if(1&c&&(e.ynx(0,2),e.YNc(1,Y,1,0,"i",22),e.YNc(2,le,1,0,"i",23),e.BQk()),2&c){const i=e.oxw(4);e.Q6J("ngSwitch",i.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function ee(c,u){if(1&c&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,Te,3,2,"ng-container",16),e.YNc(3,$,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&c){const i=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",i),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function _e(c,u){if(1&c&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,ee,6,3,"div",14),e.qZA(),e.BQk()),2&c){const i=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",i)}}function te(c,u){1&c&&(e.ynx(0,2),e.YNc(1,Z,2,1,"a",3),e.YNc(2,U,4,3,"button",4),e.YNc(3,me,4,3,"button",4),e.YNc(4,_e,3,1,"ng-container",5),e.BQk()),2&c&&(e.Q6J("ngSwitch",u.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function re(c,u){}const B=function(c,u){return{$implicit:c,page:u}},ne=["containerTemplate"];function k(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(i),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(g){return e.CHM(i),e.oxw().jumpToPageViaInput(g)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(i),e.oxw().nextPage()}),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("disabled",i.isFirstIndex)("direction",i.dir)("itemRender",i.itemRender),e.uIk("title",i.locale.prev_page),e.xp6(1),e.uIk("title",i.pageIndex+"/"+i.lastIndex),e.xp6(1),e.Q6J("disabled",i.disabled)("value",i.pageIndex),e.xp6(3),e.hij(" ",i.lastIndex," "),e.xp6(1),e.Q6J("disabled",i.isLastIndex)("direction",i.dir)("itemRender",i.itemRender),e.uIk("title",null==i.locale?null:i.locale.next_page)}}const ie=["nz-pagination-options",""];function K(c,u){if(1&c&&e._UZ(0,"nz-option",4),2&c){const i=u.$implicit;e.Q6J("nzLabel",i.label)("nzValue",i.value)}}function ze(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(g){return e.CHM(i),e.oxw().onPageSizeChange(g)}),e.YNc(1,K,1,2,"nz-option",3),e.qZA()}if(2&c){const i=e.oxw();e.Q6J("nzDisabled",i.disabled)("nzSize",i.nzSize)("ngModel",i.pageSize),e.xp6(1),e.Q6J("ngForOf",i.listOfPageSizeOption)("ngForTrackBy",i.trackByOption)}}function Me(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(g){return e.CHM(i),e.oxw().jumpToPageViaInput(g)}),e.qZA(),e._uU(3),e.qZA()}if(2&c){const i=e.oxw();e.xp6(1),e.hij(" ",i.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",i.disabled),e.xp6(1),e.hij(" ",i.locale.page," ")}}function Pe(c,u){}const Ue=function(c,u){return{$implicit:c,range:u}};function Qe(c,u){if(1&c&&(e.TgZ(0,"li",4),e.YNc(1,Pe,0,0,"ng-template",5),e.qZA()),2&c){const i=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",i.showTotal)("ngTemplateOutletContext",e.WLB(2,Ue,i.total,i.ranges))}}function Ge(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(g){return e.CHM(i),e.oxw(2).jumpPage(g)})("diffIndex",function(g){return e.CHM(i),e.oxw(2).jumpDiff(g)}),e.qZA()}if(2&c){const i=u.$implicit,l=e.oxw(2);e.Q6J("locale",l.locale)("type",i.type)("index",i.index)("disabled",!!i.disabled)("itemRender",l.itemRender)("active",l.pageIndex===i.index)("direction",l.dir)}}function rt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(g){return e.CHM(i),e.oxw(2).onPageIndexChange(g)})("pageSizeChange",function(g){return e.CHM(i),e.oxw(2).onPageSizeChange(g)}),e.qZA()}if(2&c){const i=e.oxw(2);e.Q6J("total",i.total)("locale",i.locale)("disabled",i.disabled)("nzSize",i.nzSize)("showSizeChanger",i.showSizeChanger)("showQuickJumper",i.showQuickJumper)("pageIndex",i.pageIndex)("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)}}function tt(c,u){if(1&c&&(e.YNc(0,Qe,2,5,"li",1),e.YNc(1,Ge,1,7,"li",2),e.YNc(2,rt,1,9,"div",3)),2&c){const i=e.oxw();e.Q6J("ngIf",i.showTotal),e.xp6(1),e.Q6J("ngForOf",i.listOfPageItem)("ngForTrackBy",i.trackByPageItem),e.xp6(1),e.Q6J("ngIf",i.showQuickJumper||i.showSizeChanger)}}function ke(c,u){}function et(c,u){if(1&c&&(e.ynx(0),e.YNc(1,ke,0,0,"ng-template",6),e.BQk()),2&c){e.oxw(2);const i=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",i.template)}}function nt(c,u){if(1&c&&(e.ynx(0),e.YNc(1,et,2,1,"ng-container",5),e.BQk()),2&c){const i=e.oxw(),l=e.MAs(4);e.xp6(1),e.Q6J("ngIf",i.nzSimple)("ngIfElse",l.template)}}let He=(()=>{class c{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(i){var l,g,A,G;const{locale:de,index:he,type:xe}=i;(de||he||xe)&&(this.title={page:`${this.index}`,next:null===(l=this.locale)||void 0===l?void 0:l.next_page,prev:null===(g=this.locale)||void 0===g?void 0:g.prev_page,prev_5:null===(A=this.locale)||void 0===A?void 0:A.prev_5,next_5:null===(G=this.locale)||void 0===G?void 0:G.next_5}[this.type])}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(i,l){1&i&&e.NdJ("click",function(){return l.clickItem()}),2&i&&(e.uIk("title",l.title),e.ekj("ant-pagination-prev","prev"===l.type)("ant-pagination-next","next"===l.type)("ant-pagination-item","page"===l.type)("ant-pagination-jump-prev","prev_5"===l.type)("ant-pagination-jump-prev-custom-icon","prev_5"===l.type)("ant-pagination-jump-next","next_5"===l.type)("ant-pagination-jump-next-custom-icon","next_5"===l.type)("ant-pagination-disabled",l.disabled)("ant-pagination-item-active",l.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:J,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(i,l){if(1&i&&(e.YNc(0,te,5,4,"ng-template",null,0,e.W1O),e.YNc(2,re,0,0,"ng-template",1)),2&i){const g=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",l.itemRender||g)("ngTemplateOutletContext",e.WLB(2,B,l.type,l.index))}},directives:[h.RF,h.n9,E.Ls,h.ED,h.tP],encapsulation:2,changeDetection:0}),c})(),mt=(()=>{class c{constructor(i,l,g,A){this.cdr=i,this.renderer=l,this.elementRef=g,this.directionality=A,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(g.nativeElement),g.nativeElement)}ngOnInit(){var i;null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(i){const l=i.target,g=(0,f.He)(l.value,this.pageIndex);this.onPageIndexChange(g),l.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(i){this.pageIndexChange.next(i)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(i){const{pageIndex:l,total:g,pageSize:A}=i;(l||g||A)&&this.updateBindingValue()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(t.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination-simple"]],viewQuery:function(i,l){if(1&i&&e.Gf(ne,7),2&i){let g;e.iGM(g=e.CRH())&&(l.template=g.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(i,l){1&i&&e.YNc(0,k,7,12,"ng-template",null,0,e.W1O)},directives:[He],encapsulation:2,changeDetection:0}),c})(),pt=(()=>{class c{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(i){this.pageSize!==i&&this.pageSizeChange.next(i)}jumpToPageViaInput(i){const l=i.target,g=Math.floor((0,f.He)(l.value,this.pageIndex));this.pageIndexChange.next(g),l.value=""}trackByOption(i,l){return l.value}ngOnChanges(i){const{pageSize:l,pageSizeOptions:g,locale:A}=i;(l||g||A)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(G=>({value:G,label:`${G} ${this.locale.items_per_page}`})))}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:ie,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(i,l){1&i&&(e.YNc(0,ze,2,5,"nz-select",0),e.YNc(1,Me,4,3,"div",1)),2&i&&(e.Q6J("ngIf",l.showSizeChanger),e.xp6(1),e.Q6J("ngIf",l.showQuickJumper))},directives:[L.Vq,L.Ip,h.O5,y.JJ,y.On,h.sg],encapsulation:2,changeDetection:0}),c})(),ht=(()=>{class c{constructor(i,l,g,A){this.cdr=i,this.renderer=l,this.elementRef=g,this.directionality=A,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(g.nativeElement),g.nativeElement)}ngOnInit(){var i;null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(i){this.onPageIndexChange(i)}jumpDiff(i){this.jumpPage(this.pageIndex+i)}trackByPageItem(i,l){return`${l.type}-${l.index}`}onPageIndexChange(i){this.pageIndexChange.next(i)}onPageSizeChange(i){this.pageSizeChange.next(i)}getLastIndex(i,l){return Math.ceil(i/l)}buildIndexes(){const i=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,i)}getListOfPageItem(i,l){const A=(G,de)=>{const he=[];for(let xe=G;xe<=de;xe++)he.push({index:xe,type:"page"});return he};return G=l<=9?A(1,l):((de,he)=>{let xe=[];const Be={type:"prev_5"},ue={type:"next_5"},st=A(1,1),yt=A(l,l);return xe=de<5?[...A(2,4===de?6:5),ue]:de{class c{constructor(i,l,g,A,G){this.i18n=i,this.cdr=l,this.breakpointService=g,this.nzConfigService=A,this.directionality=G,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new M.xQ,this.total$=new N.t(1)}validatePageIndex(i,l){return i>l?l:i<1?1:i}onPageIndexChange(i){const l=this.getLastIndex(this.nzTotal,this.nzPageSize),g=this.validatePageIndex(i,l);g!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=g,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(i){this.nzPageSize=i,this.nzPageSizeChange.emit(i);const l=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>l&&this.onPageIndexChange(l)}onTotalChange(i){const l=this.getLastIndex(i,this.nzPageSize);this.nzPageIndex>l&&Promise.resolve().then(()=>{this.onPageIndexChange(l),this.cdr.markForCheck()})}getLastIndex(i,l){return Math.ceil(i/l)}ngOnInit(){var i;this.i18n.localeChange.pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.onTotalChange(l)}),this.breakpointService.subscribe(C.WV).pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.nzResponsive&&(this.size=l===C.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(i){const{nzHideOnSinglePage:l,nzTotal:g,nzPageSize:A,nzSize:G}=i;g&&this.total$.next(this.nzTotal),(l||g||A)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),G&&(this.size=G.currentValue)}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(m.wi),e.Y36(e.sBO),e.Y36(C.r3),e.Y36(v.jY),e.Y36(t.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(i,l){2&i&&e.ekj("ant-pagination-simple",l.nzSimple)("ant-pagination-disabled",l.nzDisabled)("mini",!l.nzSimple&&"small"===l.size)("ant-pagination-rtl","rtl"===l.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(i,l){1&i&&(e.YNc(0,nt,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(A){return l.onPageIndexChange(A)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(A){return l.onPageIndexChange(A)})("pageSizeChange",function(A){return l.onPageSizeChange(A)}),e.qZA()),2&i&&(e.Q6J("ngIf",l.showPagination),e.xp6(1),e.Q6J("disabled",l.nzDisabled)("itemRender",l.nzItemRender)("locale",l.locale)("pageSize",l.nzPageSize)("total",l.nzTotal)("pageIndex",l.nzPageIndex),e.xp6(2),e.Q6J("nzSize",l.size)("itemRender",l.nzItemRender)("showTotal",l.nzShowTotal)("disabled",l.nzDisabled)("locale",l.locale)("showSizeChanger",l.nzShowSizeChanger)("showQuickJumper",l.nzShowQuickJumper)("total",l.nzTotal)("pageIndex",l.nzPageIndex)("pageSize",l.nzPageSize)("pageSizeOptions",l.nzPageSizeOptions))},directives:[mt,ht,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,v.oS)()],c.prototype,"nzSize",void 0),(0,F.gn)([(0,v.oS)()],c.prototype,"nzPageSizeOptions",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzDisabled",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzResponsive",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,F.gn)([(0,f.Rn)()],c.prototype,"nzTotal",void 0),(0,F.gn)([(0,f.Rn)()],c.prototype,"nzPageIndex",void 0),(0,F.gn)([(0,f.Rn)()],c.prototype,"nzPageSize",void 0),c})(),q=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[t.vT,h.ez,y.u5,L.LV,m.YI,E.PV]]}),c})();var fe=s(3868),ge=s(7525),Ie=s(3753),se=s(591),Oe=s(6053),we=s(6787),Fe=s(8896),Re=s(1086),De=s(4850),Ne=s(1059),ye=s(7545),Ve=s(13),Ze=s(8583),$e=s(2198),Ye=s(5778),Xe=s(1307),Ke=s(1709),it=s(2683),qe=s(2643);const Je=["*"];function _t(c,u){}function zt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(i);const g=e.oxw().$implicit;return e.oxw(2).check(g)}),e.qZA()}if(2&c){const i=e.oxw().$implicit;e.Q6J("ngModel",i.checked)}}function Ot(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(i);const g=e.oxw().$implicit;return e.oxw(2).check(g)}),e.qZA()}if(2&c){const i=e.oxw().$implicit;e.Q6J("ngModel",i.checked)}}function bt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const A=e.CHM(i).$implicit;return e.oxw(2).check(A)}),e.YNc(1,zt,1,1,"label",13),e.YNc(2,Ot,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&c){const i=u.$implicit,l=e.oxw(2);e.Q6J("nzSelected",i.checked),e.xp6(1),e.Q6J("ngIf",!l.filterMultiple),e.xp6(1),e.Q6J("ngIf",l.filterMultiple),e.xp6(2),e.Oqu(i.text)}}function _(c,u){if(1&c){const i=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(g){return e.CHM(i),e.oxw().onVisibleChange(g)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,bt,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(i),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(i),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&c){const i=e.MAs(4),l=e.oxw();e.xp6(1),e.Q6J("nzVisible",l.isVisible)("nzActive",l.isChecked)("nzDropdownMenu",i),e.xp6(6),e.Q6J("ngForOf",l.listOfParsedFilter)("ngForTrackBy",l.trackByValue),e.xp6(2),e.Q6J("disabled",!l.isChecked),e.xp6(1),e.hij(" ",l.locale.filterReset," "),e.xp6(2),e.Oqu(l.locale.filterConfirm)}}function r(c,u){}function p(c,u){if(1&c&&e._UZ(0,"i",6),2&c){const i=e.oxw();e.ekj("active","ascend"===i.sortOrder)}}function w(c,u){if(1&c&&e._UZ(0,"i",7),2&c){const i=e.oxw();e.ekj("active","descend"===i.sortOrder)}}const Se=["nzColumnKey",""];function Le(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(g){return e.CHM(i),e.oxw().onFilterValueChange(g)}),e.qZA()}if(2&c){const i=e.oxw(),l=e.MAs(2),g=e.MAs(4);e.Q6J("contentTemplate",l)("extraTemplate",g)("customFilter",i.nzCustomFilter)("filterMultiple",i.nzFilterMultiple)("listOfFilter",i.nzFilters)}}function ot(c,u){}function ct(c,u){if(1&c&&e.YNc(0,ot,0,0,"ng-template",6),2&c){const i=e.oxw(),l=e.MAs(6),g=e.MAs(8);e.Q6J("ngTemplateOutlet",i.nzShowSort?l:g)}}function St(c,u){1&c&&(e.Hsn(0),e.Hsn(1,1))}function At(c,u){if(1&c&&e._UZ(0,"nz-table-sorters",7),2&c){const i=e.oxw(),l=e.MAs(8);e.Q6J("sortOrder",i.sortOrder)("sortDirections",i.sortDirections)("contentTemplate",l)}}function Pt(c,u){1&c&&e.Hsn(0,2)}const Ft=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],xt=["[nz-th-extra]","nz-filter-trigger","*"],Rt=["nz-table-content",""];function Bt(c,u){if(1&c&&e._UZ(0,"col"),2&c){const i=u.$implicit;e.Udp("width",i)("min-width",i)}}function kt(c,u){}function Lt(c,u){if(1&c&&(e.TgZ(0,"thead",3),e.YNc(1,kt,0,0,"ng-template",2),e.qZA()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",i.theadTemplate)}}function Mt(c,u){}const Dt=["tdElement"],Zt=["nz-table-fixed-row",""];function $t(c,u){}function Wt(c,u){if(1&c&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,$t,0,0,"ng-template",5),e.qZA()),2&c){const i=e.oxw(),l=e.MAs(5);e.Udp("width",e.lcZ(1,3,i.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",l)}}function Et(c,u){1&c&&e.Hsn(0)}const Ut=["nz-table-measure-row",""];function Qt(c,u){1&c&&e._UZ(0,"td",1,2)}function Vt(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(g){return e.CHM(i),e.oxw(2).onListOfAutoWidthChange(g)}),e.qZA()}if(2&c){const i=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",i)}}function Nt(c,u){if(1&c&&(e.ynx(0),e.YNc(1,Vt,1,1,"tr",2),e.BQk()),2&c){const i=u.ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngIf",l.isInsideTable&&i.length)}}function Yt(c,u){if(1&c&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,i.noResult$))}}const Jt=["tableHeaderElement"],jt=["tableBodyElement"];function qt(c,u){if(1&c&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&c){const i=e.oxw(2);e.Q6J("ngStyle",i.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth)("contentTemplate",i.contentTemplate)}}function en(c,u){}const tn=function(c,u){return{$implicit:c,index:u}};function nn(c,u){if(1&c&&(e.ynx(0),e.YNc(1,en,0,0,"ng-template",13),e.BQk()),2&c){const i=u.$implicit,l=u.index,g=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",g.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,tn,i,l))}}function on(c,u){if(1&c&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,nn,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&c){const i=e.oxw(2);e.Udp("height",i.data.length?i.scrollY:i.noDateVirtualHeight),e.Q6J("itemSize",i.virtualItemSize)("maxBufferPx",i.virtualMaxBufferPx)("minBufferPx",i.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",i.data)("cdkVirtualForTrackBy",i.virtualForTrackBy)}}function an(c,u){if(1&c&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,qt,3,4,"div",5),e.YNc(5,on,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&c){const i=e.oxw();e.xp6(1),e.Q6J("ngStyle",i.headerStyleMap),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth)("theadTemplate",i.theadTemplate),e.xp6(1),e.Q6J("ngIf",!i.virtualTemplate),e.xp6(1),e.Q6J("ngIf",i.virtualTemplate)}}function sn(c,u){if(1&c&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&c){const i=e.oxw();e.Q6J("ngStyle",i.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",i.scrollX)("listOfColWidth",i.listOfColWidth)("theadTemplate",i.theadTemplate)("contentTemplate",i.contentTemplate)}}function rn(c,u){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const i=e.oxw();e.xp6(1),e.Oqu(i.title)}}function ln(c,u){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const i=e.oxw();e.xp6(1),e.Oqu(i.footer)}}function cn(c,u){}function dn(c,u){if(1&c&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const i=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}function pn(c,u){if(1&c&&e._UZ(0,"nz-table-title-footer",11),2&c){const i=e.oxw();e.Q6J("title",i.nzTitle)}}function hn(c,u){if(1&c&&e._UZ(0,"nz-table-inner-scroll",12),2&c){const i=e.oxw(),l=e.MAs(13),g=e.MAs(3);e.Q6J("data",i.data)("scrollX",i.scrollX)("scrollY",i.scrollY)("contentTemplate",l)("listOfColWidth",i.listOfAutoColWidth)("theadTemplate",i.theadTemplate)("verticalScrollBarWidth",i.verticalScrollBarWidth)("virtualTemplate",i.nzVirtualScrollDirective?i.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",i.nzVirtualItemSize)("virtualMaxBufferPx",i.nzVirtualMaxBufferPx)("virtualMinBufferPx",i.nzVirtualMinBufferPx)("tableMainElement",g)("virtualForTrackBy",i.nzVirtualForTrackBy)}}function Ae(c,u){if(1&c&&e._UZ(0,"nz-table-inner-default",13),2&c){const i=e.oxw(),l=e.MAs(13);e.Q6J("tableLayout",i.nzTableLayout)("listOfColWidth",i.listOfManualColWidth)("theadTemplate",i.theadTemplate)("contentTemplate",l)}}function It(c,u){if(1&c&&e._UZ(0,"nz-table-title-footer",14),2&c){const i=e.oxw();e.Q6J("footer",i.nzFooter)}}function un(c,u){}function fn(c,u){if(1&c&&(e.ynx(0),e.YNc(1,un,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const i=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}function gn(c,u){if(1&c){const i=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(g){return e.CHM(i),e.oxw(2).onPageSizeChange(g)})("nzPageIndexChange",function(g){return e.CHM(i),e.oxw(2).onPageIndexChange(g)}),e.qZA()}if(2&c){const i=e.oxw(2);e.Q6J("hidden",!i.showPagination)("nzShowSizeChanger",i.nzShowSizeChanger)("nzPageSizeOptions",i.nzPageSizeOptions)("nzItemRender",i.nzItemRender)("nzShowQuickJumper",i.nzShowQuickJumper)("nzHideOnSinglePage",i.nzHideOnSinglePage)("nzShowTotal",i.nzShowTotal)("nzSize","small"===i.nzPaginationType?"small":"default"===i.nzSize?"default":"small")("nzPageSize",i.nzPageSize)("nzTotal",i.nzTotal)("nzSimple",i.nzSimple)("nzPageIndex",i.nzPageIndex)}}function mn(c,u){if(1&c&&e.YNc(0,gn,1,12,"nz-pagination",15),2&c){const i=e.oxw();e.Q6J("ngIf",i.nzShowPagination&&i.data.length)}}function _n(c,u){1&c&&e.Hsn(0)}const W=["contentTemplate"];function ce(c,u){1&c&&e.Hsn(0)}function Ce(c,u){}function We(c,u){if(1&c&&(e.ynx(0),e.YNc(1,Ce,0,0,"ng-template",2),e.BQk()),2&c){e.oxw();const i=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",i)}}let at=(()=>{class c{constructor(i,l,g,A){this.nzConfigService=i,this.ngZone=l,this.cdr=g,this.destroy$=A,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(i){this.nzVisible=i,this.nzVisibleChange.next(i)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Ie.R)(this.nzDropdown.nativeElement,"click").pipe((0,z.R)(this.destroy$)).subscribe(i=>{i.stopPropagation()})})}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(v.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(C.kn))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-filter-trigger"]],viewQuery:function(i,l){if(1&i&&e.Gf(S.cm,7,e.SBq),2&i){let g;e.iGM(g=e.CRH())&&(l.nzDropdown=g.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([C.kn])],ngContentSelectors:Je,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(i,l){1&i&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(A){return l.onVisibleChange(A)}),e.Hsn(1),e.qZA()),2&i&&(e.ekj("active",l.nzActive)("ant-table-filter-open",l.nzVisible),e.Q6J("nzBackdrop",l.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",l.nzDropdownMenu)("nzVisible",l.nzVisible))},directives:[S.cm],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzBackdrop",void 0),c})(),je=(()=>{class c{constructor(i,l){this.cdr=i,this.i18n=l,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new M.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(i,l){return l.value}check(i){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(l=>l===i?Object.assign(Object.assign({},l),{checked:!i.checked}):l),i.checked=!i.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(l=>Object.assign(Object.assign({},l),{checked:l===i})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(i){this.isVisible=i,i?this.listOfChecked=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value):this.emitFilterData()}emitFilterData(){const i=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value);(0,f.cO)(this.listOfChecked,i)||this.filterChange.emit(this.filterMultiple?i:i.length>0?i[0]:null)}parseListOfFilter(i,l){return i.map(g=>({text:g.text,value:g.value,checked:!l&&!!g.byDefault}))}getCheckedStatus(i){return i.some(l=>l.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(i){const{listOfFilter:l}=i;l&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO),e.Y36(m.wi))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(i,l){1&i&&(e.TgZ(0,"span",0),e.YNc(1,_t,0,0,"ng-template",1),e.qZA(),e.YNc(2,_,13,8,"ng-container",2)),2&i&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.Q6J("ngIf",!l.customFilter)("ngIfElse",l.extraTemplate))},directives:[at,S.RR,fe.Of,P.Ie,b.ix,h.tP,h.O5,it.w,E.Ls,T.wO,h.sg,T.r9,y.JJ,y.On,qe.dQ],encapsulation:2,changeDetection:0}),c})(),Gt=(()=>{class c{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(i){const{sortDirections:l}=i;l&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(i,l){1&i&&(e.TgZ(0,"span",0),e.YNc(1,r,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,p,1,2,"i",4),e.YNc(5,w,1,2,"i",5),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",l.isDown&&l.isUp),e.xp6(2),e.Q6J("ngIf",l.isUp),e.xp6(1),e.Q6J("ngIf",l.isDown))},directives:[h.tP,h.O5,it.w,E.Ls],encapsulation:2,changeDetection:0}),c})(),vt=(()=>{class c{constructor(i,l){this.renderer=i,this.elementRef=l,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new M.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(i){this.renderer.setStyle(this.elementRef.nativeElement,"left",i)}setAutoRightWidth(i){this.renderer.setStyle(this.elementRef.nativeElement,"right",i)}setIsFirstRight(i){this.setFixClass(i,"ant-table-cell-fix-right-first")}setIsLastLeft(i){this.setFixClass(i,"ant-table-cell-fix-left-last")}setFixClass(i,l){this.renderer.removeClass(this.elementRef.nativeElement,l),i&&this.renderer.addClass(this.elementRef.nativeElement,l)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const i=l=>"string"==typeof l&&""!==l?l:null;this.setAutoLeftWidth(i(this.nzLeft)),this.setAutoRightWidth(i(this.nzRight)),this.changes$.next()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(i,l){2&i&&(e.Udp("position",l.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",l.isFixedRight)("ant-table-cell-fix-left",l.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),c})(),gt=(()=>{class c{constructor(){this.theadTemplate$=new N.t(1),this.hasFixLeft$=new N.t(1),this.hasFixRight$=new N.t(1),this.hostWidth$=new N.t(1),this.columnCount$=new N.t(1),this.showEmpty$=new N.t(1),this.noResult$=new N.t(1),this.listOfThWidthConfigPx$=new se.X([]),this.tableWidthConfigPx$=new se.X([]),this.manualWidthConfigPx$=(0,Oe.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,De.U)(([i,l])=>i.length?i:l)),this.listOfAutoWidthPx$=new N.t(1),this.listOfListOfThWidthPx$=(0,we.T)(this.manualWidthConfigPx$,(0,Oe.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,De.U)(([i,l])=>i.length===l.length?i.map((g,A)=>"0px"===g?l[A]||null:l[A]||g):l))),this.listOfMeasureColumn$=new N.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,De.U)(i=>i.map(l=>parseInt(l,10)))),this.enableAutoMeasure$=new N.t(1)}setTheadTemplate(i){this.theadTemplate$.next(i)}setHasFixLeft(i){this.hasFixLeft$.next(i)}setHasFixRight(i){this.hasFixRight$.next(i)}setTableWidthConfig(i){this.tableWidthConfigPx$.next(i)}setListOfTh(i){let l=0;i.forEach(A=>{l+=A.colspan&&+A.colspan||A.colSpan&&+A.colSpan||1});const g=i.map(A=>A.nzWidth);this.columnCount$.next(l),this.listOfThWidthConfigPx$.next(g)}setListOfMeasureColumn(i){const l=[];i.forEach(g=>{const A=g.colspan&&+g.colspan||g.colSpan&&+g.colSpan||1;for(let G=0;G`${l}px`))}setShowEmpty(i){this.showEmpty$.next(i)}setNoResult(i){this.noResult$.next(i)}setScroll(i,l){const g=!(!i&&!l);g||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(g)}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Xt=(()=>{class c{constructor(i){this.isInsideTable=!1,this.isInsideTable=!!i}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-cell",l.isInsideTable)}}),c})(),Ht=(()=>{class c{constructor(i){this.cdr=i,this.manualClickOrder$=new M.xQ,this.calcOperatorChange$=new M.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new M.xQ,this.destroy$=new M.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(i,l){const g=i.indexOf(l);return g===i.length-1?i[0]:i[g+1]}emitNextSortValue(){if(this.nzShowSort){const i=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(i),this.manualClickOrder$.next(this)}}setSortOrder(i){this.sortOrderChange$.next(i)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(i){this.nzFilterChange.emit(i),this.nzFilterValue=i,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,z.R)(this.destroy$)).subscribe(i=>{this.sortOrder!==i&&(this.sortOrder=i,this.nzSortOrderChange.emit(i)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(i){const{nzSortDirections:l,nzFilters:g,nzSortOrder:A,nzSortFn:G,nzFilterFn:de,nzSortPriority:he,nzFilterMultiple:xe,nzShowSort:Be,nzShowFilter:ue}=i;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),A&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),Be&&(this.isNzShowSortChanged=!0),ue&&(this.isNzShowFilterChanged=!0);const st=yt=>yt&&yt.firstChange&&void 0!==yt.currentValue;if((st(A)||st(G))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),st(g)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(g||xe)&&this.nzShowFilter){const yt=this.nzFilters.filter(wt=>wt.byDefault).map(wt=>wt.value);this.nzFilterValue=this.nzFilterMultiple?yt:yt[0]||null}(G||de||he||g)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.sBO))},c.\u0275cmp=e.Xpm({type:c,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(i,l){1&i&&e.NdJ("click",function(){return l.emitNextSortValue()}),2&i&&e.ekj("ant-table-column-has-sorters",l.nzShowSort)("ant-table-column-sort","descend"===l.sortOrder||"ascend"===l.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:Se,ngContentSelectors:xt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(i,l){if(1&i&&(e.F$t(Ft),e.YNc(0,Le,1,5,"nz-table-filter",0),e.YNc(1,ct,1,1,"ng-template",null,1,e.W1O),e.YNc(3,St,2,0,"ng-template",null,2,e.W1O),e.YNc(5,At,1,3,"ng-template",null,3,e.W1O),e.YNc(7,Pt,1,0,"ng-template",null,4,e.W1O)),2&i){const g=e.MAs(2);e.Q6J("ngIf",l.nzShowFilter||l.nzCustomFilter)("ngIfElse",g)}},directives:[je,Gt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,f.yF)()],c.prototype,"nzShowSort",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzShowFilter",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzCustomFilter",void 0),c})(),dt=(()=>{class c{constructor(i,l){this.renderer=i,this.elementRef=l,this.changes$=new M.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(i){const{nzWidth:l,colspan:g,rowspan:A,colSpan:G,rowSpan:de}=i;if(g||G){const he=this.colspan||this.colSpan;(0,f.kK)(he)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${he}`)}if(A||de){const he=this.rowspan||this.rowSpan;(0,f.kK)(he)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${he}`)}(l||g)&&this.changes$.next()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),c})(),Tn=(()=>{class c{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(i,l){2&i&&(e.Udp("table-layout",l.tableLayout)("width",l.scrollX)("min-width",l.scrollX?"100%":null),e.ekj("ant-table-fixed",l.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Rt,ngContentSelectors:Je,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(i,l){1&i&&(e.F$t(),e.YNc(0,Bt,1,4,"col",0),e.YNc(1,Lt,2,1,"thead",1),e.YNc(2,Mt,0,0,"ng-template",2),e.Hsn(3)),2&i&&(e.Q6J("ngForOf",l.listOfColWidth),e.xp6(1),e.Q6J("ngIf",l.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate))},directives:[h.sg,h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),xn=(()=>{class c{constructor(i,l){this.nzTableStyleService=i,this.renderer=l,this.hostWidth$=new se.X(null),this.enableAutoMeasure$=new se.X(!1),this.destroy$=new M.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:i,hostWidth$:l}=this.nzTableStyleService;i.pipe((0,z.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),l.pipe((0,z.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,z.R)(this.destroy$)).subscribe(i=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${i}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt),e.Y36(e.Qsj))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(i,l){if(1&i&&e.Gf(Dt,7),2&i){let g;e.iGM(g=e.CRH())&&(l.tdElement=g.first)}},attrs:Zt,ngContentSelectors:Je,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(i,l){if(1&i&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,Wt,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Et,1,0,"ng-template",null,3,e.W1O)),2&i){const g=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,l.enableAutoMeasure$))("ngIfElse",g)}},directives:[h.O5,h.tP],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),Mn=(()=>{class c{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(i,l){1&i&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&i&&(e.xp6(1),e.Q6J("contentTemplate",l.contentTemplate)("tableLayout",l.tableLayout)("listOfColWidth",l.listOfColWidth)("theadTemplate",l.theadTemplate))},directives:[Tn],encapsulation:2,changeDetection:0}),c})(),Dn=(()=>{class c{constructor(i,l){this.nzResizeObserver=i,this.ngZone=l,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new M.xQ}trackByFunc(i,l){return l}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Ne.O)(this.listOfTdElement)).pipe((0,ye.w)(i=>(0,Oe.aj)(i.toArray().map(l=>this.nzResizeObserver.observe(l).pipe((0,De.U)(([g])=>{const{width:A}=g.target.getBoundingClientRect();return Math.floor(A)}))))),(0,Ve.b)(16),(0,z.R)(this.destroy$)).subscribe(i=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(i)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(D.D3),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(i,l){if(1&i&&e.Gf(Dt,5),2&i){let g;e.iGM(g=e.CRH())&&(l.listOfTdElement=g)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Ut,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(i,l){1&i&&e.YNc(0,Qt,2,0,"td",0),2&i&&e.Q6J("ngForOf",l.listOfMeasureColumn)("ngForTrackBy",l.trackByFunc)},directives:[h.sg],encapsulation:2,changeDetection:0}),c})(),yn=(()=>{class c{constructor(i){if(this.nzTableStyleService=i,this.isInsideTable=!1,this.showEmpty$=new se.X(!1),this.noResult$=new se.X(void 0),this.listOfMeasureColumn$=new se.X([]),this.destroy$=new M.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:l,noResult$:g,listOfMeasureColumn$:A}=this.nzTableStyleService;g.pipe((0,z.R)(this.destroy$)).subscribe(this.noResult$),A.pipe((0,z.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),l.pipe((0,z.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(i){this.nzTableStyleService.setListOfAutoWidth(i)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tbody"]],hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-tbody",l.isInsideTable)},ngContentSelectors:Je,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(i,l){1&i&&(e.F$t(),e.YNc(0,Nt,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Yt,3,3,"tr",1),e.ALo(4,"async")),2&i&&(e.Q6J("ngIf",e.lcZ(1,2,l.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,l.showEmpty$)))},directives:[Dn,xn,O.gB,h.O5],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),On=(()=>{class c{constructor(i,l,g,A){this.renderer=i,this.ngZone=l,this.platform=g,this.resizeService=A,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=G=>G,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new M.xQ,this.scroll$=new M.xQ,this.destroy$=new M.xQ}setScrollPositionClassName(i=!1){const{scrollWidth:l,scrollLeft:g,clientWidth:A}=this.tableBodyElement.nativeElement,G="ant-table-ping-left",de="ant-table-ping-right";l===A&&0!==l||i?(this.renderer.removeClass(this.tableMainElement,G),this.renderer.removeClass(this.tableMainElement,de)):0===g?(this.renderer.removeClass(this.tableMainElement,G),this.renderer.addClass(this.tableMainElement,de)):l===g+A?(this.renderer.removeClass(this.tableMainElement,de),this.renderer.addClass(this.tableMainElement,G)):(this.renderer.addClass(this.tableMainElement,G),this.renderer.addClass(this.tableMainElement,de))}ngOnChanges(i){const{scrollX:l,scrollY:g,data:A}=i;if(l||g){const G=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&G?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}A&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const i=this.scroll$.pipe((0,Ne.O)(null),(0,Ze.g)(0),(0,ye.w)(()=>(0,Ie.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Ne.O)(!0))),(0,z.R)(this.destroy$)),l=this.resizeService.subscribe().pipe((0,z.R)(this.destroy$)),g=this.data$.pipe((0,z.R)(this.destroy$));(0,we.T)(i,l,g,this.scroll$).pipe((0,Ne.O)(!0),(0,Ze.g)(0),(0,z.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),i.pipe((0,$e.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(n.t4),e.Y36(C.rI))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-scroll"]],viewQuery:function(i,l){if(1&i&&(e.Gf(Jt,5,e.SBq),e.Gf(jt,5,e.SBq),e.Gf(o.N7,5,o.N7)),2&i){let g;e.iGM(g=e.CRH())&&(l.tableHeaderElement=g.first),e.iGM(g=e.CRH())&&(l.tableBodyElement=g.first),e.iGM(g=e.CRH())&&(l.cdkVirtualScrollViewport=g.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(i,l){1&i&&(e.YNc(0,an,6,6,"ng-container",0),e.YNc(1,sn,3,5,"div",1)),2&i&&(e.Q6J("ngIf",l.scrollY),e.xp6(1),e.Q6J("ngIf",!l.scrollY))},directives:[Tn,o.N7,yn,h.O5,h.PC,o.xd,o.x0,h.tP],encapsulation:2,changeDetection:0}),c})(),En=(()=>{class c{constructor(i){this.templateRef=i}static ngTemplateContextGuard(i,l){return!0}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.Rgc))},c.\u0275dir=e.lG2({type:c,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),c})(),zn=(()=>{class c{constructor(){this.destroy$=new M.xQ,this.pageIndex$=new se.X(1),this.frontPagination$=new se.X(!0),this.pageSize$=new se.X(10),this.listOfData$=new se.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,Ye.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,Ye.x)()),this.listOfCalcOperator$=new se.X([]),this.queryParams$=(0,Oe.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,Ve.b)(0),(0,Xe.T)(1),(0,De.U)(([i,l,g])=>({pageIndex:i,pageSize:l,sort:g.filter(A=>A.sortFn).map(A=>({key:A.key,value:A.sortOrder})),filter:g.filter(A=>A.filterFn).map(A=>({key:A.key,value:A.filterValue}))}))),this.listOfDataAfterCalc$=(0,Oe.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,De.U)(([i,l])=>{let g=[...i];const A=l.filter(de=>{const{filterValue:he,filterFn:xe}=de;return!(null==he||Array.isArray(he)&&0===he.length)&&"function"==typeof xe});for(const de of A){const{filterFn:he,filterValue:xe}=de;g=g.filter(Be=>he(xe,Be))}const G=l.filter(de=>null!==de.sortOrder&&"function"==typeof de.sortFn).sort((de,he)=>+he.sortPriority-+de.sortPriority);return l.length&&g.sort((de,he)=>{for(const xe of G){const{sortFn:Be,sortOrder:ue}=xe;if(Be&&ue){const st=Be(de,he,ue);if(0!==st)return"ascend"===ue?st:-st}}return 0}),g})),this.listOfFrontEndCurrentPageData$=(0,Oe.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,z.R)(this.destroy$),(0,$e.h)(i=>{const[l,g,A]=i;return l<=(Math.ceil(A.length/g)||1)}),(0,De.U)(([i,l,g])=>g.slice((i-1)*l,i*l))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,ye.w)(i=>i?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,ye.w)(i=>i?this.listOfDataAfterCalc$:this.listOfData$),(0,De.U)(i=>i.length),(0,Ye.x)())}updatePageSize(i){this.pageSize$.next(i)}updateFrontPagination(i){this.frontPagination$.next(i)}updatePageIndex(i){this.pageIndex$.next(i)}updateListOfData(i){this.listOfData$.next(i)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Nn=(()=>{class c{constructor(){this.title=null,this.footer=null}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(i,l){2&i&&e.ekj("ant-table-title",null!==l.title)("ant-table-footer",null!==l.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(i,l){1&i&&(e.YNc(0,rn,2,1,"ng-container",0),e.YNc(1,ln,2,1,"ng-container",0)),2&i&&(e.Q6J("nzStringTemplateOutlet",l.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",l.footer))},directives:[R.f],encapsulation:2,changeDetection:0}),c})(),In=(()=>{class c{constructor(i,l,g,A,G,de,he){this.elementRef=i,this.nzResizeObserver=l,this.nzConfigService=g,this.cdr=A,this.nzTableStyleService=G,this.nzTableDataService=de,this.directionality=he,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=xe=>xe,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new M.xQ,this.templateMode$=new se.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(i){this.nzTableDataService.updatePageSize(i)}onPageIndexChange(i){this.nzTableDataService.updatePageIndex(i)}ngOnInit(){var i;const{pageIndexDistinct$:l,pageSizeDistinct$:g,listOfCurrentPageData$:A,total$:G,queryParams$:de}=this.nzTableDataService,{theadTemplate$:he,hasFixLeft$:xe,hasFixRight$:Be}=this.nzTableStyleService;this.dir=this.directionality.value,null===(i=this.directionality.change)||void 0===i||i.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.dir=ue,this.cdr.detectChanges()}),de.pipe((0,z.R)(this.destroy$)).subscribe(this.nzQueryParams),l.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{ue!==this.nzPageIndex&&(this.nzPageIndex=ue,this.nzPageIndexChange.next(ue))}),g.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{ue!==this.nzPageSize&&(this.nzPageSize=ue,this.nzPageSizeChange.next(ue))}),G.pipe((0,z.R)(this.destroy$),(0,$e.h)(()=>this.nzFrontPagination)).subscribe(ue=>{ue!==this.nzTotal&&(this.nzTotal=ue,this.cdr.markForCheck())}),A.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.data=ue,this.nzCurrentPageDataChange.next(ue),this.cdr.markForCheck()}),he.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.theadTemplate=ue,this.cdr.markForCheck()}),xe.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.hasFixLeft=ue,this.cdr.markForCheck()}),Be.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.hasFixRight=ue,this.cdr.markForCheck()}),(0,Oe.aj)([G,this.templateMode$]).pipe((0,De.U)(([ue,st])=>0===ue&&!st),(0,z.R)(this.destroy$)).subscribe(ue=>{this.nzTableStyleService.setShowEmpty(ue)}),this.verticalScrollBarWidth=(0,f.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.listOfAutoColWidth=ue,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,z.R)(this.destroy$)).subscribe(ue=>{this.listOfManualColWidth=ue,this.cdr.markForCheck()})}ngOnChanges(i){const{nzScroll:l,nzPageIndex:g,nzPageSize:A,nzFrontPagination:G,nzData:de,nzWidthConfig:he,nzNoResult:xe,nzTemplateMode:Be}=i;g&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),A&&this.nzTableDataService.updatePageSize(this.nzPageSize),de&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),G&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),l&&this.setScrollOnChanges(),he&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),Be&&this.templateMode$.next(this.nzTemplateMode),xe&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,De.U)(([i])=>{const{width:l}=i.target.getBoundingClientRect();return Math.floor(l-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,z.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(D.D3),e.Y36(v.jY),e.Y36(e.sBO),e.Y36(gt),e.Y36(zn),e.Y36(t.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table"]],contentQueries:function(i,l,g){if(1&i&&e.Suo(g,En,5),2&i){let A;e.iGM(A=e.CRH())&&(l.nzVirtualScrollDirective=A.first)}},viewQuery:function(i,l){if(1&i&&e.Gf(On,5),2&i){let g;e.iGM(g=e.CRH())&&(l.nzTableInnerScrollComponent=g.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-wrapper-rtl","rtl"===l.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([gt,zn]),e.TTD],ngContentSelectors:Je,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(i,l){if(1&i&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,dn,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,pn,1,1,"nz-table-title-footer",4),e.YNc(5,hn,1,13,"nz-table-inner-scroll",5),e.YNc(6,Ae,1,4,"ng-template",null,6,e.W1O),e.YNc(8,It,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,fn,2,1,"ng-container",1),e.qZA(),e.YNc(10,mn,1,1,"ng-template",null,8,e.W1O),e.YNc(12,_n,1,0,"ng-template",null,9,e.W1O)),2&i){const g=e.MAs(7);e.Q6J("nzDelay",l.nzLoadingDelay)("nzSpinning",l.nzLoading)("nzIndicator",l.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"top"===l.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===l.dir)("ant-table-fixed-header",l.nzData.length&&l.scrollY)("ant-table-fixed-column",l.scrollX)("ant-table-has-fix-left",l.hasFixLeft)("ant-table-has-fix-right",l.hasFixRight)("ant-table-bordered",l.nzBordered)("nz-table-out-bordered",l.nzOuterBordered&&!l.nzBordered)("ant-table-middle","middle"===l.nzSize)("ant-table-small","small"===l.nzSize),e.xp6(2),e.Q6J("ngIf",l.nzTitle),e.xp6(1),e.Q6J("ngIf",l.scrollY||l.scrollX)("ngIfElse",g),e.xp6(3),e.Q6J("ngIf",l.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"bottom"===l.nzPaginationPosition)}},directives:[ge.W,Nn,On,Mn,H,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,f.yF)()],c.prototype,"nzFrontPagination",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzTemplateMode",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzShowPagination",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzLoading",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzOuterBordered",void 0),(0,F.gn)([(0,v.oS)()],c.prototype,"nzLoadingIndicator",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzBordered",void 0),(0,F.gn)([(0,v.oS)()],c.prototype,"nzSize",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,F.gn)([(0,v.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),c})(),Sn=(()=>{class c{constructor(i){this.nzTableStyleService=i,this.destroy$=new M.xQ,this.listOfFixedColumns$=new N.t(1),this.listOfColumns$=new N.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,ye.w)(l=>(0,we.T)(this.listOfFixedColumns$,...l.map(g=>g.changes$)).pipe((0,Ke.zg)(()=>this.listOfFixedColumns$))),(0,z.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,De.U)(l=>l.filter(g=>!1!==g.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,De.U)(l=>l.filter(g=>!1!==g.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,ye.w)(l=>(0,we.T)(this.listOfColumns$,...l.map(g=>g.changes$)).pipe((0,Ke.zg)(()=>this.listOfColumns$))),(0,z.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!i}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Ne.O)(this.listOfCellFixedDirective),(0,z.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Ne.O)(this.listOfNzThDirective),(0,z.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(i=>{i.forEach(l=>l.setIsLastLeft(l===i[i.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(i=>{i.forEach(l=>l.setIsFirstRight(l===i[0]))}),(0,Oe.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,z.R)(this.destroy$)).subscribe(([i,l])=>{l.forEach((g,A)=>{if(g.isAutoLeft){const de=l.slice(0,A).reduce((xe,Be)=>xe+(Be.colspan||Be.colSpan||1),0),he=i.slice(0,de).reduce((xe,Be)=>xe+Be,0);g.setAutoLeftWidth(`${he}px`)}})}),(0,Oe.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,z.R)(this.destroy$)).subscribe(([i,l])=>{l.forEach((g,A)=>{const G=l[l.length-A-1];if(G.isAutoRight){const he=l.slice(l.length-A,l.length).reduce((Be,ue)=>Be+(ue.colspan||ue.colSpan||1),0),xe=i.slice(i.length-he,i.length).reduce((Be,ue)=>Be+ue,0);G.setAutoRightWidth(`${xe}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(gt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(i,l,g){if(1&i&&(e.Suo(g,dt,4),e.Suo(g,vt,4)),2&i){let A;e.iGM(A=e.CRH())&&(l.listOfNzThDirective=A),e.iGM(A=e.CRH())&&(l.listOfCellFixedDirective=A)}},hostVars:2,hostBindings:function(i,l){2&i&&e.ekj("ant-table-row",l.isInsideTable)}}),c})(),wn=(()=>{class c{constructor(i,l,g,A){this.elementRef=i,this.renderer=l,this.nzTableStyleService=g,this.nzTableDataService=A,this.destroy$=new M.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const i=this.listOfNzTrDirective.changes.pipe((0,Ne.O)(this.listOfNzTrDirective),(0,De.U)(G=>G&&G.first)),l=i.pipe((0,ye.w)(G=>G?G.listOfColumnsChanges$:Fe.E),(0,z.R)(this.destroy$));l.subscribe(G=>this.nzTableStyleService.setListOfTh(G)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,ye.w)(G=>G?l:(0,Re.of)([]))).pipe((0,z.R)(this.destroy$)).subscribe(G=>this.nzTableStyleService.setListOfMeasureColumn(G));const g=i.pipe((0,ye.w)(G=>G?G.listOfFixedLeftColumnChanges$:Fe.E),(0,z.R)(this.destroy$)),A=i.pipe((0,ye.w)(G=>G?G.listOfFixedRightColumnChanges$:Fe.E),(0,z.R)(this.destroy$));g.subscribe(G=>{this.nzTableStyleService.setHasFixLeft(0!==G.length)}),A.subscribe(G=>{this.nzTableStyleService.setHasFixRight(0!==G.length)})}if(this.nzTableDataService){const i=this.listOfNzThAddOnComponent.changes.pipe((0,Ne.O)(this.listOfNzThAddOnComponent));i.pipe((0,ye.w)(()=>(0,we.T)(...this.listOfNzThAddOnComponent.map(A=>A.manualClickOrder$))),(0,z.R)(this.destroy$)).subscribe(A=>{this.nzSortOrderChange.emit({key:A.nzColumnKey,value:A.sortOrder}),A.nzSortFn&&!1===A.nzSortPriority&&this.listOfNzThAddOnComponent.filter(de=>de!==A).forEach(de=>de.clearSortOrder())}),i.pipe((0,ye.w)(A=>(0,we.T)(i,...A.map(G=>G.calcOperatorChange$)).pipe((0,Ke.zg)(()=>i))),(0,De.U)(A=>A.filter(G=>!!G.nzSortFn||!!G.nzFilterFn).map(G=>{const{nzSortFn:de,sortOrder:he,nzFilterFn:xe,nzFilterValue:Be,nzSortPriority:ue,nzColumnKey:st}=G;return{key:st,sortFn:de,sortPriority:ue,sortOrder:he,filterFn:xe,filterValue:Be}})),(0,Ze.g)(0),(0,z.R)(this.destroy$)).subscribe(A=>{this.nzTableDataService.listOfCalcOperator$.next(A)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(gt,8),e.Y36(zn,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(i,l,g){if(1&i&&(e.Suo(g,Sn,5),e.Suo(g,Ht,5)),2&i){let A;e.iGM(A=e.CRH())&&(l.listOfNzTrDirective=A),e.iGM(A=e.CRH())&&(l.listOfNzThAddOnComponent=A)}},viewQuery:function(i,l){if(1&i&&e.Gf(W,7),2&i){let g;e.iGM(g=e.CRH())&&(l.templateRef=g.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Je,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(i,l){1&i&&(e.F$t(),e.YNc(0,ce,1,0,"ng-template",null,0,e.W1O),e.YNc(2,We,2,1,"ng-container",1)),2&i&&(e.xp6(2),e.Q6J("ngIf",!l.isInsideTable))},directives:[h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),An=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[t.vT,T.ip,y.u5,R.T,fe.aF,P.Wr,S.b1,b.sL,h.ez,n.ud,q,D.y7,ge.j,m.YI,E.PV,O.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/index.html b/src/blrec/data/webapp/index.html index 3e53092..70e1a5d 100644 --- a/src/blrec/data/webapp/index.html +++ b/src/blrec/data/webapp/index.html @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/src/blrec/data/webapp/main.27d1fff16f7909f2.js b/src/blrec/data/webapp/main.27d1fff16f7909f2.js deleted file mode 100644 index 545715b..0000000 --- a/src/blrec/data/webapp/main.27d1fff16f7909f2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[179],{4704:(yt,be,p)=>{p.d(be,{g:()=>a});var a=(()=>{return(s=a||(a={})).KEEP_POSITION="KEEP_POSITION",s.GO_TO_TOP="GO_TO_TOP",a;var s})()},2323:(yt,be,p)=>{p.d(be,{V:()=>s});var a=p(5e3);let s=(()=>{class G{constructor(){this.impl=localStorage}hasData(q){return null!==this.getData(q)}getData(q){return this.impl.getItem(q)}setData(q,_){this.impl.setItem(q,_)}removeData(q){this.impl.removeItem(q)}clearData(){this.impl.clear()}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})()},2340:(yt,be,p)=>{p.d(be,{N:()=>s});const s={production:!0,apiUrl:"",webSocketUrl:"",ngxLoggerLevel:p(2306)._z.DEBUG,traceRouterScrolling:!1}},434:(yt,be,p)=>{var a=p(2313),s=p(5e3),G=p(4182),oe=p(520),q=p(5113),_=p(6360),W=p(9808);const I=void 0,H=["zh",[["\u4e0a\u5348","\u4e0b\u5348"],I,I],I,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"]],I,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]],I,[["\u516c\u5143\u524d","\u516c\u5143"],I,I],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",I,"y\u5e74M\u6708d\u65e5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",I,I,I],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"CNY","\xa5","\u4eba\u6c11\u5e01",{AUD:["AU$","$"],CNY:["\xa5"],ILR:["ILS"],JPY:["JP\xa5","\xa5"],KRW:["\uffe6","\u20a9"],PHP:[I,"\u20b1"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function R(Te){return 5}];var B=p(8514),ee=p(1737),ye=p(3753),Ye=p(1086),Fe=p(1961),ze=p(8929),_e=p(6498),vt=p(7876);const Je=new _e.y(vt.Z);var ut=p(6787),Ie=p(4850),$e=p(2198),et=p(7545),Se=p(2536),J=p(2986),fe=p(2994),he=p(8583);const te="Service workers are disabled or not supported by this browser";class ie{constructor(Ze){if(this.serviceWorker=Ze,Ze){const rt=(0,ye.R)(Ze,"controllerchange").pipe((0,Ie.U)(()=>Ze.controller)),Wt=(0,B.P)(()=>(0,Ye.of)(Ze.controller)),on=(0,Fe.z)(Wt,rt);this.worker=on.pipe((0,$e.h)(Rn=>!!Rn)),this.registration=this.worker.pipe((0,et.w)(()=>Ze.getRegistration()));const Nn=(0,ye.R)(Ze,"message").pipe((0,Ie.U)(Rn=>Rn.data)).pipe((0,$e.h)(Rn=>Rn&&Rn.type)).pipe(function Xe(Te){return Te?(0,Se.O)(()=>new ze.xQ,Te):(0,Se.O)(new ze.xQ)}());Nn.connect(),this.events=Nn}else this.worker=this.events=this.registration=function le(Te){return(0,B.P)(()=>(0,ee._)(new Error(Te)))}(te)}postMessage(Ze,De){return this.worker.pipe((0,J.q)(1),(0,fe.b)(rt=>{rt.postMessage(Object.assign({action:Ze},De))})).toPromise().then(()=>{})}postMessageWithOperation(Ze,De,rt){const Wt=this.waitForOperationCompleted(rt),on=this.postMessage(Ze,De);return Promise.all([on,Wt]).then(([,Lt])=>Lt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ze){let De;return De="string"==typeof Ze?rt=>rt.type===Ze:rt=>Ze.includes(rt.type),this.events.pipe((0,$e.h)(De))}nextEventOfType(Ze){return this.eventsOfType(Ze).pipe((0,J.q)(1))}waitForOperationCompleted(Ze){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,$e.h)(De=>De.nonce===Ze),(0,J.q)(1),(0,Ie.U)(De=>{if(void 0!==De.result)return De.result;throw new Error(De.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ue=(()=>{class Te{constructor(De){if(this.sw=De,this.subscriptionChanges=new ze.xQ,!De.isEnabled)return this.messages=Je,this.notificationClicks=Je,void(this.subscription=Je);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Ie.U)(Wt=>Wt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Ie.U)(Wt=>Wt.data)),this.pushManager=this.sw.registration.pipe((0,Ie.U)(Wt=>Wt.pushManager));const rt=this.pushManager.pipe((0,et.w)(Wt=>Wt.getSubscription()));this.subscription=(0,ut.T)(rt,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(De){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const rt={userVisibleOnly:!0};let Wt=this.decodeBase64(De.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),on=new Uint8Array(new ArrayBuffer(Wt.length));for(let Lt=0;LtLt.subscribe(rt)),(0,J.q)(1)).toPromise().then(Lt=>(this.subscriptionChanges.next(Lt),Lt))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,J.q)(1),(0,et.w)(rt=>{if(null===rt)throw new Error("Not subscribed to push notifications.");return rt.unsubscribe().then(Wt=>{if(!Wt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(te))}decodeBase64(De){return atob(De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),je=(()=>{class Te{constructor(De){if(this.sw=De,!De.isEnabled)return this.versionUpdates=Je,this.available=Je,this.activated=Je,void(this.unrecoverable=Je);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,$e.h)(rt=>"VERSION_READY"===rt.type),(0,Ie.U)(rt=>({type:"UPDATE_AVAILABLE",current:rt.currentVersion,available:rt.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:De},De)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:De},De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class tt{}const ke=new s.OlP("NGSW_REGISTER_SCRIPT");function ve(Te,Ze,De,rt){return()=>{if(!(0,W.NF)(rt)||!("serviceWorker"in navigator)||!1===De.enabled)return;let on;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof De.registrationStrategy)on=De.registrationStrategy();else{const[Un,...$n]=(De.registrationStrategy||"registerWhenStable:30000").split(":");switch(Un){case"registerImmediately":on=(0,Ye.of)(null);break;case"registerWithDelay":on=mt(+$n[0]||0);break;case"registerWhenStable":on=$n[0]?(0,ut.T)(Qe(Te),mt(+$n[0])):Qe(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${De.registrationStrategy}`)}}Te.get(s.R0b).runOutsideAngular(()=>on.pipe((0,J.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ze,{scope:De.scope}).catch(Un=>console.error("Service worker registration failed with:",Un))))}}function mt(Te){return(0,Ye.of)(null).pipe((0,he.g)(Te))}function Qe(Te){return Te.get(s.z2F).isStable.pipe((0,$e.h)(De=>De))}function dt(Te,Ze){return new ie((0,W.NF)(Ze)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Te{static register(De,rt={}){return{ngModule:Te,providers:[{provide:ke,useValue:De},{provide:tt,useValue:rt},{provide:ie,useFactory:dt,deps:[tt,s.Lbi]},{provide:s.ip1,useFactory:ve,deps:[s.zs3,ke,tt,s.Lbi],multi:!0}]}}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[Ue,je]}),Te})();var it=p(2306),St=p(4170),ot=p(7625),Et=p(655),Zt=p(4090),mn=p(1721),vn=p(4219),Ut=p(925),un=p(647),_n=p(226);const Cn=["*"],Dt=["nz-sider-trigger",""];function Sn(Te,Ze){}function cn(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Sn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzZeroTrigger||rt)}}function Mn(Te,Ze){}function qe(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Mn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(3);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzTrigger||rt)}}function x(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"right":"left")}}function z(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"left":"right")}}function P(Te,Ze){if(1&Te&&(s.YNc(0,x,1,1,"i",4),s.YNc(1,z,1,1,"i",4)),2&Te){const De=s.oxw();s.Q6J("ngIf",!De.nzReverseArrow),s.xp6(1),s.Q6J("ngIf",De.nzReverseArrow)}}function pe(Te,Ze){1&Te&&s._UZ(0,"i",6)}function j(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){s.CHM(De);const Wt=s.oxw();return Wt.setCollapsed(!Wt.nzCollapsed)}),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("matchBreakPoint",De.matchBreakPoint)("nzCollapsedWidth",De.nzCollapsedWidth)("nzCollapsed",De.nzCollapsed)("nzBreakpoint",De.nzBreakpoint)("nzReverseArrow",De.nzReverseArrow)("nzTrigger",De.nzTrigger)("nzZeroTrigger",De.nzZeroTrigger)("siderWidth",De.widthSetting)}}let me=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ge=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Le=(()=>{class Te{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(De,rt){2&De&&(s.Udp("width",rt.isNormalTrigger?rt.siderWidth:null),s.ekj("ant-layout-sider-trigger",rt.isNormalTrigger)("ant-layout-sider-zero-width-trigger",rt.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",rt.isZeroTrigger&&rt.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",rt.isZeroTrigger&&!rt.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[s.TTD],attrs:Dt,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(De,rt){1&De&&(s.YNc(0,cn,2,1,"ng-container",0),s.YNc(1,qe,2,1,"ng-container",0),s.YNc(2,P,2,2,"ng-template",null,1,s.W1O),s.YNc(4,pe,1,0,"ng-template",null,2,s.W1O)),2&De&&(s.Q6J("ngIf",rt.isZeroTrigger),s.xp6(1),s.Q6J("ngIf",rt.isNormalTrigger))},directives:[W.O5,W.tP,un.Ls],encapsulation:2,changeDetection:0}),Te})(),Me=(()=>{class Te{constructor(De,rt,Wt){this.platform=De,this.cdr=rt,this.breakpointService=Wt,this.destroy$=new ze.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new s.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,mn.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(De){De!==this.nzCollapsed&&(this.nzCollapsed=De,this.nzCollapsedChange.emit(De),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Zt.ow,!0).pipe((0,ot.R)(this.destroy$)).subscribe(De=>{const rt=this.nzBreakpoint;rt&&(0,mn.ov)().subscribe(()=>{this.matchBreakPoint=!De[rt],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(De){const{nzCollapsed:rt,nzCollapsedWidth:Wt,nzWidth:on}=De;(rt||Wt||on)&&this.updateStyleMap(),rt&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(Ut.t4),s.Y36(s.sBO),s.Y36(Zt.r3))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-sider"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,vn.wO,5),2&De){let on;s.iGM(on=s.CRH())&&(rt.nzMenuDirective=on.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(De,rt){2&De&&(s.Udp("flex",rt.flexSetting)("max-width",rt.widthSetting)("min-width",rt.widthSetting)("width",rt.widthSetting),s.ekj("ant-layout-sider-zero-width",rt.nzCollapsed&&0===rt.nzCollapsedWidth)("ant-layout-sider-light","light"===rt.nzTheme)("ant-layout-sider-dark","dark"===rt.nzTheme)("ant-layout-sider-collapsed",rt.nzCollapsed)("ant-layout-sider-has-trigger",rt.nzCollapsible&&null!==rt.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[s.TTD],ngContentSelectors:Cn,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(De,rt){1&De&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA(),s.YNc(2,j,1,8,"div",1)),2&De&&(s.xp6(2),s.Q6J("ngIf",rt.nzCollapsible&&null!==rt.nzTrigger))},directives:[Le,W.O5],encapsulation:2,changeDetection:0}),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzReverseArrow",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsible",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsed",void 0),Te})(),V=(()=>{class Te{constructor(De){this.directionality=De,this.dir="ltr",this.destroy$=new ze.xQ}ngOnInit(){var De;this.dir=this.directionality.value,null===(De=this.directionality.change)||void 0===De||De.pipe((0,ot.R)(this.destroy$)).subscribe(rt=>{this.dir=rt})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(_n.Is,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-layout"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,Me,4),2&De){let on;s.iGM(on=s.CRH())&&(rt.listOfNzSiderComponent=on)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(De,rt){2&De&&s.ekj("ant-layout-rtl","rtl"===rt.dir)("ant-layout-has-sider",rt.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Be=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,un.PV,q.xu,Ut.ud]]}),Te})();var nt=p(4147),ce=p(404);let Ae=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,Ut.ud,un.PV]]}),Te})();var wt=p(7525),At=p(9727),Qt=p(5278),gn=p(2302);let Vn=(()=>{class Te{constructor(){}ngOnInit(){}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-page-not-found"]],decls:5,vars:0,consts:[[1,"content"],["src","assets/images/bili-404.png","all","\u80a5\u80a0\u62b1\u6b49\uff0c\u4f60\u8981\u627e\u7684\u9875\u9762\u4e0d\u89c1\u4e86"],[1,"btn-wrapper"],["href","/",1,"goback-btn"]],template:function(De,rt){1&De&&(s.TgZ(0,"div",0),s._UZ(1,"img",1),s.TgZ(2,"div",2),s.TgZ(3,"a",3),s._uU(4,"\u8fd4\u56de\u9996\u9875"),s.qZA(),s.qZA(),s.qZA())},styles:[".content[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:980px}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]{display:inline-block;padding:0 20px;border-radius:4px;font-size:16px;line-height:40px;text-align:center;vertical-align:middle;color:#fff;background:#00a1d6;transition:.3s;cursor:pointer}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]:hover{background:#00b5e5}"],changeDetection:0}),Te})();const ri=[{path:"tasks",loadChildren:()=>Promise.all([p.e(146),p.e(91),p.e(183)]).then(p.bind(p,3183)).then(Te=>Te.TasksModule)},{path:"settings",loadChildren:()=>Promise.all([p.e(146),p.e(91),p.e(592),p.e(170)]).then(p.bind(p,9170)).then(Te=>Te.SettingsModule),data:{scrollBehavior:p(4704).g.KEEP_POSITION}},{path:"about",loadChildren:()=>Promise.all([p.e(146),p.e(592),p.e(103)]).then(p.bind(p,5103)).then(Te=>Te.AboutModule)},{path:"",pathMatch:"full",redirectTo:"/tasks"},{path:"**",component:Vn}];let jn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[gn.Bz.forRoot(ri,{preloadingStrategy:gn.wm})],gn.Bz]}),Te})();function qt(Te,Ze){if(1&Te&&s.GkF(0,11),2&Te){s.oxw();const De=s.MAs(3);s.Q6J("ngTemplateOutlet",De)}}function Re(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-sider",12),s.NdJ("nzCollapsedChange",function(Wt){return s.CHM(De),s.oxw().collapsed=Wt}),s.TgZ(1,"a",13),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s._UZ(4,"img",16),s.qZA(),s.TgZ(5,"h1",17),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s.TgZ(7,"nav",18),s.TgZ(8,"ul",19),s.TgZ(9,"li",20),s._UZ(10,"i",21),s.TgZ(11,"span"),s.TgZ(12,"a",22),s._uU(13,"\u4efb\u52a1"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(14,"li",20),s._UZ(15,"i",23),s.TgZ(16,"span"),s.TgZ(17,"a",24),s._uU(18,"\u8bbe\u7f6e"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(19,"li",20),s._UZ(20,"i",25),s.TgZ(21,"span"),s.TgZ(22,"a",26),s._uU(23,"\u5173\u4e8e"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzTheme",De.theme)("nzTrigger",null)("nzCollapsedWidth",57)("nzCollapsed",De.collapsed),s.xp6(2),s.ekj("collapsed",De.collapsed),s.xp6(4),s.Oqu(De.title),s.xp6(2),s.Q6J("nzTheme",De.theme)("nzInlineCollapsed",De.collapsed),s.xp6(1),s.Q6J("nzTooltipTitle",De.collapsed?"\u4efb\u52a1":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u8bbe\u7f6e":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u5173\u4e8e":"")}}function we(Te,Ze){if(1&Te&&s._UZ(0,"nz-spin",27),2&Te){const De=s.oxw();s.Q6J("nzSize","large")("nzSpinning",De.loading)}}function ae(Te,Ze){if(1&Te&&(s.ynx(0),s.TgZ(1,"nz-layout"),s.GkF(2,11),s.qZA(),s.BQk()),2&Te){s.oxw(2);const De=s.MAs(3);s.xp6(2),s.Q6J("ngTemplateOutlet",De)}}const Ve=function(){return{padding:"0",overflow:"hidden"}};function ht(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-drawer",28),s.NdJ("nzOnClose",function(){return s.CHM(De),s.oxw().collapsed=!0}),s.YNc(1,ae,3,1,"ng-container",29),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzBodyStyle",s.DdM(3,Ve))("nzClosable",!1)("nzVisible",!De.collapsed)}}let It=(()=>{class Te{constructor(De,rt,Wt){this.title="B \u7ad9\u76f4\u64ad\u5f55\u5236",this.theme="light",this.loading=!1,this.collapsed=!1,this.useDrawer=!1,this.destroyed=new ze.xQ,De.events.subscribe(on=>{on instanceof gn.OD?(this.loading=!0,this.useDrawer&&(this.collapsed=!0)):on instanceof gn.m2&&(this.loading=!1)}),Wt.observe(q.u3.XSmall).pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.useDrawer=on.matches,this.useDrawer&&(this.collapsed=!0),rt.markForCheck()}),Wt.observe("(max-width: 1036px)").pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.collapsed=on.matches,rt.markForCheck()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(gn.F0),s.Y36(s.sBO),s.Y36(q.Yg))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-root"]],decls:15,vars:4,consts:[[3,"ngTemplateOutlet",4,"ngIf"],["sider",""],[1,"app-header"],[1,"sidebar-trigger"],["nz-icon","",3,"nzType","click"],[1,"icon-actions"],["href","https://github.com/acgnhiki/blrec","title","GitHub","target","_blank",1,"external-link"],["nz-icon","","nzType","github"],[1,"main-content"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose",4,"ngIf"],[3,"ngTemplateOutlet"],["nzCollapsible","",1,"sidebar",3,"nzTheme","nzTrigger","nzCollapsedWidth","nzCollapsed","nzCollapsedChange"],["href","/","title","Home","alt","Home"],[1,"sidebar-header"],[1,"app-logo-container"],["alt","Logo","src","assets/images/logo.png",1,"app-logo"],[1,"app-title"],[1,"sidebar-menu"],["nz-menu","","nzMode","inline",3,"nzTheme","nzInlineCollapsed"],["nz-menu-item","","nzMatchRouter","true","nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipTitle"],["nz-icon","","nzType","unordered-list","nzTheme","outline"],["routerLink","/tasks"],["nz-icon","","nzType","setting","nzTheme","outline"],["routerLink","/settings"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["routerLink","/about"],[1,"spinner",3,"nzSize","nzSpinning"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose"],[4,"nzDrawerContent"]],template:function(De,rt){1&De&&(s.TgZ(0,"nz-layout"),s.YNc(1,qt,1,1,"ng-container",0),s.YNc(2,Re,24,12,"ng-template",null,1,s.W1O),s.TgZ(4,"nz-layout"),s.TgZ(5,"nz-header",2),s.TgZ(6,"div",3),s.TgZ(7,"i",4),s.NdJ("click",function(){return rt.collapsed=!rt.collapsed}),s.qZA(),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"a",6),s._UZ(10,"i",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"nz-content",8),s.YNc(12,we,1,2,"nz-spin",9),s._UZ(13,"router-outlet"),s.qZA(),s.qZA(),s.qZA(),s.YNc(14,ht,2,4,"nz-drawer",10)),2&De&&(s.xp6(1),s.Q6J("ngIf",!rt.useDrawer),s.xp6(6),s.Q6J("nzType",rt.collapsed?"menu-unfold":"menu-fold"),s.xp6(5),s.Q6J("ngIf",rt.loading),s.xp6(2),s.Q6J("ngIf",rt.useDrawer))},directives:[V,W.O5,W.tP,Me,vn.wO,vn.r9,ce.SY,un.Ls,gn.yS,Ge,me,wt.W,gn.lC,nt.Vz,nt.SQ],styles:[".spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] > nz-layout[_ngcontent-%COMP%]{height:100%;width:100%}.sidebar[_ngcontent-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;position:relative;z-index:10;min-height:100vh;border-right:1px solid #f0f0f0}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:var(--app-header-height);overflow:hidden}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%]{flex:none;width:var(--app-header-height);height:var(--app-header-height);display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:var(--app-logo-size);height:var(--app-logo-size)}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:1rem;font-weight:600;margin:0;overflow:hidden;white-space:nowrap;text-overflow:clip;opacity:1;transition-property:width,opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.645,.045,.355,1)}.sidebar[_ngcontent-%COMP%] .sidebar-header.collapsed[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{opacity:0}.sidebar[_ngcontent-%COMP%] .sidebar-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%}.app-header[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;width:100%;height:var(--app-header-height);margin:0;padding:0;z-index:2;background:#fff;box-shadow:0 1px 4px #00152914}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]{--icon-size: 20px;display:flex;align-items:center;justify-content:center;height:100%;width:var(--app-header-height);cursor:pointer;transition:all .3s,padding 0s}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]:hover{color:#1890ff}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%]{--icon-size: 24px;display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:calc((var(--app-header-height) - var(--icon-size)) / 2)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#000}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.main-content[_ngcontent-%COMP%]{overflow:hidden}"],changeDetection:0}),Te})(),jt=(()=>{class Te{constructor(De){if(De)throw new Error("You should import core module only in the root module")}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Te,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[W.ez]]}),Te})();var fn=p(9193);const Pn=[fn.LBP,fn._ry,fn.Ej7,fn.WH2];let si=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[{provide:un.sV,useValue:Pn}],imports:[[un.PV],un.PV]}),Te})();var Zn=p(2340),ii=p(7221),En=p(9973),ei=p(2323);const Ln="app-api-key";let Tt=(()=>{class Te{constructor(De){this.storage=De}hasApiKey(){return this.storage.hasData(Ln)}getApiKey(){var De;return null!==(De=this.storage.getData(Ln))&&void 0!==De?De:""}setApiKey(De){this.storage.setData(Ln,De)}removeApiKey(){this.storage.removeData(Ln)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ei.V))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const bn=[{provide:oe.TP,useClass:(()=>{class Te{constructor(De){this.auth=De}intercept(De,rt){return rt.handle(De.clone({setHeaders:{"X-API-KEY":this.auth.getApiKey()}})).pipe((0,ii.K)(Wt=>{var on;if(401===Wt.status){this.auth.hasApiKey()&&this.auth.removeApiKey();const Lt=null!==(on=window.prompt("API Key:"))&&void 0!==on?on:"";this.auth.setApiKey(Lt)}throw Wt}),(0,En.X)(3))}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Tt))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),multi:!0}];(0,W.qS)(H);let Qn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te,bootstrap:[It]}),Te.\u0275inj=s.cJS({providers:[{provide:St.u7,useValue:St.bF},bn],imports:[[a.b2,jn,G.u5,oe.JF,q.xu,_.PW,_t.register("ngsw-worker.js",{enabled:Zn.N.production,registrationStrategy:"registerWhenStable:30000"}),Be,nt.BL,vn.ip,ce.cg,Ae,wt.j,At.gR,Qt.L8,si,it.f9.forRoot({level:Zn.N.ngxLoggerLevel}),jt]]}),Te})();Zn.N.production&&(0,s.G48)(),a.q6().bootstrapModule(Qn).catch(Te=>console.error(Te))},2306:(yt,be,p)=>{p.d(be,{f9:()=>_e,Kf:()=>Xe,_z:()=>Je});var a=p(9808),s=p(5e3),G=p(520),oe=p(2198),q=p(4850),_=p(9973),W=p(5154),I=p(7221),R=p(7545),H={},B={};function ee(te){for(var le=[],ie=0,Ue=0,je=0;je>>=1,le.push(ve?0===Ue?-2147483648:-Ue:Ue),Ue=ie=0}}return le}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(te,le){H[te]=le,B[le]=te});var Fe=p(1086);class ze{}let _e=(()=>{class te{static forRoot(ie){return{ngModule:te,providers:[{provide:ze,useValue:ie||{}}]}}static forChild(){return{ngModule:te}}}return te.\u0275fac=function(ie){return new(ie||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[a.uU],imports:[[a.ez]]}),te})(),vt=(()=>{class te{constructor(ie){this.httpBackend=ie}logOnServer(ie,Ue,je){const tt=new G.aW("POST",ie,Ue,je||{});return this.httpBackend.handle(tt).pipe((0,oe.h)(ke=>ke instanceof G.Zn),(0,q.U)(ke=>ke.body))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();var Je=(()=>{return(te=Je||(Je={}))[te.TRACE=0]="TRACE",te[te.DEBUG=1]="DEBUG",te[te.INFO=2]="INFO",te[te.LOG=3]="LOG",te[te.WARN=4]="WARN",te[te.ERROR=5]="ERROR",te[te.FATAL=6]="FATAL",te[te.OFF=7]="OFF",Je;var te})();class zt{constructor(le){this.config=le,this._config=le}get level(){return this._config.level}get serverLogLevel(){return this._config.serverLogLevel}updateConfig(le){this._config=this._clone(le)}getConfig(){return this._clone(this._config)}_clone(le){const ie=new ze;return Object.keys(le).forEach(Ue=>{ie[Ue]=le[Ue]}),ie}}const ut=["purple","teal","gray","gray","red","red","red"];class Ie{static prepareMetaString(le,ie,Ue,je){return`${le} ${ie}${Ue?` [${Ue}:${je}]`:""}`}static getColor(le,ie){switch(le){case Je.TRACE:return this.getColorFromConfig(Je.TRACE,ie);case Je.DEBUG:return this.getColorFromConfig(Je.DEBUG,ie);case Je.INFO:return this.getColorFromConfig(Je.INFO,ie);case Je.LOG:return this.getColorFromConfig(Je.LOG,ie);case Je.WARN:return this.getColorFromConfig(Je.WARN,ie);case Je.ERROR:return this.getColorFromConfig(Je.ERROR,ie);case Je.FATAL:return this.getColorFromConfig(Je.FATAL,ie);default:return}}static getColorFromConfig(le,ie){return ie?ie[le]:ut[le]}static prepareMessage(le){try{"string"!=typeof le&&!(le instanceof Error)&&(le=JSON.stringify(le,null,2))}catch(ie){le='The provided "message" value could not be parsed with JSON.stringify().'}return le}static prepareAdditionalParameters(le){return null==le?null:le.map((ie,Ue)=>{try{return"object"==typeof ie&&JSON.stringify(ie),ie}catch(je){return`The additional[${Ue}] value could not be parsed using JSON.stringify().`}})}}class $e{constructor(le,ie,Ue){this.fileName=le,this.lineNumber=ie,this.columnNumber=Ue}toString(){return this.fileName+":"+this.lineNumber+":"+this.columnNumber}}let et=(()=>{class te{constructor(ie){this.httpBackend=ie,this.sourceMapCache=new Map,this.logPositionCache=new Map}static getStackLine(ie){const Ue=new Error;try{throw Ue}catch(je){try{let tt=4;return Ue.stack.split("\n")[0].includes(".js:")||(tt+=1),Ue.stack.split("\n")[tt+(ie||0)]}catch(tt){return null}}}static getPosition(ie){const Ue=ie.lastIndexOf("/");let je=ie.indexOf(")");je<0&&(je=void 0);const ke=ie.substring(Ue+1,je).split(":");return 3===ke.length?new $e(ke[0],+ke[1],+ke[2]):new $e("unknown",0,0)}static getTranspileLocation(ie){let Ue=ie.indexOf("(");Ue<0&&(Ue=ie.lastIndexOf("@"),Ue<0&&(Ue=ie.lastIndexOf(" ")));let je=ie.indexOf(")");return je<0&&(je=void 0),ie.substring(Ue+1,je)}static getMapFilePath(ie){const Ue=te.getTranspileLocation(ie),je=Ue.substring(0,Ue.lastIndexOf(":"));return je.substring(0,je.lastIndexOf(":"))+".map"}static getMapping(ie,Ue){let je=0,tt=0,ke=0;const ve=ie.mappings.split(";");for(let mt=0;mt=4&&(Qe+=it[0],je+=it[1],tt+=it[2],ke+=it[3]),mt===Ue.lineNumber){if(Qe===Ue.columnNumber)return new $e(ie.sources[je],tt,ke);if(_t+1===dt.length)return new $e(ie.sources[je],tt,0)}}}return new $e("unknown",0,0)}_getSourceMap(ie,Ue){const je=new G.aW("GET",ie),tt=Ue.toString();if(this.logPositionCache.has(tt))return this.logPositionCache.get(tt);this.sourceMapCache.has(ie)||this.sourceMapCache.set(ie,this.httpBackend.handle(je).pipe((0,oe.h)(ve=>ve instanceof G.Zn),(0,q.U)(ve=>ve.body),(0,_.X)(3),(0,W.d)(1)));const ke=this.sourceMapCache.get(ie).pipe((0,q.U)(ve=>te.getMapping(ve,Ue)),(0,I.K)(()=>(0,Fe.of)(Ue)),(0,W.d)(1));return this.logPositionCache.set(tt,ke),ke}getCallerDetails(ie,Ue){const je=te.getStackLine(Ue);return je?(0,Fe.of)([te.getPosition(je),te.getMapFilePath(je)]).pipe((0,R.w)(([tt,ke])=>ie?this._getSourceMap(ke,tt):(0,Fe.of)(tt))):(0,Fe.of)(new $e("",0,0))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();const Se=["TRACE","DEBUG","INFO","LOG","WARN","ERROR","FATAL","OFF"];let Xe=(()=>{class te{constructor(ie,Ue,je,tt,ke){this.mapperService=ie,this.httpService=Ue,this.platformId=tt,this.datePipe=ke,this._withCredentials=!1,this._isIE=(0,a.NF)(tt)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.config=new zt(je),this._logFunc=this._isIE?this._logIE.bind(this):this._logModern.bind(this)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}trace(ie,...Ue){this._log(Je.TRACE,ie,Ue)}debug(ie,...Ue){this._log(Je.DEBUG,ie,Ue)}info(ie,...Ue){this._log(Je.INFO,ie,Ue)}log(ie,...Ue){this._log(Je.LOG,ie,Ue)}warn(ie,...Ue){this._log(Je.WARN,ie,Ue)}error(ie,...Ue){this._log(Je.ERROR,ie,Ue)}fatal(ie,...Ue){this._log(Je.FATAL,ie,Ue)}setCustomHttpHeaders(ie){this._customHttpHeaders=ie}setCustomParams(ie){this._customParams=ie}setWithCredentialsOptionValue(ie){this._withCredentials=ie}registerMonitor(ie){this._loggerMonitor=ie}updateConfig(ie){this.config.updateConfig(ie)}getConfigSnapshot(){return this.config.getConfig()}_logIE(ie,Ue,je,tt){switch(tt=tt||[],ie){case Je.WARN:console.warn(`${Ue} `,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`${Ue} `,je,...tt);break;case Je.INFO:console.info(`${Ue} `,je,...tt);break;default:console.log(`${Ue} `,je,...tt)}}_logModern(ie,Ue,je,tt){const ke=this.getConfigSnapshot().colorScheme,ve=Ie.getColor(ie,ke);switch(tt=tt||[],ie){case Je.WARN:console.warn(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.INFO:console.info(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.DEBUG:console.debug(`%c${Ue}`,`color:${ve}`,je,...tt);break;default:console.log(`%c${Ue}`,`color:${ve}`,je,...tt)}}_log(ie,Ue,je=[],tt=!0){const ke=this.config.getConfig(),ve=tt&&ke.serverLoggingUrl&&ie>=ke.serverLogLevel,mt=ie>=ke.level;if(!Ue||!ve&&!mt)return;const Qe=Se[ie];Ue="function"==typeof Ue?Ue():Ue;const dt=Ie.prepareAdditionalParameters(je),_t=ke.timestampFormat?this.datePipe.transform(new Date,ke.timestampFormat):(new Date).toISOString();this.mapperService.getCallerDetails(ke.enableSourceMaps,ke.proxiedSteps).subscribe(it=>{const St={message:Ie.prepareMessage(Ue),additional:dt,level:ie,timestamp:_t,fileName:it.fileName,lineNumber:it.lineNumber.toString()};if(this._loggerMonitor&&mt&&this._loggerMonitor.onLog(St),ve){St.message=Ue instanceof Error?Ue.stack:Ue,St.message=Ie.prepareMessage(St.message);const ot=this._customHttpHeaders||new G.WM;ot.set("Content-Type","application/json");const Et={headers:ot,params:this._customParams||new G.LE,responseType:ke.httpResponseType||"json",withCredentials:this._withCredentials};this.httpService.logOnServer(ke.serverLoggingUrl,St,Et).subscribe(Zt=>{},Zt=>{this._log(Je.ERROR,`FAILED TO LOG ON SERVER: ${Ue}`,[Zt],!1)})}if(mt&&!ke.disableConsoleLogging){const ot=Ie.prepareMetaString(_t,Qe,ke.disableFileDetails?null:it.fileName,it.lineNumber.toString());return this._logFunc(ie,ot,Ue,je)}})}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(et),s.LFG(vt),s.LFG(ze),s.LFG(s.Lbi),s.LFG(a.uU))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(et),(0,s.LFG)(vt),(0,s.LFG)(ze),(0,s.LFG)(s.Lbi),(0,s.LFG)(a.uU))},token:te,providedIn:"root"}),te})()},591:(yt,be,p)=>{p.d(be,{X:()=>G});var a=p(8929),s=p(5279);class G extends a.xQ{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const _=super._subscribe(q);return _&&!_.closed&&q.next(this._value),_}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(q){super.next(this._value=q)}}},9312:(yt,be,p)=>{p.d(be,{P:()=>q});var a=p(8896),s=p(1086),G=p(1737);class q{constructor(W,I,R){this.kind=W,this.value=I,this.error=R,this.hasValue="N"===W}observe(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}}do(W,I,R){switch(this.kind){case"N":return W&&W(this.value);case"E":return I&&I(this.error);case"C":return R&&R()}}accept(W,I,R){return W&&"function"==typeof W.next?this.observe(W):this.do(W,I,R)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,G._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(W){return void 0!==W?new q("N",W):q.undefinedValueNotification}static createError(W){return new q("E",void 0,W)}static createComplete(){return q.completeNotification}}q.completeNotification=new q("C"),q.undefinedValueNotification=new q("N",void 0)},6498:(yt,be,p)=>{p.d(be,{y:()=>R});var a=p(3489),G=p(7668),oe=p(3292),_=p(3821),W=p(4843),I=p(2830);let R=(()=>{class B{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const Ye=new B;return Ye.source=this,Ye.operator=ye,Ye}subscribe(ye,Ye,Fe){const{operator:ze}=this,_e=function q(B,ee,ye){if(B){if(B instanceof a.L)return B;if(B[G.b])return B[G.b]()}return B||ee||ye?new a.L(B,ee,ye):new a.L(oe.c)}(ye,Ye,Fe);if(_e.add(ze?ze.call(_e,this.source):this.source||I.v.useDeprecatedSynchronousErrorHandling&&!_e.syncErrorThrowable?this._subscribe(_e):this._trySubscribe(_e)),I.v.useDeprecatedSynchronousErrorHandling&&_e.syncErrorThrowable&&(_e.syncErrorThrowable=!1,_e.syncErrorThrown))throw _e.syncErrorValue;return _e}_trySubscribe(ye){try{return this._subscribe(ye)}catch(Ye){I.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=Ye),function s(B){for(;B;){const{closed:ee,destination:ye,isStopped:Ye}=B;if(ee||Ye)return!1;B=ye&&ye instanceof a.L?ye:null}return!0}(ye)?ye.error(Ye):console.warn(Ye)}}forEach(ye,Ye){return new(Ye=H(Ye))((Fe,ze)=>{let _e;_e=this.subscribe(vt=>{try{ye(vt)}catch(Je){ze(Je),_e&&_e.unsubscribe()}},ze,Fe)})}_subscribe(ye){const{source:Ye}=this;return Ye&&Ye.subscribe(ye)}[_.L](){return this}pipe(...ye){return 0===ye.length?this:(0,W.U)(ye)(this)}toPromise(ye){return new(ye=H(ye))((Ye,Fe)=>{let ze;this.subscribe(_e=>ze=_e,_e=>Fe(_e),()=>Ye(ze))})}}return B.create=ee=>new B(ee),B})();function H(B){if(B||(B=I.v.Promise||Promise),!B)throw new Error("no Promise impl found");return B}},3292:(yt,be,p)=>{p.d(be,{c:()=>G});var a=p(2830),s=p(2782);const G={closed:!0,next(oe){},error(oe){if(a.v.useDeprecatedSynchronousErrorHandling)throw oe;(0,s.z)(oe)},complete(){}}},826:(yt,be,p)=>{p.d(be,{L:()=>s});var a=p(3489);class s extends a.L{notifyNext(oe,q,_,W,I){this.destination.next(q)}notifyError(oe,q){this.destination.error(oe)}notifyComplete(oe){this.destination.complete()}}},5647:(yt,be,p)=>{p.d(be,{t:()=>ee});var a=p(8929),s=p(6686),oe=p(2268);const W=new class q extends oe.v{}(class G extends s.o{constructor(Fe,ze){super(Fe,ze),this.scheduler=Fe,this.work=ze}schedule(Fe,ze=0){return ze>0?super.schedule(Fe,ze):(this.delay=ze,this.state=Fe,this.scheduler.flush(this),this)}execute(Fe,ze){return ze>0||this.closed?super.execute(Fe,ze):this._execute(Fe,ze)}requestAsyncId(Fe,ze,_e=0){return null!==_e&&_e>0||null===_e&&this.delay>0?super.requestAsyncId(Fe,ze,_e):Fe.flush(this)}});var I=p(2654),R=p(7770),H=p(5279),B=p(5283);class ee extends a.xQ{constructor(Fe=Number.POSITIVE_INFINITY,ze=Number.POSITIVE_INFINITY,_e){super(),this.scheduler=_e,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=Fe<1?1:Fe,this._windowTime=ze<1?1:ze,ze===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(Fe){if(!this.isStopped){const ze=this._events;ze.push(Fe),ze.length>this._bufferSize&&ze.shift()}super.next(Fe)}nextTimeWindow(Fe){this.isStopped||(this._events.push(new ye(this._getNow(),Fe)),this._trimBufferThenGetEvents()),super.next(Fe)}_subscribe(Fe){const ze=this._infiniteTimeWindow,_e=ze?this._events:this._trimBufferThenGetEvents(),vt=this.scheduler,Je=_e.length;let zt;if(this.closed)throw new H.N;if(this.isStopped||this.hasError?zt=I.w.EMPTY:(this.observers.push(Fe),zt=new B.W(this,Fe)),vt&&Fe.add(Fe=new R.ht(Fe,vt)),ze)for(let ut=0;utze&&(zt=Math.max(zt,Je-ze)),zt>0&&vt.splice(0,zt),vt}}class ye{constructor(Fe,ze){this.time=Fe,this.value=ze}}},8929:(yt,be,p)=>{p.d(be,{Yc:()=>W,xQ:()=>I});var a=p(6498),s=p(3489),G=p(2654),oe=p(5279),q=p(5283),_=p(7668);class W extends s.L{constructor(B){super(B),this.destination=B}}let I=(()=>{class H extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_.b](){return new W(this)}lift(ee){const ye=new R(this,this);return ye.operator=ee,ye}next(ee){if(this.closed)throw new oe.N;if(!this.isStopped){const{observers:ye}=this,Ye=ye.length,Fe=ye.slice();for(let ze=0;zenew R(B,ee),H})();class R extends I{constructor(B,ee){super(),this.destination=B,this.source=ee}next(B){const{destination:ee}=this;ee&&ee.next&&ee.next(B)}error(B){const{destination:ee}=this;ee&&ee.error&&this.destination.error(B)}complete(){const{destination:B}=this;B&&B.complete&&this.destination.complete()}_subscribe(B){const{source:ee}=this;return ee?this.source.subscribe(B):G.w.EMPTY}}},5283:(yt,be,p)=>{p.d(be,{W:()=>s});var a=p(2654);class s extends a.w{constructor(oe,q){super(),this.subject=oe,this.subscriber=q,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const oe=this.subject,q=oe.observers;if(this.subject=null,!q||0===q.length||oe.isStopped||oe.closed)return;const _=q.indexOf(this.subscriber);-1!==_&&q.splice(_,1)}}},3489:(yt,be,p)=>{p.d(be,{L:()=>W});var a=p(7043),s=p(3292),G=p(2654),oe=p(7668),q=p(2830),_=p(2782);class W extends G.w{constructor(H,B,ee){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!H){this.destination=s.c;break}if("object"==typeof H){H instanceof W?(this.syncErrorThrowable=H.syncErrorThrowable,this.destination=H,H.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,H));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,H,B,ee)}}[oe.b](){return this}static create(H,B,ee){const ye=new W(H,B,ee);return ye.syncErrorThrowable=!1,ye}next(H){this.isStopped||this._next(H)}error(H){this.isStopped||(this.isStopped=!0,this._error(H))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(H){this.destination.next(H)}_error(H){this.destination.error(H),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:H}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=H,this}}class I extends W{constructor(H,B,ee,ye){super(),this._parentSubscriber=H;let Ye,Fe=this;(0,a.m)(B)?Ye=B:B&&(Ye=B.next,ee=B.error,ye=B.complete,B!==s.c&&(Fe=Object.create(B),(0,a.m)(Fe.unsubscribe)&&this.add(Fe.unsubscribe.bind(Fe)),Fe.unsubscribe=this.unsubscribe.bind(this))),this._context=Fe,this._next=Ye,this._error=ee,this._complete=ye}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:B}=this;q.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?this.__tryOrSetError(B,this._next,H)&&this.unsubscribe():this.__tryOrUnsub(this._next,H)}}error(H){if(!this.isStopped){const{_parentSubscriber:B}=this,{useDeprecatedSynchronousErrorHandling:ee}=q.v;if(this._error)ee&&B.syncErrorThrowable?(this.__tryOrSetError(B,this._error,H),this.unsubscribe()):(this.__tryOrUnsub(this._error,H),this.unsubscribe());else if(B.syncErrorThrowable)ee?(B.syncErrorValue=H,B.syncErrorThrown=!0):(0,_.z)(H),this.unsubscribe();else{if(this.unsubscribe(),ee)throw H;(0,_.z)(H)}}}complete(){if(!this.isStopped){const{_parentSubscriber:H}=this;if(this._complete){const B=()=>this._complete.call(this._context);q.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?(this.__tryOrSetError(H,B),this.unsubscribe()):(this.__tryOrUnsub(B),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(H,B){try{H.call(this._context,B)}catch(ee){if(this.unsubscribe(),q.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,_.z)(ee)}}__tryOrSetError(H,B,ee){if(!q.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,ee)}catch(ye){return q.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=ye,H.syncErrorThrown=!0,!0):((0,_.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},2654:(yt,be,p)=>{p.d(be,{w:()=>_});var a=p(6688),s=p(7830),G=p(7043);const q=(()=>{function I(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((H,B)=>`${B+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return I.prototype=Object.create(Error.prototype),I})();class _{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:H,_ctorUnsubscribe:B,_unsubscribe:ee,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof _)H.remove(this);else if(null!==H)for(let Ye=0;YeR.concat(H instanceof q?H.errors:H),[])}_.EMPTY=((I=new _).closed=!0,I)},2830:(yt,be,p)=>{p.d(be,{v:()=>s});let a=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(G){if(G){const oe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+oe.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=G},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(yt,be,p)=>{p.d(be,{IY:()=>oe,Ds:()=>_,ft:()=>I});var a=p(3489),s=p(6498),G=p(9249);class oe extends a.L{constructor(H){super(),this.parent=H}_next(H){this.parent.notifyNext(H)}_error(H){this.parent.notifyError(H),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _ extends a.L{notifyNext(H){this.destination.next(H)}notifyError(H){this.destination.error(H)}notifyComplete(){this.destination.complete()}}function I(R,H){if(H.closed)return;if(R instanceof s.y)return R.subscribe(H);let B;try{B=(0,G.s)(R)(H)}catch(ee){H.error(ee)}return B}},1762:(yt,be,p)=>{p.d(be,{c:()=>q,N:()=>_});var a=p(8929),s=p(6498),G=p(2654),oe=p(4327);class q extends s.y{constructor(B,ee){super(),this.source=B,this.subjectFactory=ee,this._refCount=0,this._isComplete=!1}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let B=this._connection;return B||(this._isComplete=!1,B=this._connection=new G.w,B.add(this.source.subscribe(new W(this.getSubject(),this))),B.closed&&(this._connection=null,B=G.w.EMPTY)),B}refCount(){return(0,oe.x)()(this)}}const _=(()=>{const H=q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}}})();class W extends a.Yc{constructor(B,ee){super(B),this.connectable=ee}_error(B){this._unsubscribe(),super._error(B)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const B=this.connectable;if(B){this.connectable=null;const ee=B._connection;B._refCount=0,B._subject=null,B._connection=null,ee&&ee.unsubscribe()}}}},6053:(yt,be,p)=>{p.d(be,{aj:()=>W});var a=p(2866),s=p(6688),G=p(826),oe=p(448),q=p(3009);const _={};function W(...H){let B,ee;return(0,a.K)(H[H.length-1])&&(ee=H.pop()),"function"==typeof H[H.length-1]&&(B=H.pop()),1===H.length&&(0,s.k)(H[0])&&(H=H[0]),(0,q.n)(H,ee).lift(new I(B))}class I{constructor(B){this.resultSelector=B}call(B,ee){return ee.subscribe(new R(B,this.resultSelector))}}class R extends G.L{constructor(B,ee){super(B),this.resultSelector=ee,this.active=0,this.values=[],this.observables=[]}_next(B){this.values.push(_),this.observables.push(B)}_complete(){const B=this.observables,ee=B.length;if(0===ee)this.destination.complete();else{this.active=ee,this.toRespond=ee;for(let ye=0;ye{p.d(be,{z:()=>G});var a=p(1086),s=p(534);function G(...oe){return(0,s.u)()((0,a.of)(...oe))}},8514:(yt,be,p)=>{p.d(be,{P:()=>oe});var a=p(6498),s=p(5254),G=p(8896);function oe(q){return new a.y(_=>{let W;try{W=q()}catch(R){return void _.error(R)}return(W?(0,s.D)(W):(0,G.c)()).subscribe(_)})}},8896:(yt,be,p)=>{p.d(be,{E:()=>s,c:()=>G});var a=p(6498);const s=new a.y(q=>q.complete());function G(q){return q?function oe(q){return new a.y(_=>q.schedule(()=>_.complete()))}(q):s}},5254:(yt,be,p)=>{p.d(be,{D:()=>Fe});var a=p(6498),s=p(9249),G=p(2654),oe=p(3821),W=p(6454),I=p(5430),B=p(8955),ee=p(8515);function Fe(ze,_e){return _e?function Ye(ze,_e){if(null!=ze){if(function H(ze){return ze&&"function"==typeof ze[oe.L]}(ze))return function q(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>{const zt=ze[oe.L]();Je.add(zt.subscribe({next(ut){Je.add(_e.schedule(()=>vt.next(ut)))},error(ut){Je.add(_e.schedule(()=>vt.error(ut)))},complete(){Je.add(_e.schedule(()=>vt.complete()))}}))})),Je})}(ze,_e);if((0,B.t)(ze))return function _(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>ze.then(zt=>{Je.add(_e.schedule(()=>{vt.next(zt),Je.add(_e.schedule(()=>vt.complete()))}))},zt=>{Je.add(_e.schedule(()=>vt.error(zt)))}))),Je})}(ze,_e);if((0,ee.z)(ze))return(0,W.r)(ze,_e);if(function ye(ze){return ze&&"function"==typeof ze[I.hZ]}(ze)||"string"==typeof ze)return function R(ze,_e){if(!ze)throw new Error("Iterable cannot be null");return new a.y(vt=>{const Je=new G.w;let zt;return Je.add(()=>{zt&&"function"==typeof zt.return&&zt.return()}),Je.add(_e.schedule(()=>{zt=ze[I.hZ](),Je.add(_e.schedule(function(){if(vt.closed)return;let ut,Ie;try{const $e=zt.next();ut=$e.value,Ie=$e.done}catch($e){return void vt.error($e)}Ie?vt.complete():(vt.next(ut),this.schedule())}))})),Je})}(ze,_e)}throw new TypeError((null!==ze&&typeof ze||ze)+" is not observable")}(ze,_e):ze instanceof a.y?ze:new a.y((0,s.s)(ze))}},3009:(yt,be,p)=>{p.d(be,{n:()=>oe});var a=p(6498),s=p(3650),G=p(6454);function oe(q,_){return _?(0,G.r)(q,_):new a.y((0,s.V)(q))}},3753:(yt,be,p)=>{p.d(be,{R:()=>_});var a=p(6498),s=p(6688),G=p(7043),oe=p(4850);function _(B,ee,ye,Ye){return(0,G.m)(ye)&&(Ye=ye,ye=void 0),Ye?_(B,ee,ye).pipe((0,oe.U)(Fe=>(0,s.k)(Fe)?Ye(...Fe):Ye(Fe))):new a.y(Fe=>{W(B,ee,function ze(_e){Fe.next(arguments.length>1?Array.prototype.slice.call(arguments):_e)},Fe,ye)})}function W(B,ee,ye,Ye,Fe){let ze;if(function H(B){return B&&"function"==typeof B.addEventListener&&"function"==typeof B.removeEventListener}(B)){const _e=B;B.addEventListener(ee,ye,Fe),ze=()=>_e.removeEventListener(ee,ye,Fe)}else if(function R(B){return B&&"function"==typeof B.on&&"function"==typeof B.off}(B)){const _e=B;B.on(ee,ye),ze=()=>_e.off(ee,ye)}else if(function I(B){return B&&"function"==typeof B.addListener&&"function"==typeof B.removeListener}(B)){const _e=B;B.addListener(ee,ye),ze=()=>_e.removeListener(ee,ye)}else{if(!B||!B.length)throw new TypeError("Invalid event target");for(let _e=0,vt=B.length;_e{p.d(be,{T:()=>q});var a=p(6498),s=p(2866),G=p(9146),oe=p(3009);function q(..._){let W=Number.POSITIVE_INFINITY,I=null,R=_[_.length-1];return(0,s.K)(R)?(I=_.pop(),_.length>1&&"number"==typeof _[_.length-1]&&(W=_.pop())):"number"==typeof R&&(W=_.pop()),null===I&&1===_.length&&_[0]instanceof a.y?_[0]:(0,G.J)(W)((0,oe.n)(_,I))}},1086:(yt,be,p)=>{p.d(be,{of:()=>oe});var a=p(2866),s=p(3009),G=p(6454);function oe(...q){let _=q[q.length-1];return(0,a.K)(_)?(q.pop(),(0,G.r)(q,_)):(0,s.n)(q)}},1737:(yt,be,p)=>{p.d(be,{_:()=>s});var a=p(6498);function s(oe,q){return new a.y(q?_=>q.schedule(G,0,{error:oe,subscriber:_}):_=>_.error(oe))}function G({error:oe,subscriber:q}){q.error(oe)}},8723:(yt,be,p)=>{p.d(be,{H:()=>q});var a=p(6498),s=p(353),G=p(4241),oe=p(2866);function q(W=0,I,R){let H=-1;return(0,G.k)(I)?H=Number(I)<1?1:Number(I):(0,oe.K)(I)&&(R=I),(0,oe.K)(R)||(R=s.P),new a.y(B=>{const ee=(0,G.k)(W)?W:+W-R.now();return R.schedule(_,ee,{index:0,period:H,subscriber:B})})}function _(W){const{index:I,period:R,subscriber:H}=W;if(H.next(I),!H.closed){if(-1===R)return H.complete();W.index=I+1,this.schedule(W,R)}}},7138:(yt,be,p)=>{p.d(be,{e:()=>W});var a=p(353),s=p(1177);class oe{constructor(R){this.durationSelector=R}call(R,H){return H.subscribe(new q(R,this.durationSelector))}}class q extends s.Ds{constructor(R,H){super(R),this.durationSelector=H,this.hasValue=!1}_next(R){if(this.value=R,this.hasValue=!0,!this.throttled){let H;try{const{durationSelector:ee}=this;H=ee(R)}catch(ee){return this.destination.error(ee)}const B=(0,s.ft)(H,new s.IY(this));!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:R,hasValue:H,throttled:B}=this;B&&(this.remove(B),this.throttled=void 0,B.unsubscribe()),H&&(this.value=void 0,this.hasValue=!1,this.destination.next(R))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var _=p(8723);function W(I,R=a.P){return function G(I){return function(H){return H.lift(new oe(I))}}(()=>(0,_.H)(I,R))}},7221:(yt,be,p)=>{p.d(be,{K:()=>s});var a=p(1177);function s(q){return function(W){const I=new G(q),R=W.lift(I);return I.caught=R}}class G{constructor(_){this.selector=_}call(_,W){return W.subscribe(new oe(_,this.selector,this.caught))}}class oe extends a.Ds{constructor(_,W,I){super(_),this.selector=W,this.caught=I}error(_){if(!this.isStopped){let W;try{W=this.selector(_,this.caught)}catch(H){return void super.error(H)}this._unsubscribeAndRecycle();const I=new a.IY(this);this.add(I);const R=(0,a.ft)(W,I);R!==I&&this.add(R)}}}},534:(yt,be,p)=>{p.d(be,{u:()=>s});var a=p(9146);function s(){return(0,a.J)(1)}},1406:(yt,be,p)=>{p.d(be,{b:()=>s});var a=p(1709);function s(G,oe){return(0,a.zg)(G,oe,1)}},13:(yt,be,p)=>{p.d(be,{b:()=>G});var a=p(3489),s=p(353);function G(W,I=s.P){return R=>R.lift(new oe(W,I))}class oe{constructor(I,R){this.dueTime=I,this.scheduler=R}call(I,R){return R.subscribe(new q(I,this.dueTime,this.scheduler))}}class q extends a.L{constructor(I,R,H){super(I),this.dueTime=R,this.scheduler=H,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(I){this.clearDebounce(),this.lastValue=I,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:I}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(I)}}clearDebounce(){const I=this.debouncedSubscription;null!==I&&(this.remove(I),I.unsubscribe(),this.debouncedSubscription=null)}}function _(W){W.debouncedNext()}},8583:(yt,be,p)=>{p.d(be,{g:()=>q});var a=p(353),G=p(3489),oe=p(9312);function q(R,H=a.P){const ee=function s(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-H.now():Math.abs(R);return ye=>ye.lift(new _(ee,H))}class _{constructor(H,B){this.delay=H,this.scheduler=B}call(H,B){return B.subscribe(new W(H,this.delay,this.scheduler))}}class W extends G.L{constructor(H,B,ee){super(H),this.delay=B,this.scheduler=ee,this.queue=[],this.active=!1,this.errored=!1}static dispatch(H){const B=H.source,ee=B.queue,ye=H.scheduler,Ye=H.destination;for(;ee.length>0&&ee[0].time-ye.now()<=0;)ee.shift().notification.observe(Ye);if(ee.length>0){const Fe=Math.max(0,ee[0].time-ye.now());this.schedule(H,Fe)}else this.unsubscribe(),B.active=!1}_schedule(H){this.active=!0,this.destination.add(H.schedule(W.dispatch,this.delay,{source:this,destination:this.destination,scheduler:H}))}scheduleNotification(H){if(!0===this.errored)return;const B=this.scheduler,ee=new I(B.now()+this.delay,H);this.queue.push(ee),!1===this.active&&this._schedule(B)}_next(H){this.scheduleNotification(oe.P.createNext(H))}_error(H){this.errored=!0,this.queue=[],this.destination.error(H),this.unsubscribe()}_complete(){this.scheduleNotification(oe.P.createComplete()),this.unsubscribe()}}class I{constructor(H,B){this.time=H,this.notification=B}}},5778:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(q,_){return W=>W.lift(new G(q,_))}class G{constructor(_,W){this.compare=_,this.keySelector=W}call(_,W){return W.subscribe(new oe(_,this.compare,this.keySelector))}}class oe extends a.L{constructor(_,W,I){super(_),this.keySelector=I,this.hasKey=!1,"function"==typeof W&&(this.compare=W)}compare(_,W){return _===W}_next(_){let W;try{const{keySelector:R}=this;W=R?R(_):_}catch(R){return this.destination.error(R)}let I=!1;if(this.hasKey)try{const{compare:R}=this;I=R(this.key,W)}catch(R){return this.destination.error(R)}else this.hasKey=!0;I||(this.key=W,this.destination.next(_))}}},2198:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q,_){return function(I){return I.lift(new G(q,_))}}class G{constructor(_,W){this.predicate=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.predicate,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.predicate=W,this.thisArg=I,this.count=0}_next(_){let W;try{W=this.predicate.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}W&&this.destination.next(_)}}},537:(yt,be,p)=>{p.d(be,{x:()=>G});var a=p(3489),s=p(2654);function G(_){return W=>W.lift(new oe(_))}class oe{constructor(W){this.callback=W}call(W,I){return I.subscribe(new q(W,this.callback))}}class q extends a.L{constructor(W,I){super(W),this.add(new s.w(I))}}},4850:(yt,be,p)=>{p.d(be,{U:()=>s});var a=p(3489);function s(q,_){return function(I){if("function"!=typeof q)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return I.lift(new G(q,_))}}class G{constructor(_,W){this.project=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.project,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.project=W,this.count=0,this.thisArg=I||this}_next(_){let W;try{W=this.project.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}this.destination.next(W)}}},7604:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.value=_}call(_,W){return W.subscribe(new oe(_,this.value))}}class oe extends a.L{constructor(_,W){super(_),this.value=W}_next(_){this.destination.next(this.value)}}},9146:(yt,be,p)=>{p.d(be,{J:()=>G});var a=p(1709),s=p(5379);function G(oe=Number.POSITIVE_INFINITY){return(0,a.zg)(s.y,oe)}},1709:(yt,be,p)=>{p.d(be,{zg:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(I,R,H=Number.POSITIVE_INFINITY){return"function"==typeof R?B=>B.pipe(oe((ee,ye)=>(0,s.D)(I(ee,ye)).pipe((0,a.U)((Ye,Fe)=>R(ee,Ye,ye,Fe))),H)):("number"==typeof R&&(H=R),B=>B.lift(new q(I,H)))}class q{constructor(R,H=Number.POSITIVE_INFINITY){this.project=R,this.concurrent=H}call(R,H){return H.subscribe(new _(R,this.project,this.concurrent))}}class _ extends G.Ds{constructor(R,H,B=Number.POSITIVE_INFINITY){super(R),this.project=H,this.concurrent=B,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(R){this.active0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(yt,be,p)=>{p.d(be,{O:()=>s});var a=p(1762);function s(oe,q){return function(W){let I;if(I="function"==typeof oe?oe:function(){return oe},"function"==typeof q)return W.lift(new G(I,q));const R=Object.create(W,a.N);return R.source=W,R.subjectFactory=I,R}}class G{constructor(q,_){this.subjectFactory=q,this.selector=_}call(q,_){const{selector:W}=this,I=this.subjectFactory(),R=W(I).subscribe(q);return R.add(_.subscribe(I)),R}}},7770:(yt,be,p)=>{p.d(be,{QV:()=>G,ht:()=>q});var a=p(3489),s=p(9312);function G(W,I=0){return function(H){return H.lift(new oe(W,I))}}class oe{constructor(I,R=0){this.scheduler=I,this.delay=R}call(I,R){return R.subscribe(new q(I,this.scheduler,this.delay))}}class q extends a.L{constructor(I,R,H=0){super(I),this.scheduler=R,this.delay=H}static dispatch(I){const{notification:R,destination:H}=I;R.observe(H),this.unsubscribe()}scheduleMessage(I){this.destination.add(this.scheduler.schedule(q.dispatch,this.delay,new _(I,this.destination)))}_next(I){this.scheduleMessage(s.P.createNext(I))}_error(I){this.scheduleMessage(s.P.createError(I)),this.unsubscribe()}_complete(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()}}class _{constructor(I,R){this.notification=I,this.destination=R}}},4327:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(){return function(_){return _.lift(new G(_))}}class G{constructor(_){this.connectable=_}call(_,W){const{connectable:I}=this;I._refCount++;const R=new oe(_,I),H=W.subscribe(R);return R.closed||(R.connection=I.connect()),H}}class oe extends a.L{constructor(_,W){super(_),this.connectable=W}_unsubscribe(){const{connectable:_}=this;if(!_)return void(this.connection=null);this.connectable=null;const W=_._refCount;if(W<=0)return void(this.connection=null);if(_._refCount=W-1,W>1)return void(this.connection=null);const{connection:I}=this,R=_._connection;this.connection=null,R&&(!I||R===I)&&R.unsubscribe()}}},9973:(yt,be,p)=>{p.d(be,{X:()=>s});var a=p(3489);function s(q=-1){return _=>_.lift(new G(q,_))}class G{constructor(_,W){this.count=_,this.source=W}call(_,W){return W.subscribe(new oe(_,this.count,this.source))}}class oe extends a.L{constructor(_,W,I){super(_),this.count=W,this.source=I}error(_){if(!this.isStopped){const{source:W,count:I}=this;if(0===I)return super.error(_);I>-1&&(this.count=I-1),W.subscribe(this._unsubscribeAndRecycle())}}}},2014:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(3489);function s(q,_){let W=!1;return arguments.length>=2&&(W=!0),function(R){return R.lift(new G(q,_,W))}}class G{constructor(_,W,I=!1){this.accumulator=_,this.seed=W,this.hasSeed=I}call(_,W){return W.subscribe(new oe(_,this.accumulator,this.seed,this.hasSeed))}}class oe extends a.L{constructor(_,W,I,R){super(_),this.accumulator=W,this._seed=I,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(_){this.hasSeed=!0,this._seed=_}_next(_){if(this.hasSeed)return this._tryNext(_);this.seed=_,this.destination.next(_)}_tryNext(_){const W=this.index++;let I;try{I=this.accumulator(this.seed,_,W)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}},8117:(yt,be,p)=>{p.d(be,{B:()=>q});var a=p(2536),s=p(4327),G=p(8929);function oe(){return new G.xQ}function q(){return _=>(0,s.x)()((0,a.O)(oe)(_))}},5154:(yt,be,p)=>{p.d(be,{d:()=>s});var a=p(5647);function s(oe,q,_){let W;return W=oe&&"object"==typeof oe?oe:{bufferSize:oe,windowTime:q,refCount:!1,scheduler:_},I=>I.lift(function G({bufferSize:oe=Number.POSITIVE_INFINITY,windowTime:q=Number.POSITIVE_INFINITY,refCount:_,scheduler:W}){let I,H,R=0,B=!1,ee=!1;return function(Ye){let Fe;R++,!I||B?(B=!1,I=new a.t(oe,q,W),Fe=I.subscribe(this),H=Ye.subscribe({next(ze){I.next(ze)},error(ze){B=!0,I.error(ze)},complete(){ee=!0,H=void 0,I.complete()}}),ee&&(H=void 0)):Fe=I.subscribe(this),this.add(()=>{R--,Fe.unsubscribe(),Fe=void 0,H&&!ee&&_&&0===R&&(H.unsubscribe(),H=void 0,I=void 0)})}}(W))}},1307:(yt,be,p)=>{p.d(be,{T:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.total=_}call(_,W){return W.subscribe(new oe(_,this.total))}}class oe extends a.L{constructor(_,W){super(_),this.total=W,this.count=0}_next(_){++this.count>this.total&&this.destination.next(_)}}},1059:(yt,be,p)=>{p.d(be,{O:()=>G});var a=p(1961),s=p(2866);function G(...oe){const q=oe[oe.length-1];return(0,s.K)(q)?(oe.pop(),_=>(0,a.z)(oe,_,q)):_=>(0,a.z)(oe,_)}},7545:(yt,be,p)=>{p.d(be,{w:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(W,I){return"function"==typeof I?R=>R.pipe(oe((H,B)=>(0,s.D)(W(H,B)).pipe((0,a.U)((ee,ye)=>I(H,ee,B,ye))))):R=>R.lift(new q(W))}class q{constructor(I){this.project=I}call(I,R){return R.subscribe(new _(I,this.project))}}class _ extends G.Ds{constructor(I,R){super(I),this.project=R,this.index=0}_next(I){let R;const H=this.index++;try{R=this.project(I,H)}catch(B){return void this.destination.error(B)}this._innerSub(R)}_innerSub(I){const R=this.innerSubscription;R&&R.unsubscribe();const H=new G.IY(this),B=this.destination;B.add(H),this.innerSubscription=(0,G.ft)(I,H),this.innerSubscription!==H&&B.add(this.innerSubscription)}_complete(){const{innerSubscription:I}=this;(!I||I.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(I){this.destination.next(I)}}},2986:(yt,be,p)=>{p.d(be,{q:()=>oe});var a=p(3489),s=p(4231),G=p(8896);function oe(W){return I=>0===W?(0,G.c)():I.lift(new q(W))}class q{constructor(I){if(this.total=I,this.total<0)throw new s.W}call(I,R){return R.subscribe(new _(I,this.total))}}class _ extends a.L{constructor(I,R){super(I),this.total=R,this.count=0}_next(I){const R=this.total,H=++this.count;H<=R&&(this.destination.next(I),H===R&&(this.destination.complete(),this.unsubscribe()))}}},7625:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(1177);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.notifier=_}call(_,W){const I=new oe(_),R=(0,a.ft)(this.notifier,new a.IY(I));return R&&!I.seenValue?(I.add(R),W.subscribe(I)):I}}class oe extends a.Ds{constructor(_){super(_),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(yt,be,p)=>{p.d(be,{b:()=>oe});var a=p(3489),s=p(7876),G=p(7043);function oe(W,I,R){return function(B){return B.lift(new q(W,I,R))}}class q{constructor(I,R,H){this.nextOrObserver=I,this.error=R,this.complete=H}call(I,R){return R.subscribe(new _(I,this.nextOrObserver,this.error,this.complete))}}class _ extends a.L{constructor(I,R,H,B){super(I),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=H||s.Z,this._tapComplete=B||s.Z,(0,G.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||s.Z,this._tapError=R.error||s.Z,this._tapComplete=R.complete||s.Z)}_next(I){try{this._tapNext.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.next(I)}_error(I){try{this._tapError.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.error(I)}_complete(){try{this._tapComplete.call(this._context)}catch(I){return void this.destination.error(I)}return this.destination.complete()}}},6454:(yt,be,p)=>{p.d(be,{r:()=>G});var a=p(6498),s=p(2654);function G(oe,q){return new a.y(_=>{const W=new s.w;let I=0;return W.add(q.schedule(function(){I!==oe.length?(_.next(oe[I++]),_.closed||W.add(this.schedule())):_.complete()})),W})}},6686:(yt,be,p)=>{p.d(be,{o:()=>G});var a=p(2654);class s extends a.w{constructor(q,_){super()}schedule(q,_=0){return this}}class G extends s{constructor(q,_){super(q,_),this.scheduler=q,this.work=_,this.pending=!1}schedule(q,_=0){if(this.closed)return this;this.state=q;const W=this.id,I=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(I,W,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(I,this.id,_),this}requestAsyncId(q,_,W=0){return setInterval(q.flush.bind(q,this),W)}recycleAsyncId(q,_,W=0){if(null!==W&&this.delay===W&&!1===this.pending)return _;clearInterval(_)}execute(q,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(q,_);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,_){let I,W=!1;try{this.work(q)}catch(R){W=!0,I=!!R&&R||new Error(R)}if(W)return this.unsubscribe(),I}_unsubscribe(){const q=this.id,_=this.scheduler,W=_.actions,I=W.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==I&&W.splice(I,1),null!=q&&(this.id=this.recycleAsyncId(_,q,null)),this.delay=null}}},2268:(yt,be,p)=>{p.d(be,{v:()=>s});let a=(()=>{class G{constructor(q,_=G.now){this.SchedulerAction=q,this.now=_}schedule(q,_=0,W){return new this.SchedulerAction(this,q).schedule(W,_)}}return G.now=()=>Date.now(),G})();class s extends a{constructor(oe,q=a.now){super(oe,()=>s.delegate&&s.delegate!==this?s.delegate.now():q()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(oe,q=0,_){return s.delegate&&s.delegate!==this?s.delegate.schedule(oe,q,_):super.schedule(oe,q,_)}flush(oe){const{actions:q}=this;if(this.active)return void q.push(oe);let _;this.active=!0;do{if(_=oe.execute(oe.state,oe.delay))break}while(oe=q.shift());if(this.active=!1,_){for(;oe=q.shift();)oe.unsubscribe();throw _}}}},353:(yt,be,p)=>{p.d(be,{z:()=>G,P:()=>oe});var a=p(6686);const G=new(p(2268).v)(a.o),oe=G},5430:(yt,be,p)=>{p.d(be,{hZ:()=>s});const s=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(yt,be,p)=>{p.d(be,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(yt,be,p)=>{p.d(be,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(yt,be,p)=>{p.d(be,{W:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return G.prototype=Object.create(Error.prototype),G})()},5279:(yt,be,p)=>{p.d(be,{N:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return G.prototype=Object.create(Error.prototype),G})()},2782:(yt,be,p)=>{function a(s){setTimeout(()=>{throw s},0)}p.d(be,{z:()=>a})},5379:(yt,be,p)=>{function a(s){return s}p.d(be,{y:()=>a})},6688:(yt,be,p)=>{p.d(be,{k:()=>a});const a=Array.isArray||(s=>s&&"number"==typeof s.length)},8515:(yt,be,p)=>{p.d(be,{z:()=>a});const a=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7043:(yt,be,p)=>{function a(s){return"function"==typeof s}p.d(be,{m:()=>a})},4241:(yt,be,p)=>{p.d(be,{k:()=>s});var a=p(6688);function s(G){return!(0,a.k)(G)&&G-parseFloat(G)+1>=0}},7830:(yt,be,p)=>{function a(s){return null!==s&&"object"==typeof s}p.d(be,{K:()=>a})},8955:(yt,be,p)=>{function a(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(be,{t:()=>a})},2866:(yt,be,p)=>{function a(s){return s&&"function"==typeof s.schedule}p.d(be,{K:()=>a})},7876:(yt,be,p)=>{function a(){}p.d(be,{Z:()=>a})},4843:(yt,be,p)=>{p.d(be,{z:()=>s,U:()=>G});var a=p(5379);function s(...oe){return G(oe)}function G(oe){return 0===oe.length?a.y:1===oe.length?oe[0]:function(_){return oe.reduce((W,I)=>I(W),_)}}},9249:(yt,be,p)=>{p.d(be,{s:()=>B});var a=p(3650),s=p(2782),oe=p(5430),_=p(3821),I=p(8515),R=p(8955),H=p(7830);const B=ee=>{if(ee&&"function"==typeof ee[_.L])return(ee=>ye=>{const Ye=ee[_.L]();if("function"!=typeof Ye.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ye.subscribe(ye)})(ee);if((0,I.z)(ee))return(0,a.V)(ee);if((0,R.t)(ee))return(ee=>ye=>(ee.then(Ye=>{ye.closed||(ye.next(Ye),ye.complete())},Ye=>ye.error(Ye)).then(null,s.z),ye))(ee);if(ee&&"function"==typeof ee[oe.hZ])return(ee=>ye=>{const Ye=ee[oe.hZ]();for(;;){let Fe;try{Fe=Ye.next()}catch(ze){return ye.error(ze),ye}if(Fe.done){ye.complete();break}if(ye.next(Fe.value),ye.closed)break}return"function"==typeof Ye.return&&ye.add(()=>{Ye.return&&Ye.return()}),ye})(ee);{const Ye=`You provided ${(0,H.K)(ee)?"an invalid object":`'${ee}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ye)}}},3650:(yt,be,p)=>{p.d(be,{V:()=>a});const a=s=>G=>{for(let oe=0,q=s.length;oe{p.d(be,{D:()=>q});var a=p(3489);class s extends a.L{constructor(W,I,R){super(),this.parent=W,this.outerValue=I,this.outerIndex=R,this.index=0}_next(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)}_error(W){this.parent.notifyError(W,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var G=p(9249),oe=p(6498);function q(_,W,I,R,H=new s(_,I,R)){if(!H.closed)return W instanceof oe.y?W.subscribe(H):(0,G.s)(W)(H)}},655:(yt,be,p)=>{function oe(J,fe){var he={};for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&fe.indexOf(te)<0&&(he[te]=J[te]);if(null!=J&&"function"==typeof Object.getOwnPropertySymbols){var le=0;for(te=Object.getOwnPropertySymbols(J);le=0;je--)(Ue=J[je])&&(ie=(le<3?Ue(ie):le>3?Ue(fe,he,ie):Ue(fe,he))||ie);return le>3&&ie&&Object.defineProperty(fe,he,ie),ie}function I(J,fe,he,te){return new(he||(he=Promise))(function(ie,Ue){function je(ve){try{ke(te.next(ve))}catch(mt){Ue(mt)}}function tt(ve){try{ke(te.throw(ve))}catch(mt){Ue(mt)}}function ke(ve){ve.done?ie(ve.value):function le(ie){return ie instanceof he?ie:new he(function(Ue){Ue(ie)})}(ve.value).then(je,tt)}ke((te=te.apply(J,fe||[])).next())})}p.d(be,{_T:()=>oe,gn:()=>q,mG:()=>I})},1777:(yt,be,p)=>{p.d(be,{l3:()=>G,_j:()=>a,LC:()=>s,ZN:()=>vt,jt:()=>q,IO:()=>Fe,vP:()=>W,EY:()=>ze,SB:()=>R,oB:()=>I,eR:()=>B,X$:()=>oe,ZE:()=>Je,k1:()=>zt});class a{}class s{}const G="*";function oe(ut,Ie){return{type:7,name:ut,definitions:Ie,options:{}}}function q(ut,Ie=null){return{type:4,styles:Ie,timings:ut}}function W(ut,Ie=null){return{type:2,steps:ut,options:Ie}}function I(ut){return{type:6,styles:ut,offset:null}}function R(ut,Ie,$e){return{type:0,name:ut,styles:Ie,options:$e}}function B(ut,Ie,$e=null){return{type:1,expr:ut,animation:Ie,options:$e}}function Fe(ut,Ie,$e=null){return{type:11,selector:ut,animation:Ie,options:$e}}function ze(ut,Ie){return{type:12,timings:ut,animation:Ie}}function _e(ut){Promise.resolve(null).then(ut)}class vt{constructor(Ie=0,$e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ie+$e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}onStart(Ie){this._onStartFns.push(Ie)}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){_e(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Ie){this._position=this.totalTime?Ie*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}class Je{constructor(Ie){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ie;let $e=0,et=0,Se=0;const Xe=this.players.length;0==Xe?_e(()=>this._onFinish()):this.players.forEach(J=>{J.onDone(()=>{++$e==Xe&&this._onFinish()}),J.onDestroy(()=>{++et==Xe&&this._onDestroy()}),J.onStart(()=>{++Se==Xe&&this._onStart()})}),this.totalTime=this.players.reduce((J,fe)=>Math.max(J,fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}init(){this.players.forEach(Ie=>Ie.init())}onStart(Ie){this._onStartFns.push(Ie)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[])}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ie=>Ie.play())}pause(){this.players.forEach(Ie=>Ie.pause())}restart(){this.players.forEach(Ie=>Ie.restart())}finish(){this._onFinish(),this.players.forEach(Ie=>Ie.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ie=>Ie.destroy()),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this.players.forEach(Ie=>Ie.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ie){const $e=Ie*this.totalTime;this.players.forEach(et=>{const Se=et.totalTime?Math.min(1,$e/et.totalTime):1;et.setPosition(Se)})}getPosition(){const Ie=this.players.reduce(($e,et)=>null===$e||et.totalTime>$e.totalTime?et:$e,null);return null!=Ie?Ie.getPosition():0}beforeDestroy(){this.players.forEach(Ie=>{Ie.beforeDestroy&&Ie.beforeDestroy()})}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}const zt="!"},5664:(yt,be,p)=>{p.d(be,{rt:()=>Ne,tE:()=>Le,qV:()=>Et});var a=p(9808),s=p(5e3),G=p(591),oe=p(8929),q=p(1086),_=p(1159),W=p(2986),I=p(1307),R=p(5778),H=p(7625),B=p(3191),ee=p(925),ye=p(7144);let le=(()=>{class L{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function Ue(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const ue=function ie(L){try{return L.frameElement}catch(E){return null}}(function St(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}($));if(ue&&(-1===dt(ue)||!this.isVisible(ue)))return!1;let Ae=$.nodeName.toLowerCase(),wt=dt($);return $.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Ae||"object"===Ae||this._platform.WEBKIT&&this._platform.IOS&&!function _t(L){let E=L.nodeName.toLowerCase(),$="input"===E&&L.type;return"text"===$||"password"===$||"select"===E||"textarea"===E}($))&&("audio"===Ae?!!$.hasAttribute("controls")&&-1!==wt:"video"===Ae?-1!==wt&&(null!==wt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,ue){return function it(L){return!function tt(L){return function ve(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function je(L){let E=L.nodeName.toLowerCase();return"input"===E||"select"===E||"button"===E||"textarea"===E}(L)||function ke(L){return function mt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Qe(L))}($)&&!this.isDisabled($)&&((null==ue?void 0:ue.ignoreVisibility)||this.isVisible($))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Qe(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let E=L.getAttribute("tabindex");return!(!E||isNaN(parseInt(E,10)))}function dt(L){if(!Qe(L))return null;const E=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(E)?-1:E}class ot{constructor(E,$,ue,Ae,wt=!1){this._element=E,this._checker=$,this._ngZone=ue,this._document=Ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,wt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(E){this._enabled=E,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}destroy(){const E=this._startAnchor,$=this._endAnchor;E&&(E.removeEventListener("focus",this.startAnchorListener),E.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(E)))})}focusFirstTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(E)))})}focusLastTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(E)))})}_getRegionBoundary(E){const $=this._element.querySelectorAll(`[cdk-focus-region-${E}], [cdkFocusRegion${E}], [cdk-focus-${E}]`);return"start"==E?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(E){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const ue=this._getFirstTabbableElement($);return null==ue||ue.focus(E),!!ue}return $.focus(E),!0}return this.focusFirstTabbableElement(E)}focusFirstTabbableElement(E){const $=this._getRegionBoundary("start");return $&&$.focus(E),!!$}focusLastTabbableElement(E){const $=this._getRegionBoundary("end");return $&&$.focus(E),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=0;ue<$.length;ue++){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[ue]):null;if(Ae)return Ae}return null}_getLastTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=$.length-1;ue>=0;ue--){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[ue]):null;if(Ae)return Ae}return null}_createAnchor(){const E=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,E),E.classList.add("cdk-visually-hidden"),E.classList.add("cdk-focus-trap-anchor"),E.setAttribute("aria-hidden","true"),E}_toggleAnchorTabIndex(E,$){E?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(E){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}_executeOnStable(E){this._ngZone.isStable?E():this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(E)}}let Et=(()=>{class L{constructor($,ue,Ae){this._checker=$,this._ngZone=ue,this._document=Ae}create($,ue=!1){return new ot($,this._checker,this._ngZone,this._document,ue)}}return L.\u0275fac=function($){return new($||L)(s.LFG(le),s.LFG(s.R0b),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const Sn=new s.OlP("cdk-input-modality-detector-options"),cn={ignoreKeys:[_.zL,_.jx,_.b2,_.MW,_.JU]},qe=(0,ee.i$)({passive:!0,capture:!0});let x=(()=>{class L{constructor($,ue,Ae,wt){this._platform=$,this._mostRecentTarget=null,this._modality=new G.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Qt,gn;(null===(gn=null===(Qt=this._options)||void 0===Qt?void 0:Qt.ignoreKeys)||void 0===gn?void 0:gn.some(Vn=>Vn===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ee.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function Cn(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,ee.sA)(At))},this._onTouchstart=At=>{!function Dt(L){const E=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!E||-1!==E.identifier||null!=E.radiusX&&1!==E.radiusX||null!=E.radiusY&&1!==E.radiusY)}(At)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ee.sA)(At)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},cn),wt),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),$.isBrowser&&ue.runOutsideAngular(()=>{Ae.addEventListener("keydown",this._onKeydown,qe),Ae.addEventListener("mousedown",this._onMousedown,qe),Ae.addEventListener("touchstart",this._onTouchstart,qe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(Sn,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const He=new s.OlP("cdk-focus-monitor-default-options"),Ge=(0,ee.i$)({passive:!0,capture:!0});let Le=(()=>{class L{constructor($,ue,Ae,wt,At){this._ngZone=$,this._platform=ue,this._inputModalityDetector=Ae,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new oe.xQ,this._rootNodeFocusAndBlurListener=Qt=>{const gn=(0,ee.sA)(Qt),Vn="focus"===Qt.type?this._onFocus:this._onBlur;for(let An=gn;An;An=An.parentElement)Vn.call(this,Qt,An)},this._document=wt,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,ue=!1){const Ae=(0,B.fI)($);if(!this._platform.isBrowser||1!==Ae.nodeType)return(0,q.of)(null);const wt=(0,ee.kV)(Ae)||this._getDocument(),At=this._elementInfo.get(Ae);if(At)return ue&&(At.checkChildren=!0),At.subject;const Qt={checkChildren:ue,subject:new oe.xQ,rootNode:wt};return this._elementInfo.set(Ae,Qt),this._registerGlobalListeners(Qt),Qt.subject}stopMonitoring($){const ue=(0,B.fI)($),Ae=this._elementInfo.get(ue);Ae&&(Ae.subject.complete(),this._setClasses(ue),this._elementInfo.delete(ue),this._removeGlobalListeners(Ae))}focusVia($,ue,Ae){const wt=(0,B.fI)($);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([Qt,gn])=>this._originChanged(Qt,ue,gn)):(this._setOrigin(ue),"function"==typeof wt.focus&&wt.focus(Ae))}ngOnDestroy(){this._elementInfo.forEach(($,ue)=>this.stopMonitoring(ue))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,ue){$.classList.toggle("cdk-focused",!!ue),$.classList.toggle("cdk-touch-focused","touch"===ue),$.classList.toggle("cdk-keyboard-focused","keyboard"===ue),$.classList.toggle("cdk-mouse-focused","mouse"===ue),$.classList.toggle("cdk-program-focused","program"===ue)}_setOrigin($,ue=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&ue,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,ue){const Ae=this._elementInfo.get(ue),wt=(0,ee.sA)($);!Ae||!Ae.checkChildren&&ue!==wt||this._originChanged(ue,this._getFocusOrigin(wt),Ae)}_onBlur($,ue){const Ae=this._elementInfo.get(ue);!Ae||Ae.checkChildren&&$.relatedTarget instanceof Node&&ue.contains($.relatedTarget)||(this._setClasses(ue),this._emitOrigin(Ae.subject,null))}_emitOrigin($,ue){this._ngZone.run(()=>$.next(ue))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const ue=$.rootNode,Ae=this._rootNodeFocusListenerCount.get(ue)||0;Ae||this._ngZone.runOutsideAngular(()=>{ue.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(ue,Ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,H.R)(this._stopInputModalityDetector)).subscribe(wt=>{this._setOrigin(wt,!0)}))}_removeGlobalListeners($){const ue=$.rootNode;if(this._rootNodeFocusListenerCount.has(ue)){const Ae=this._rootNodeFocusListenerCount.get(ue);Ae>1?this._rootNodeFocusListenerCount.set(ue,Ae-1):(ue.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(ue))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,ue,Ae){this._setClasses($,ue),this._emitOrigin(Ae.subject,ue),this._lastFocusOrigin=ue}_getClosestElementsInfo($){const ue=[];return this._elementInfo.forEach((Ae,wt)=>{(wt===$||Ae.checkChildren&&wt.contains($))&&ue.push([wt,Ae])}),ue}}return L.\u0275fac=function($){return new($||L)(s.LFG(s.R0b),s.LFG(ee.t4),s.LFG(x),s.LFG(a.K0,8),s.LFG(He,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const V="cdk-high-contrast-black-on-white",Be="cdk-high-contrast-white-on-black",nt="cdk-high-contrast-active";let ce=(()=>{class L{constructor($,ue){this._platform=$,this._document=ue}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const ue=this._document.defaultView||window,Ae=ue&&ue.getComputedStyle?ue.getComputedStyle($):null,wt=(Ae&&Ae.backgroundColor||"").replace(/ /g,"");switch($.remove(),wt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(nt),$.remove(V),$.remove(Be),this._hasCheckedHighContrastMode=!0;const ue=this.getHighContrastMode();1===ue?($.add(nt),$.add(V)):2===ue&&($.add(nt),$.add(Be))}}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Ne=(()=>{class L{constructor($){$._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function($){return new($||L)(s.LFG(ce))},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[ee.ud,ye.Q8]]}),L})()},226:(yt,be,p)=>{p.d(be,{vT:()=>R,Is:()=>W});var a=p(5e3),s=p(9808);const G=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function oe(){return(0,a.f3M)(s.K0)}}),q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let W=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const Ye=ee.documentElement?ee.documentElement.dir:null;this.value=function _(H){const B=(null==H?void 0:H.toLowerCase())||"";return"auto"===B&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?q.test(navigator.language)?"rtl":"ltr":"rtl"===B?"rtl":"ltr"}((ee.body?ee.body.dir:null)||Ye||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(G,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=a.oAB({type:H}),H.\u0275inj=a.cJS({}),H})()},3191:(yt,be,p)=>{p.d(be,{t6:()=>oe,Eq:()=>q,Ig:()=>s,HM:()=>_,fI:()=>W,su:()=>G});var a=p(5e3);function s(R){return null!=R&&"false"!=`${R}`}function G(R,H=0){return oe(R)?Number(R):H}function oe(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function q(R){return Array.isArray(R)?R:[R]}function _(R){return null==R?"":"string"==typeof R?R:`${R}px`}function W(R){return R instanceof a.SBq?R.nativeElement:R}},1159:(yt,be,p)=>{p.d(be,{zL:()=>I,ZH:()=>s,jx:()=>W,JH:()=>zt,K5:()=>q,hY:()=>B,oh:()=>_e,b2:()=>se,MW:()=>Ge,SV:()=>Je,JU:()=>_,L_:()=>ee,Mf:()=>G,LH:()=>vt,Vb:()=>k});const s=8,G=9,q=13,_=16,W=17,I=18,B=27,ee=32,_e=37,vt=38,Je=39,zt=40,Ge=91,se=224;function k(Ee,...st){return st.length?st.some(Ct=>Ee[Ct]):Ee.altKey||Ee.shiftKey||Ee.ctrlKey||Ee.metaKey}},5113:(yt,be,p)=>{p.d(be,{Yg:()=>zt,u3:()=>Ie,xu:()=>Ye,vx:()=>_e});var a=p(5e3),s=p(3191),G=p(8929),oe=p(6053),q=p(1961),_=p(6498),W=p(2986),I=p(1307),R=p(13),H=p(4850),B=p(1059),ee=p(7625),ye=p(925);let Ye=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})();const Fe=new Set;let ze,_e=(()=>{class $e{constructor(Se){this._platform=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Je}matchMedia(Se){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt($e){if(!Fe.has($e))try{ze||(ze=document.createElement("style"),ze.setAttribute("type","text/css"),document.head.appendChild(ze)),ze.sheet&&(ze.sheet.insertRule(`@media ${$e} {body{ }}`,0),Fe.add($e))}catch(et){console.error(et)}}(Se),this._matchMedia(Se)}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(ye.t4))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function Je($e){return{matches:"all"===$e||""===$e,media:$e,addListener:()=>{},removeListener:()=>{}}}let zt=(()=>{class $e{constructor(Se,Xe){this._mediaMatcher=Se,this._zone=Xe,this._queries=new Map,this._destroySubject=new G.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Se){return ut((0,s.Eq)(Se)).some(J=>this._registerQuery(J).mql.matches)}observe(Se){const J=ut((0,s.Eq)(Se)).map(he=>this._registerQuery(he).observable);let fe=(0,oe.aj)(J);return fe=(0,q.z)(fe.pipe((0,W.q)(1)),fe.pipe((0,I.T)(1),(0,R.b)(0))),fe.pipe((0,H.U)(he=>{const te={matches:!1,breakpoints:{}};return he.forEach(({matches:le,query:ie})=>{te.matches=te.matches||le,te.breakpoints[ie]=le}),te}))}_registerQuery(Se){if(this._queries.has(Se))return this._queries.get(Se);const Xe=this._mediaMatcher.matchMedia(Se),fe={observable:new _.y(he=>{const te=le=>this._zone.run(()=>he.next(le));return Xe.addListener(te),()=>{Xe.removeListener(te)}}).pipe((0,B.O)(Xe),(0,H.U)(({matches:he})=>({query:Se,matches:he})),(0,ee.R)(this._destroySubject)),mql:Xe};return this._queries.set(Se,fe),fe}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(_e),a.LFG(a.R0b))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function ut($e){return $e.map(et=>et.split(",")).reduce((et,Se)=>et.concat(Se)).map(et=>et.trim())}const Ie={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(yt,be,p)=>{p.d(be,{Q8:()=>q});var a=p(5e3);let s=(()=>{class _{create(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}return _.\u0275fac=function(I){return new(I||_)},_.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=a.oAB({type:_}),_.\u0275inj=a.cJS({providers:[s]}),_})()},2845:(yt,be,p)=>{p.d(be,{pI:()=>Cn,xu:()=>_n,tR:()=>fe,aV:()=>vn,X_:()=>J,Vs:()=>Et,U8:()=>cn,Iu:()=>Ue});var a=p(3393),s=p(9808),G=p(5e3),oe=p(3191),q=p(925),_=p(226),W=p(7429),I=p(8929),R=p(2654),H=p(6787),B=p(3489);class ye{constructor(x,z){this.predicate=x,this.inclusive=z}call(x,z){return z.subscribe(new Ye(x,this.predicate,this.inclusive))}}class Ye extends B.L{constructor(x,z,P){super(x),this.predicate=z,this.inclusive=P,this.index=0}_next(x){const z=this.destination;let P;try{P=this.predicate(x,this.index++)}catch(pe){return void z.error(pe)}this.nextOrComplete(x,P)}nextOrComplete(x,z){const P=this.destination;Boolean(z)?P.next(x):(this.inclusive&&P.next(x),P.complete())}}var Fe=p(2986),ze=p(7625),_e=p(1159);const vt=(0,q.Mq)();class Je{constructor(x,z){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=z}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,oe.HM)(-this._previousScrollPosition.left),x.style.top=(0,oe.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,P=x.style,pe=this._document.body.style,j=P.scrollBehavior||"",me=pe.scrollBehavior||"";this._isEnabled=!1,P.left=this._previousHTMLStyles.left,P.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),vt&&(P.scrollBehavior=pe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vt&&(P.scrollBehavior=j,pe.scrollBehavior=me)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const z=this._document.body,P=this._viewportRuler.getViewportSize();return z.scrollHeight>P.height||z.scrollWidth>P.width}}class ut{constructor(x,z,P,pe){this._scrollDispatcher=x,this._ngZone=z,this._viewportRuler=P,this._config=pe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const z=this._viewportRuler.getViewportScrollPosition().top;Math.abs(z-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ie{enable(){}disable(){}attach(){}}function $e(qe,x){return x.some(z=>qe.bottomz.bottom||qe.rightz.right)}function et(qe,x){return x.some(z=>qe.topz.bottom||qe.leftz.right)}class Se{constructor(x,z,P,pe){this._scrollDispatcher=x,this._viewportRuler=z,this._ngZone=P,this._config=pe,this._scrollSubscription=null}attach(x){this._overlayRef=x}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const z=this._overlayRef.overlayElement.getBoundingClientRect(),{width:P,height:pe}=this._viewportRuler.getViewportSize();$e(z,[{width:P,height:pe,bottom:pe,right:P,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Xe=(()=>{class qe{constructor(z,P,pe,j){this._scrollDispatcher=z,this._viewportRuler=P,this._ngZone=pe,this.noop=()=>new Ie,this.close=me=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,me),this.block=()=>new Je(this._viewportRuler,this._document),this.reposition=me=>new Se(this._scrollDispatcher,this._viewportRuler,this._ngZone,me),this._document=j}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.mF),G.LFG(a.rL),G.LFG(G.R0b),G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})();class J{constructor(x){if(this.scrollStrategy=new Ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const z=Object.keys(x);for(const P of z)void 0!==x[P]&&(this[P]=x[P])}}}class fe{constructor(x,z,P,pe,j){this.offsetX=P,this.offsetY=pe,this.panelClass=j,this.originX=x.originX,this.originY=x.originY,this.overlayX=z.overlayX,this.overlayY=z.overlayY}}class te{constructor(x,z){this.connectionPair=x,this.scrollableViewProperties=z}}class Ue{constructor(x,z,P,pe,j,me,He,Ge,Le){this._portalOutlet=x,this._host=z,this._pane=P,this._config=pe,this._ngZone=j,this._keyboardDispatcher=me,this._document=He,this._location=Ge,this._outsideClickDispatcher=Le,this._backdropElement=null,this._backdropClick=new I.xQ,this._attachments=new I.xQ,this._detachments=new I.xQ,this._locationChanges=R.w.EMPTY,this._backdropClickHandler=Me=>this._backdropClick.next(Me),this._keydownEvents=new I.xQ,this._outsidePointerEvents=new I.xQ,pe.scrollStrategy&&(this._scrollStrategy=pe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=pe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let z=this._portalOutlet.attach(x);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Fe.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),z}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){var x;const z=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(x=this._host)||void 0===x||x.remove(),this._previousHostParent=this._pane=this._host=null,z&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,oe.HM)(this._config.width),x.height=(0,oe.HM)(this._config.height),x.minWidth=(0,oe.HM)(this._config.minWidth),x.minHeight=(0,oe.HM)(this._config.minHeight),x.maxWidth=(0,oe.HM)(this._config.maxWidth),x.maxHeight=(0,oe.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let z;const P=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",P),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(z)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",P)}),x.style.pointerEvents="none",z=this._ngZone.runOutsideAngular(()=>setTimeout(P,500))}_toggleClasses(x,z,P){const pe=(0,oe.Eq)(z||[]).filter(j=>!!j);pe.length&&(P?x.classList.add(...pe):x.classList.remove(...pe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,ze.R)((0,H.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.remove(),this._backdropElement===x&&(this._backdropElement=null))}}let je=(()=>{class qe{constructor(z,P){this._platform=P,this._document=z}ngOnDestroy(){var z;null===(z=this._containerElement)||void 0===z||z.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const z="cdk-overlay-container";if(this._platform.isBrowser||(0,q.Oy)()){const pe=this._document.querySelectorAll(`.${z}[platform="server"], .${z}[platform="test"]`);for(let j=0;j{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._originRect,z=this._overlayRect,P=this._viewportRect,pe=this._containerRect,j=[];let me;for(let He of this._preferredPositions){let Ge=this._getOriginPoint(x,pe,He),Le=this._getOverlayPoint(Ge,z,He),Me=this._getOverlayFit(Le,z,P,He);if(Me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(He,Ge);this._canFitWithFlexibleDimensions(Me,Le,P)?j.push({position:He,origin:Ge,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Ge,He)}):(!me||me.overlayFit.visibleAreaGe&&(Ge=Me,He=Le)}return this._isPushed=!1,void this._applyPosition(He.position,He.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(me.position,me.originPoint);this._applyPosition(me.position,me.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._lastPosition||this._preferredPositions[0],z=this._getOriginPoint(this._originRect,this._containerRect,x);this._applyPosition(x,z)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,z,P){let pe,j;if("center"==P.originX)pe=x.left+x.width/2;else{const me=this._isRtl()?x.right:x.left,He=this._isRtl()?x.left:x.right;pe="start"==P.originX?me:He}return z.left<0&&(pe-=z.left),j="center"==P.originY?x.top+x.height/2:"top"==P.originY?x.top:x.bottom,z.top<0&&(j-=z.top),{x:pe,y:j}}_getOverlayPoint(x,z,P){let pe,j;return pe="center"==P.overlayX?-z.width/2:"start"===P.overlayX?this._isRtl()?-z.width:0:this._isRtl()?0:-z.width,j="center"==P.overlayY?-z.height/2:"top"==P.overlayY?0:-z.height,{x:x.x+pe,y:x.y+j}}_getOverlayFit(x,z,P,pe){const j=dt(z);let{x:me,y:He}=x,Ge=this._getOffset(pe,"x"),Le=this._getOffset(pe,"y");Ge&&(me+=Ge),Le&&(He+=Le);let Be=0-He,nt=He+j.height-P.height,ce=this._subtractOverflows(j.width,0-me,me+j.width-P.width),Ne=this._subtractOverflows(j.height,Be,nt),L=ce*Ne;return{visibleArea:L,isCompletelyWithinViewport:j.width*j.height===L,fitsInViewportVertically:Ne===j.height,fitsInViewportHorizontally:ce==j.width}}_canFitWithFlexibleDimensions(x,z,P){if(this._hasFlexibleDimensions){const pe=P.bottom-z.y,j=P.right-z.x,me=Qe(this._overlayRef.getConfig().minHeight),He=Qe(this._overlayRef.getConfig().minWidth),Le=x.fitsInViewportHorizontally||null!=He&&He<=j;return(x.fitsInViewportVertically||null!=me&&me<=pe)&&Le}return!1}_pushOverlayOnScreen(x,z,P){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const pe=dt(z),j=this._viewportRect,me=Math.max(x.x+pe.width-j.width,0),He=Math.max(x.y+pe.height-j.height,0),Ge=Math.max(j.top-P.top-x.y,0),Le=Math.max(j.left-P.left-x.x,0);let Me=0,V=0;return Me=pe.width<=j.width?Le||-me:x.xce&&!this._isInitialRender&&!this._growAfterOpen&&(me=x.y-ce/2)}if("end"===z.overlayX&&!pe||"start"===z.overlayX&&pe)Be=P.width-x.x+this._viewportMargin,Me=x.x-this._viewportMargin;else if("start"===z.overlayX&&!pe||"end"===z.overlayX&&pe)V=x.x,Me=P.right-x.x;else{const nt=Math.min(P.right-x.x+P.left,x.x),ce=this._lastBoundingBoxSize.width;Me=2*nt,V=x.x-nt,Me>ce&&!this._isInitialRender&&!this._growAfterOpen&&(V=x.x-ce/2)}return{top:me,left:V,bottom:He,right:Be,width:Me,height:j}}_setBoundingBoxStyles(x,z){const P=this._calculateBoundingBoxRect(x,z);!this._isInitialRender&&!this._growAfterOpen&&(P.height=Math.min(P.height,this._lastBoundingBoxSize.height),P.width=Math.min(P.width,this._lastBoundingBoxSize.width));const pe={};if(this._hasExactPosition())pe.top=pe.left="0",pe.bottom=pe.right=pe.maxHeight=pe.maxWidth="",pe.width=pe.height="100%";else{const j=this._overlayRef.getConfig().maxHeight,me=this._overlayRef.getConfig().maxWidth;pe.height=(0,oe.HM)(P.height),pe.top=(0,oe.HM)(P.top),pe.bottom=(0,oe.HM)(P.bottom),pe.width=(0,oe.HM)(P.width),pe.left=(0,oe.HM)(P.left),pe.right=(0,oe.HM)(P.right),pe.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",pe.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",j&&(pe.maxHeight=(0,oe.HM)(j)),me&&(pe.maxWidth=(0,oe.HM)(me))}this._lastBoundingBoxSize=P,mt(this._boundingBox.style,pe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,z){const P={},pe=this._hasExactPosition(),j=this._hasFlexibleDimensions,me=this._overlayRef.getConfig();if(pe){const Me=this._viewportRuler.getViewportScrollPosition();mt(P,this._getExactOverlayY(z,x,Me)),mt(P,this._getExactOverlayX(z,x,Me))}else P.position="static";let He="",Ge=this._getOffset(z,"x"),Le=this._getOffset(z,"y");Ge&&(He+=`translateX(${Ge}px) `),Le&&(He+=`translateY(${Le}px)`),P.transform=He.trim(),me.maxHeight&&(pe?P.maxHeight=(0,oe.HM)(me.maxHeight):j&&(P.maxHeight="")),me.maxWidth&&(pe?P.maxWidth=(0,oe.HM)(me.maxWidth):j&&(P.maxWidth="")),mt(this._pane.style,P)}_getExactOverlayY(x,z,P){let pe={top:"",bottom:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),"bottom"===x.overlayY?pe.bottom=this._document.documentElement.clientHeight-(j.y+this._overlayRect.height)+"px":pe.top=(0,oe.HM)(j.y),pe}_getExactOverlayX(x,z,P){let me,pe={left:"",right:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),me=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===me?pe.right=this._document.documentElement.clientWidth-(j.x+this._overlayRect.width)+"px":pe.left=(0,oe.HM)(j.x),pe}_getScrollVisibility(){const x=this._getOriginRect(),z=this._pane.getBoundingClientRect(),P=this._scrollables.map(pe=>pe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(x,P),isOriginOutsideView:$e(x,P),isOverlayClipped:et(z,P),isOverlayOutsideView:$e(z,P)}}_subtractOverflows(x,...z){return z.reduce((P,pe)=>P-Math.max(pe,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,z=this._document.documentElement.clientHeight,P=this._viewportRuler.getViewportScrollPosition();return{top:P.top+this._viewportMargin,left:P.left+this._viewportMargin,right:P.left+x-this._viewportMargin,bottom:P.top+z-this._viewportMargin,width:x-2*this._viewportMargin,height:z-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,z){return"x"===z?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,oe.Eq)(x).forEach(z=>{""!==z&&-1===this._appliedPanelClasses.indexOf(z)&&(this._appliedPanelClasses.push(z),this._pane.classList.add(z))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof G.SBq)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const z=x.width||0,P=x.height||0;return{top:x.y,bottom:x.y+P,left:x.x,right:x.x+z,height:P,width:z}}}function mt(qe,x){for(let z in x)x.hasOwnProperty(z)&&(qe[z]=x[z]);return qe}function Qe(qe){if("number"!=typeof qe&&null!=qe){const[x,z]=qe.split(ke);return z&&"px"!==z?null:parseFloat(x)}return qe||null}function dt(qe){return{top:Math.floor(qe.top),right:Math.floor(qe.right),bottom:Math.floor(qe.bottom),left:Math.floor(qe.left),width:Math.floor(qe.width),height:Math.floor(qe.height)}}const _t="cdk-global-overlay-wrapper";class it{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const z=x.getConfig();this._overlayRef=x,this._width&&!z.width&&x.updateSize({width:this._width}),this._height&&!z.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(_t),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement.style,P=this._overlayRef.getConfig(),{width:pe,height:j,maxWidth:me,maxHeight:He}=P,Ge=!("100%"!==pe&&"100vw"!==pe||me&&"100%"!==me&&"100vw"!==me),Le=!("100%"!==j&&"100vh"!==j||He&&"100%"!==He&&"100vh"!==He);x.position=this._cssPosition,x.marginLeft=Ge?"0":this._leftOffset,x.marginTop=Le?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,Ge?z.justifyContent="flex-start":"center"===this._justifyContent?z.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?z.justifyContent="flex-end":"flex-end"===this._justifyContent&&(z.justifyContent="flex-start"):z.justifyContent=this._justifyContent,z.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement,P=z.style;z.classList.remove(_t),P.justifyContent=P.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class qe{constructor(z,P,pe,j){this._viewportRuler=z,this._document=P,this._platform=pe,this._overlayContainer=j}global(){return new it}flexibleConnectedTo(z){return new ve(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.rL),G.LFG(s.K0),G.LFG(q.t4),G.LFG(je))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ot=(()=>{class qe{constructor(z){this._attachedOverlays=[],this._document=z}ngOnDestroy(){this.detach()}add(z){this.remove(z),this._attachedOverlays.push(z)}remove(z){const P=this._attachedOverlays.indexOf(z);P>-1&&this._attachedOverlays.splice(P,1),0===this._attachedOverlays.length&&this.detach()}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Et=(()=>{class qe extends ot{constructor(z){super(z),this._keydownListener=P=>{const pe=this._attachedOverlays;for(let j=pe.length-1;j>-1;j--)if(pe[j]._keydownEvents.observers.length>0){pe[j]._keydownEvents.next(P);break}}}add(z){super.add(z),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Zt=(()=>{class qe extends ot{constructor(z,P){super(z),this._platform=P,this._cursorStyleIsSet=!1,this._pointerDownListener=pe=>{this._pointerDownEventTarget=(0,q.sA)(pe)},this._clickListener=pe=>{const j=(0,q.sA)(pe),me="click"===pe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:j;this._pointerDownEventTarget=null;const He=this._attachedOverlays.slice();for(let Ge=He.length-1;Ge>-1;Ge--){const Le=He[Ge];if(!(Le._outsidePointerEvents.observers.length<1)&&Le.hasAttached()){if(Le.overlayElement.contains(j)||Le.overlayElement.contains(me))break;Le._outsidePointerEvents.next(pe)}}}}add(z){if(super.add(z),!this._isAttached){const P=this._document.body;P.addEventListener("pointerdown",this._pointerDownListener,!0),P.addEventListener("click",this._clickListener,!0),P.addEventListener("auxclick",this._clickListener,!0),P.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=P.style.cursor,P.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const z=this._document.body;z.removeEventListener("pointerdown",this._pointerDownListener,!0),z.removeEventListener("click",this._clickListener,!0),z.removeEventListener("auxclick",this._clickListener,!0),z.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(z.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0),G.LFG(q.t4))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),mn=0,vn=(()=>{class qe{constructor(z,P,pe,j,me,He,Ge,Le,Me,V,Be){this.scrollStrategies=z,this._overlayContainer=P,this._componentFactoryResolver=pe,this._positionBuilder=j,this._keyboardDispatcher=me,this._injector=He,this._ngZone=Ge,this._document=Le,this._directionality=Me,this._location=V,this._outsideClickDispatcher=Be}create(z){const P=this._createHostElement(),pe=this._createPaneElement(P),j=this._createPortalOutlet(pe),me=new J(z);return me.direction=me.direction||this._directionality.value,new Ue(j,P,pe,me,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(z){const P=this._document.createElement("div");return P.id="cdk-overlay-"+mn++,P.classList.add("cdk-overlay-pane"),z.appendChild(P),P}_createHostElement(){const z=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(z),z}_createPortalOutlet(z){return this._appRef||(this._appRef=this._injector.get(G.z2F)),new W.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(Xe),G.LFG(je),G.LFG(G._Vd),G.LFG(St),G.LFG(Et),G.LFG(G.zs3),G.LFG(G.R0b),G.LFG(s.K0),G.LFG(_.Is),G.LFG(s.Ye),G.LFG(Zt))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Ut=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],un=new G.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class qe{constructor(z){this.elementRef=z}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(G.SBq))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),qe})(),Cn=(()=>{class qe{constructor(z,P,pe,j,me){this._overlay=z,this._dir=me,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w.EMPTY,this._attachSubscription=R.w.EMPTY,this._detachSubscription=R.w.EMPTY,this._positionSubscription=R.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new G.vpe,this.positionChange=new G.vpe,this.attach=new G.vpe,this.detach=new G.vpe,this.overlayKeydown=new G.vpe,this.overlayOutsideClick=new G.vpe,this._templatePortal=new W.UE(P,pe),this._scrollStrategyFactory=j,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(z){this._offsetX=z,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(z){this._offsetY=z,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,oe.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,oe.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,oe.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,oe.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,oe.Ig)(z)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(z){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),z.origin&&this.open&&this._position.apply()),z.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ut);const z=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=z.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=z.detachments().subscribe(()=>this.detach.emit()),z.keydownEvents().subscribe(P=>{this.overlayKeydown.next(P),P.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(P)&&(P.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(P=>{this.overlayOutsideClick.next(P)})}_buildConfig(){const z=this._position=this.positionStrategy||this._createPositionStrategy(),P=new J({direction:this._dir,positionStrategy:z,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(P.width=this.width),(this.height||0===this.height)&&(P.height=this.height),(this.minWidth||0===this.minWidth)&&(P.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(P.minHeight=this.minHeight),this.backdropClass&&(P.backdropClass=this.backdropClass),this.panelClass&&(P.panelClass=this.panelClass),P}_updatePositionStrategy(z){const P=this.positions.map(pe=>({originX:pe.originX,originY:pe.originY,overlayX:pe.overlayX,overlayY:pe.overlayY,offsetX:pe.offsetX||this.offsetX,offsetY:pe.offsetY||this.offsetY,panelClass:pe.panelClass||void 0}));return z.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(P).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const z=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(z),z}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _n?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(z=>{this.backdropClick.emit(z)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ee(qe,x=!1){return z=>z.lift(new ye(qe,x))}(()=>this.positionChange.observers.length>0)).subscribe(z=>{this.positionChange.emit(z),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(vn),G.Y36(G.Rgc),G.Y36(G.s_b),G.Y36(un),G.Y36(_.Is,8))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[G.TTD]}),qe})();const Sn={provide:un,deps:[vn],useFactory:function Dt(qe){return()=>qe.scrollStrategies.reposition()}};let cn=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275mod=G.oAB({type:qe}),qe.\u0275inj=G.cJS({providers:[vn,Sn],imports:[[_.vT,W.eL,a.Cl],a.Cl]}),qe})()},925:(yt,be,p)=>{p.d(be,{t4:()=>oe,ud:()=>q,sA:()=>zt,kV:()=>vt,Oy:()=>ut,_i:()=>Fe,i$:()=>B,Mq:()=>Ye});var a=p(5e3),s=p(9808);let G;try{G="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ie){G=!1}let R,ee,ye,ze,oe=(()=>{class Ie{constructor(et){this._platformId=et,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!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&&!G)&&"undefined"!=typeof CSS&&!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}}return Ie.\u0275fac=function(et){return new(et||Ie)(a.LFG(a.Lbi))},Ie.\u0275prov=a.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),q=(()=>{class Ie{}return Ie.\u0275fac=function(et){return new(et||Ie)},Ie.\u0275mod=a.oAB({type:Ie}),Ie.\u0275inj=a.cJS({}),Ie})();function B(Ie){return function H(){if(null==R&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?Ie:!!Ie.capture}function Ye(){if(null==ye){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ye=!1,ye;if("scrollBehavior"in document.documentElement.style)ye=!0;else{const Ie=Element.prototype.scrollTo;ye=!!Ie&&!/\{\s*\[native code\]\s*\}/.test(Ie.toString())}}return ye}function Fe(){if("object"!=typeof document||!document)return 0;if(null==ee){const Ie=document.createElement("div"),$e=Ie.style;Ie.dir="rtl",$e.width="1px",$e.overflow="auto",$e.visibility="hidden",$e.pointerEvents="none",$e.position="absolute";const et=document.createElement("div"),Se=et.style;Se.width="2px",Se.height="1px",Ie.appendChild(et),document.body.appendChild(Ie),ee=0,0===Ie.scrollLeft&&(Ie.scrollLeft=1,ee=0===Ie.scrollLeft?1:2),Ie.remove()}return ee}function vt(Ie){if(function _e(){if(null==ze){const Ie="undefined"!=typeof document?document.head:null;ze=!(!Ie||!Ie.createShadowRoot&&!Ie.attachShadow)}return ze}()){const $e=Ie.getRootNode?Ie.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&$e instanceof ShadowRoot)return $e}return null}function zt(Ie){return Ie.composedPath?Ie.composedPath()[0]:Ie.target}function ut(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(yt,be,p)=>{p.d(be,{en:()=>ye,Pl:()=>Je,C5:()=>H,u0:()=>Fe,eL:()=>ut,UE:()=>B});var a=p(5e3),s=p(9808);class R{attach(et){return this._attachedHost=et,et.attach(this)}detach(){let et=this._attachedHost;null!=et&&(this._attachedHost=null,et.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class H extends R{constructor(et,Se,Xe,J){super(),this.component=et,this.viewContainerRef=Se,this.injector=Xe,this.componentFactoryResolver=J}}class B extends R{constructor(et,Se,Xe){super(),this.templateRef=et,this.viewContainerRef=Se,this.context=Xe}get origin(){return this.templateRef.elementRef}attach(et,Se=this.context){return this.context=Se,super.attach(et)}detach(){return this.context=void 0,super.detach()}}class ee extends R{constructor(et){super(),this.element=et instanceof a.SBq?et.nativeElement:et}}class ye{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(et){return et instanceof H?(this._attachedPortal=et,this.attachComponentPortal(et)):et instanceof B?(this._attachedPortal=et,this.attachTemplatePortal(et)):this.attachDomPortal&&et instanceof ee?(this._attachedPortal=et,this.attachDomPortal(et)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(et){this._disposeFn=et}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fe extends ye{constructor(et,Se,Xe,J,fe){super(),this.outletElement=et,this._componentFactoryResolver=Se,this._appRef=Xe,this._defaultInjector=J,this.attachDomPortal=he=>{const te=he.element,le=this._document.createComment("dom-portal");te.parentNode.insertBefore(le,te),this.outletElement.appendChild(te),this._attachedPortal=he,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(te,le)})},this._document=fe}attachComponentPortal(et){const Xe=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component);let J;return et.viewContainerRef?(J=et.viewContainerRef.createComponent(Xe,et.viewContainerRef.length,et.injector||et.viewContainerRef.injector),this.setDisposeFn(()=>J.destroy())):(J=Xe.create(et.injector||this._defaultInjector),this._appRef.attachView(J.hostView),this.setDisposeFn(()=>{this._appRef.detachView(J.hostView),J.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(J)),this._attachedPortal=et,J}attachTemplatePortal(et){let Se=et.viewContainerRef,Xe=Se.createEmbeddedView(et.templateRef,et.context);return Xe.rootNodes.forEach(J=>this.outletElement.appendChild(J)),Xe.detectChanges(),this.setDisposeFn(()=>{let J=Se.indexOf(Xe);-1!==J&&Se.remove(J)}),this._attachedPortal=et,Xe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}let Je=(()=>{class $e extends ye{constructor(Se,Xe,J){super(),this._componentFactoryResolver=Se,this._viewContainerRef=Xe,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=fe=>{const he=fe.element,te=this._document.createComment("dom-portal");fe.setAttachedHost(this),he.parentNode.insertBefore(te,he),this._getRootNode().appendChild(he),this._attachedPortal=fe,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(he,te)})},this._document=J}get portal(){return this._attachedPortal}set portal(Se){this.hasAttached()&&!Se&&!this._isInitialized||(this.hasAttached()&&super.detach(),Se&&super.attach(Se),this._attachedPortal=Se||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Se){Se.setAttachedHost(this);const Xe=null!=Se.viewContainerRef?Se.viewContainerRef:this._viewContainerRef,fe=(Se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Se.component),he=Xe.createComponent(fe,Xe.length,Se.injector||Xe.injector);return Xe!==this._viewContainerRef&&this._getRootNode().appendChild(he.hostView.rootNodes[0]),super.setDisposeFn(()=>he.destroy()),this._attachedPortal=Se,this._attachedRef=he,this.attached.emit(he),he}attachTemplatePortal(Se){Se.setAttachedHost(this);const Xe=this._viewContainerRef.createEmbeddedView(Se.templateRef,Se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Se,this._attachedRef=Xe,this.attached.emit(Xe),Xe}_getRootNode(){const Se=this._viewContainerRef.element.nativeElement;return Se.nodeType===Se.ELEMENT_NODE?Se:Se.parentNode}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(s.K0))},$e.\u0275dir=a.lG2({type:$e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),$e})(),ut=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})()},3393:(yt,be,p)=>{p.d(be,{xd:()=>Dt,x0:()=>me,N7:()=>pe,mF:()=>cn,Cl:()=>Ge,rL:()=>x});var a=p(3191),s=p(5e3),G=p(6686),q=p(2268);const W=new class _ extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=requestAnimationFrame(()=>Me.flush(null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(cancelAnimationFrame(V),Me.scheduled=void 0)}});let R=1;const H=Promise.resolve(),B={};function ee(Le){return Le in B&&(delete B[Le],!0)}const ye={setImmediate(Le){const Me=R++;return B[Me]=!0,H.then(()=>ee(Me)&&Le()),Me},clearImmediate(Le){ee(Le)}},_e=new class ze extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=ye.setImmediate(Me.flush.bind(Me,null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(ye.clearImmediate(V),Me.scheduled=void 0)}});var Je=p(6498);function zt(Le){return!!Le&&(Le instanceof Je.y||"function"==typeof Le.lift&&"function"==typeof Le.subscribe)}var ut=p(8929),Ie=p(1086),$e=p(3753),et=p(2654),Se=p(3489);class J{call(Me,V){return V.subscribe(new fe(Me))}}class fe extends Se.L{constructor(Me){super(Me),this.hasPrev=!1}_next(Me){let V;this.hasPrev?V=[this.prev,Me]:this.hasPrev=!0,this.prev=Me,V&&this.destination.next(V)}}var he=p(5778),te=p(7138),le=p(2198),ie=p(7625),Ue=p(1059),je=p(7545),tt=p(5154),ke=p(9808),ve=p(925),mt=p(226);class _t extends class Qe{}{constructor(Me){super(),this._data=Me}connect(){return zt(this._data)?this._data:(0,Ie.of)(this._data)}disconnect(){}}class St{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Me,V,Be,nt,ce){Me.forEachOperation((Ne,L,E)=>{let $,ue;null==Ne.previousIndex?($=this._insertView(()=>Be(Ne,L,E),E,V,nt(Ne)),ue=$?1:0):null==E?(this._detachAndCacheView(L,V),ue=3):($=this._moveView(L,E,V,nt(Ne)),ue=2),ce&&ce({context:null==$?void 0:$.context,operation:ue,record:Ne})})}detach(){for(const Me of this._viewCache)Me.destroy();this._viewCache=[]}_insertView(Me,V,Be,nt){const ce=this._insertViewFromCache(V,Be);if(ce)return void(ce.context.$implicit=nt);const Ne=Me();return Be.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index)}_detachAndCacheView(Me,V){const Be=V.detach(Me);this._maybeCacheView(Be,V)}_moveView(Me,V,Be,nt){const ce=Be.get(Me);return Be.move(ce,V),ce.context.$implicit=nt,ce}_maybeCacheView(Me,V){if(this._viewCache.length0?ce/this._itemSize:0;if(V.end>nt){const E=Math.ceil(Be/this._itemSize),$=Math.max(0,Math.min(Ne,nt-E));Ne!=$&&(Ne=$,ce=$*this._itemSize,V.start=Math.floor(Ne)),V.end=Math.max(0,Math.min(nt,V.start+E))}const L=ce-V.start*this._itemSize;if(L0&&(V.end=Math.min(nt,V.end+$),V.start=Math.max(0,Math.floor(Ne-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(V),this._viewport.setRenderedContentOffset(this._itemSize*V.start),this._scrolledIndexChange.next(Math.floor(Ne))}}function Cn(Le){return Le._scrollStrategy}let Dt=(()=>{class Le{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _n(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(V){this._itemSize=(0,a.su)(V)}get minBufferPx(){return this._minBufferPx}set minBufferPx(V){this._minBufferPx=(0,a.su)(V)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(V){this._maxBufferPx=(0,a.su)(V)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:un,useFactory:Cn,deps:[(0,s.Gpc)(()=>Le)]}]),s.TTD]}),Le})(),cn=(()=>{class Le{constructor(V,Be,nt){this._ngZone=V,this._platform=Be,this._scrolled=new ut.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nt}register(V){this.scrollContainers.has(V)||this.scrollContainers.set(V,V.elementScrolled().subscribe(()=>this._scrolled.next(V)))}deregister(V){const Be=this.scrollContainers.get(V);Be&&(Be.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new Je.y(Be=>{this._globalSubscription||this._addGlobalListener();const nt=V>0?this._scrolled.pipe((0,te.e)(V)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ie.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(V,Be){const nt=this.getAncestorScrollContainers(V);return this.scrolled(Be).pipe((0,le.h)(ce=>!ce||nt.indexOf(ce)>-1))}getAncestorScrollContainers(V){const Be=[];return this.scrollContainers.forEach((nt,ce)=>{this._scrollableContainsElement(ce,V)&&Be.push(ce)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,Be){let nt=(0,a.fI)(Be),ce=V.getElementRef().nativeElement;do{if(nt==ce)return!0}while(nt=nt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,$e.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(s.R0b),s.LFG(ve.t4),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})(),Mn=(()=>{class Le{constructor(V,Be,nt,ce){this.elementRef=V,this.scrollDispatcher=Be,this.ngZone=nt,this.dir=ce,this._destroyed=new ut.xQ,this._elementScrolled=new Je.y(Ne=>this.ngZone.runOutsideAngular(()=>(0,$e.R)(this.elementRef.nativeElement,"scroll").pipe((0,ie.R)(this._destroyed)).subscribe(Ne)))}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(V){const Be=this.elementRef.nativeElement,nt=this.dir&&"rtl"==this.dir.value;null==V.left&&(V.left=nt?V.end:V.start),null==V.right&&(V.right=nt?V.start:V.end),null!=V.bottom&&(V.top=Be.scrollHeight-Be.clientHeight-V.bottom),nt&&0!=(0,ve._i)()?(null!=V.left&&(V.right=Be.scrollWidth-Be.clientWidth-V.left),2==(0,ve._i)()?V.left=V.right:1==(0,ve._i)()&&(V.left=V.right?-V.right:V.right)):null!=V.right&&(V.left=Be.scrollWidth-Be.clientWidth-V.right),this._applyScrollToOptions(V)}_applyScrollToOptions(V){const Be=this.elementRef.nativeElement;(0,ve.Mq)()?Be.scrollTo(V):(null!=V.top&&(Be.scrollTop=V.top),null!=V.left&&(Be.scrollLeft=V.left))}measureScrollOffset(V){const Be="left",ce=this.elementRef.nativeElement;if("top"==V)return ce.scrollTop;if("bottom"==V)return ce.scrollHeight-ce.clientHeight-ce.scrollTop;const Ne=this.dir&&"rtl"==this.dir.value;return"start"==V?V=Ne?"right":Be:"end"==V&&(V=Ne?Be:"right"),Ne&&2==(0,ve._i)()?V==Be?ce.scrollWidth-ce.clientWidth-ce.scrollLeft:ce.scrollLeft:Ne&&1==(0,ve._i)()?V==Be?ce.scrollLeft+ce.scrollWidth-ce.clientWidth:-ce.scrollLeft:V==Be?ce.scrollLeft:ce.scrollWidth-ce.clientWidth-ce.scrollLeft}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(cn),s.Y36(s.R0b),s.Y36(mt.Is,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Le})(),x=(()=>{class Le{constructor(V,Be,nt){this._platform=V,this._change=new ut.xQ,this._changeListener=ce=>{this._change.next(ce)},this._document=nt,Be.runOutsideAngular(()=>{if(V.isBrowser){const ce=this._getWindow();ce.addEventListener("resize",this._changeListener),ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const V=this._getWindow();V.removeEventListener("resize",this._changeListener),V.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const V={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),V}getViewportRect(){const V=this.getViewportScrollPosition(),{width:Be,height:nt}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+nt,right:V.left+Be,height:nt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,Be=this._getWindow(),nt=V.documentElement,ce=nt.getBoundingClientRect();return{top:-ce.top||V.body.scrollTop||Be.scrollY||nt.scrollTop||0,left:-ce.left||V.body.scrollLeft||Be.scrollX||nt.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,te.e)(V)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const V=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:V.innerWidth,height:V.innerHeight}:{width:0,height:0}}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(ve.t4),s.LFG(s.R0b),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const P="undefined"!=typeof requestAnimationFrame?W:_e;let pe=(()=>{class Le extends Mn{constructor(V,Be,nt,ce,Ne,L,E){super(V,L,nt,Ne),this.elementRef=V,this._changeDetectorRef=Be,this._scrollStrategy=ce,this._detachedSubject=new ut.xQ,this._renderedRangeSubject=new ut.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Je.y($=>this._scrollStrategy.scrolledIndexChange.subscribe(ue=>Promise.resolve().then(()=>this.ngZone.run(()=>$.next(ue))))),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=et.w.EMPTY,this._viewportChanges=E.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(V){this._orientation!==V&&(this._orientation=V,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(V){this._appendOnly=(0,a.Ig)(V)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,Ue.O)(null),(0,te.e)(0,P)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(V){this.ngZone.runOutsideAngular(()=>{this._forOf=V,this._forOf.dataStream.pipe((0,ie.R)(this._detachedSubject)).subscribe(Be=>{const nt=Be.length;nt!==this._dataLength&&(this._dataLength=nt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(V){this._totalContentSize!==V&&(this._totalContentSize=V,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(V){(function z(Le,Me){return Le.start==Me.start&&Le.end==Me.end})(this._renderedRange,V)||(this.appendOnly&&(V={start:0,end:Math.max(this._renderedRange.end,V.end)}),this._renderedRangeSubject.next(this._renderedRange=V),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(V,Be="to-start"){const ce="horizontal"==this.orientation,Ne=ce?"X":"Y";let E=`translate${Ne}(${Number((ce&&this.dir&&"rtl"==this.dir.value?-1:1)*V)}px)`;this._renderedContentOffset=V,"to-end"===Be&&(E+=` translate${Ne}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=E&&(this._renderedContentTransform=E,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(V,Be="auto"){const nt={behavior:Be};"horizontal"===this.orientation?nt.start=V:nt.top=V,this.scrollTo(nt)}scrollToIndex(V,Be="auto"){this._scrollStrategy.scrollToIndex(V,Be)}measureScrollOffset(V){return super.measureScrollOffset(V||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const V=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?V.offsetWidth:V.offsetHeight}measureRangeSize(V){return this._forOf?this._forOf.measureRangeSize(V,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const V=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?V.clientWidth:V.clientHeight}_markChangeDetectionNeeded(V){V&&this._runAfterChangeDetection.push(V),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const V=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Be of V)Be()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(un,8),s.Y36(mt.Is,8),s.Y36(cn),s.Y36(x))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(V,Be){if(1&V&&s.Gf(vn,7),2&V){let nt;s.iGM(nt=s.CRH())&&(Be._contentWrapper=nt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(V,Be){2&V&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Be.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Be.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:Mn,useExisting:Le}]),s.qOj],ngContentSelectors:Ut,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(V,Be){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&V&&(s.xp6(3),s.Udp("width",Be._totalContentWidth)("height",Be._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Le})();function j(Le,Me,V){if(!V.getBoundingClientRect)return 0;const nt=V.getBoundingClientRect();return"horizontal"===Le?"start"===Me?nt.left:nt.right:"start"===Me?nt.top:nt.bottom}let me=(()=>{class Le{constructor(V,Be,nt,ce,Ne,L){this._viewContainerRef=V,this._template=Be,this._differs=nt,this._viewRepeater=ce,this._viewport=Ne,this.viewChange=new ut.xQ,this._dataSourceChanges=new ut.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Ue.O)(null),function Xe(){return Le=>Le.lift(new J)}(),(0,je.w)(([E,$])=>this._changeDataSource(E,$)),(0,tt.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ut.xQ,this.dataStream.subscribe(E=>{this._data=E,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ie.R)(this._destroyed)).subscribe(E=>{this._renderedRange=E,L.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(V){this._cdkVirtualForOf=V,function dt(Le){return Le&&"function"==typeof Le.connect}(V)?this._dataSourceChanges.next(V):this._dataSourceChanges.next(new _t(zt(V)?V:Array.from(V||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(V){this._needsUpdate=!0,this._cdkVirtualForTrackBy=V?(Be,nt)=>V(Be+(this._renderedRange?this._renderedRange.start:0),nt):void 0}set cdkVirtualForTemplate(V){V&&(this._needsUpdate=!0,this._template=V)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(V){this._viewRepeater.viewCacheSize=(0,a.su)(V)}measureRangeSize(V,Be){if(V.start>=V.end)return 0;const nt=V.start-this._renderedRange.start,ce=V.end-V.start;let Ne,L;for(let E=0;E-1;E--){const $=this._viewContainerRef.get(E+nt);if($&&$.rootNodes.length){L=$.rootNodes[$.rootNodes.length-1];break}}return Ne&&L?j(Be,"end",L)-j(Be,"start",Ne):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const V=this._differ.diff(this._renderedItems);V?this._applyChanges(V):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((V,Be)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(V,Be):Be)),this._needsUpdate=!0)}_changeDataSource(V,Be){return V&&V.disconnect(this),this._needsUpdate=!0,Be?Be.connect(this):(0,Ie.of)()}_updateContext(){const V=this._data.length;let Be=this._viewContainerRef.length;for(;Be--;){const nt=this._viewContainerRef.get(Be);nt.context.index=this._renderedRange.start+Be,nt.context.count=V,this._updateComputedContextProperties(nt.context),nt.detectChanges()}}_applyChanges(V){this._viewRepeater.applyChanges(V,this._viewContainerRef,(ce,Ne,L)=>this._getEmbeddedViewArgs(ce,L),ce=>ce.item),V.forEachIdentityChange(ce=>{this._viewContainerRef.get(ce.currentIndex).context.$implicit=ce.item});const Be=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const ce=this._viewContainerRef.get(nt);ce.context.index=this._renderedRange.start+nt,ce.context.count=Be,this._updateComputedContextProperties(ce.context)}}_updateComputedContextProperties(V){V.first=0===V.index,V.last=V.index===V.count-1,V.even=V.index%2==0,V.odd=!V.even}_getEmbeddedViewArgs(V,Be){return{templateRef:this._template,context:{$implicit:V.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Be}}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(mn),s.Y36(pe,4),s.Y36(s.R0b))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:mn,useClass:St}])]}),Le})(),He=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({}),Le})(),Ge=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[[mt.vT,ve.ud,He],mt.vT,He]}),Le})()},9808:(yt,be,p)=>{p.d(be,{mr:()=>Je,Ov:()=>vo,ez:()=>Vo,K0:()=>W,uU:()=>Ii,JJ:()=>qo,Do:()=>ut,V_:()=>H,Ye:()=>Ie,S$:()=>_e,mk:()=>$n,sg:()=>qn,O5:()=>k,PC:()=>bi,RF:()=>Ot,n9:()=>Vt,ED:()=>hn,tP:()=>io,wE:()=>ie,b0:()=>zt,lw:()=>I,EM:()=>Qi,JF:()=>Wn,dv:()=>ot,NF:()=>hi,qS:()=>Lt,w_:()=>_,bD:()=>Lo,q:()=>G,Mx:()=>Un,HT:()=>q});var a=p(5e3);let s=null;function G(){return s}function q(b){s||(s=b)}class _{}const W=new a.OlP("DocumentToken");let I=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function R(){return(0,a.LFG)(B)}()},providedIn:"platform"}),b})();const H=new a.OlP("Location Initialized");let B=(()=>{class b extends I{constructor(w){super(),this._doc=w,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",w,!1),()=>Q.removeEventListener("popstate",w)}onHashChange(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",w,!1),()=>Q.removeEventListener("hashchange",w)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(w){this.location.pathname=w}pushState(w,Q,xe){ee()?this._history.pushState(w,Q,xe):this.location.hash=xe}replaceState(w,Q,xe){ee()?this._history.replaceState(w,Q,xe):this.location.hash=xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(w=0){this._history.go(w)}getState(){return this._history.state}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(W))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function ye(){return new B((0,a.LFG)(W))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function Ye(b,Y){if(0==b.length)return Y;if(0==Y.length)return b;let w=0;return b.endsWith("/")&&w++,Y.startsWith("/")&&w++,2==w?b+Y.substring(1):1==w?b+Y:b+"/"+Y}function Fe(b){const Y=b.match(/#|\?|$/),w=Y&&Y.index||b.length;return b.slice(0,w-("/"===b[w-1]?1:0))+b.slice(w)}function ze(b){return b&&"?"!==b[0]?"?"+b:b}let _e=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function vt(b){const Y=(0,a.LFG)(W).location;return new zt((0,a.LFG)(I),Y&&Y.origin||"")}()},providedIn:"root"}),b})();const Je=new a.OlP("appBaseHref");let zt=(()=>{class b extends _e{constructor(w,Q){if(super(),this._platformLocation=w,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}prepareExternalUrl(w){return Ye(this._baseHref,w)}path(w=!1){const Q=this._platformLocation.pathname+ze(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&w?`${Q}${xe}`:Q}pushState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ut=(()=>{class b extends _e{constructor(w,Q){super(),this._platformLocation=w,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}path(w=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(w){const Q=Ye(this._baseHref,w);return Q.length>0?"#"+Q:Q}pushState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),Ie=(()=>{class b{constructor(w,Q){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=w;const xe=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Fe(Se(xe)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(w=!1){return this.normalize(this._platformStrategy.path(w))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(w,Q=""){return this.path()==this.normalize(w+ze(Q))}normalize(w){return b.stripTrailingSlash(function et(b,Y){return b&&Y.startsWith(b)?Y.substring(b.length):Y}(this._baseHref,Se(w)))}prepareExternalUrl(w){return w&&"/"!==w[0]&&(w="/"+w),this._platformStrategy.prepareExternalUrl(w)}go(w,Q="",xe=null){this._platformStrategy.pushState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}replaceState(w,Q="",xe=null){this._platformStrategy.replaceState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformStrategy).historyGo)||void 0===xe||xe.call(Q,w)}onUrlChange(w){this._urlChangeListeners.push(w),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(w="",Q){this._urlChangeListeners.forEach(xe=>xe(w,Q))}subscribe(w,Q,xe){return this._subject.subscribe({next:w,error:Q,complete:xe})}}return b.normalizeQueryParams=ze,b.joinWithSlash=Ye,b.stripTrailingSlash=Fe,b.\u0275fac=function(w){return new(w||b)(a.LFG(_e),a.LFG(I))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function $e(){return new Ie((0,a.LFG)(_e),(0,a.LFG)(I))}()},providedIn:"root"}),b})();function Se(b){return b.replace(/\/index.html$/,"")}var J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Percent=1]="Percent",J[J.Currency=2]="Currency",J[J.Scientific=3]="Scientific",J))(),fe=(()=>((fe=fe||{})[fe.Zero=0]="Zero",fe[fe.One=1]="One",fe[fe.Two=2]="Two",fe[fe.Few=3]="Few",fe[fe.Many=4]="Many",fe[fe.Other=5]="Other",fe))(),he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),te=(()=>((te=te||{})[te.Narrow=0]="Narrow",te[te.Abbreviated=1]="Abbreviated",te[te.Wide=2]="Wide",te[te.Short=3]="Short",te))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))();function _t(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateFormat],Y)}function it(b,Y){return cn((0,a.cg1)(b)[a.wAp.TimeFormat],Y)}function St(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateTimeFormat],Y)}function ot(b,Y){const w=(0,a.cg1)(b),Q=w[a.wAp.NumberSymbols][Y];if(void 0===Q){if(Y===ie.CurrencyDecimal)return w[a.wAp.NumberSymbols][ie.Decimal];if(Y===ie.CurrencyGroup)return w[a.wAp.NumberSymbols][ie.Group]}return Q}const un=a.kL8;function _n(b){if(!b[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cn(b,Y){for(let w=Y;w>-1;w--)if(void 0!==b[w])return b[w];throw new Error("Locale data API: locale data undefined")}function Mn(b){const[Y,w]=b.split(":");return{hours:+Y,minutes:+w}}const P=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pe={},j=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var me=(()=>((me=me||{})[me.Short=0]="Short",me[me.ShortGMT=1]="ShortGMT",me[me.Long=2]="Long",me[me.Extended=3]="Extended",me))(),He=(()=>((He=He||{})[He.FullYear=0]="FullYear",He[He.Month=1]="Month",He[He.Date=2]="Date",He[He.Hours=3]="Hours",He[He.Minutes=4]="Minutes",He[He.Seconds=5]="Seconds",He[He.FractionalSeconds=6]="FractionalSeconds",He[He.Day=7]="Day",He))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Le(b,Y,w,Q){let xe=function we(b){if(Ve(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[xe,ct=1,Mt=1]=b.split("-").map(kt=>+kt);return Me(xe,ct-1,Mt)}const w=parseFloat(b);if(!isNaN(b-w))return new Date(w);let Q;if(Q=b.match(P))return function ae(b){const Y=new Date(0);let w=0,Q=0;const xe=b[8]?Y.setUTCFullYear:Y.setFullYear,ct=b[8]?Y.setUTCHours:Y.setHours;b[9]&&(w=Number(b[9]+b[10]),Q=Number(b[9]+b[11])),xe.call(Y,Number(b[1]),Number(b[2])-1,Number(b[3]));const Mt=Number(b[4]||0)-w,kt=Number(b[5]||0)-Q,Fn=Number(b[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return ct.call(Y,Mt,kt,Fn,Tn),Y}(Q)}const Y=new Date(b);if(!Ve(Y))throw new Error(`Unable to convert "${b}" into a date`);return Y}(b);Y=V(w,Y)||Y;let kt,Mt=[];for(;Y;){if(kt=j.exec(Y),!kt){Mt.push(Y);break}{Mt=Mt.concat(kt.slice(1));const Dn=Mt.pop();if(!Dn)break;Y=Dn}}let Fn=xe.getTimezoneOffset();Q&&(Fn=jn(Q,Fn),xe=function Re(b,Y,w){const Q=w?-1:1,xe=b.getTimezoneOffset();return function qt(b,Y){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+Y),b}(b,Q*(jn(Y,xe)-xe))}(xe,Q,!0));let Tn="";return Mt.forEach(Dn=>{const dn=function ri(b){if(An[b])return An[b];let Y;switch(b){case"G":case"GG":case"GGG":Y=E(Ge.Eras,te.Abbreviated);break;case"GGGG":Y=E(Ge.Eras,te.Wide);break;case"GGGGG":Y=E(Ge.Eras,te.Narrow);break;case"y":Y=Ne(He.FullYear,1,0,!1,!0);break;case"yy":Y=Ne(He.FullYear,2,0,!0,!0);break;case"yyy":Y=Ne(He.FullYear,3,0,!1,!0);break;case"yyyy":Y=Ne(He.FullYear,4,0,!1,!0);break;case"Y":Y=Vn(1);break;case"YY":Y=Vn(2,!0);break;case"YYY":Y=Vn(3);break;case"YYYY":Y=Vn(4);break;case"M":case"L":Y=Ne(He.Month,1,1);break;case"MM":case"LL":Y=Ne(He.Month,2,1);break;case"MMM":Y=E(Ge.Months,te.Abbreviated);break;case"MMMM":Y=E(Ge.Months,te.Wide);break;case"MMMMM":Y=E(Ge.Months,te.Narrow);break;case"LLL":Y=E(Ge.Months,te.Abbreviated,he.Standalone);break;case"LLLL":Y=E(Ge.Months,te.Wide,he.Standalone);break;case"LLLLL":Y=E(Ge.Months,te.Narrow,he.Standalone);break;case"w":Y=gn(1);break;case"ww":Y=gn(2);break;case"W":Y=gn(1,!0);break;case"d":Y=Ne(He.Date,1);break;case"dd":Y=Ne(He.Date,2);break;case"c":case"cc":Y=Ne(He.Day,1);break;case"ccc":Y=E(Ge.Days,te.Abbreviated,he.Standalone);break;case"cccc":Y=E(Ge.Days,te.Wide,he.Standalone);break;case"ccccc":Y=E(Ge.Days,te.Narrow,he.Standalone);break;case"cccccc":Y=E(Ge.Days,te.Short,he.Standalone);break;case"E":case"EE":case"EEE":Y=E(Ge.Days,te.Abbreviated);break;case"EEEE":Y=E(Ge.Days,te.Wide);break;case"EEEEE":Y=E(Ge.Days,te.Narrow);break;case"EEEEEE":Y=E(Ge.Days,te.Short);break;case"a":case"aa":case"aaa":Y=E(Ge.DayPeriods,te.Abbreviated);break;case"aaaa":Y=E(Ge.DayPeriods,te.Wide);break;case"aaaaa":Y=E(Ge.DayPeriods,te.Narrow);break;case"b":case"bb":case"bbb":Y=E(Ge.DayPeriods,te.Abbreviated,he.Standalone,!0);break;case"bbbb":Y=E(Ge.DayPeriods,te.Wide,he.Standalone,!0);break;case"bbbbb":Y=E(Ge.DayPeriods,te.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":Y=E(Ge.DayPeriods,te.Abbreviated,he.Format,!0);break;case"BBBB":Y=E(Ge.DayPeriods,te.Wide,he.Format,!0);break;case"BBBBB":Y=E(Ge.DayPeriods,te.Narrow,he.Format,!0);break;case"h":Y=Ne(He.Hours,1,-12);break;case"hh":Y=Ne(He.Hours,2,-12);break;case"H":Y=Ne(He.Hours,1);break;case"HH":Y=Ne(He.Hours,2);break;case"m":Y=Ne(He.Minutes,1);break;case"mm":Y=Ne(He.Minutes,2);break;case"s":Y=Ne(He.Seconds,1);break;case"ss":Y=Ne(He.Seconds,2);break;case"S":Y=Ne(He.FractionalSeconds,1);break;case"SS":Y=Ne(He.FractionalSeconds,2);break;case"SSS":Y=Ne(He.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Y=ue(me.Short);break;case"ZZZZZ":Y=ue(me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Y=ue(me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Y=ue(me.Long);break;default:return null}return An[b]=Y,Y}(Dn);Tn+=dn?dn(xe,w,Fn):"''"===Dn?"'":Dn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function Me(b,Y,w){const Q=new Date(0);return Q.setFullYear(b,Y,w),Q.setHours(0,0,0),Q}function V(b,Y){const w=function je(b){return(0,a.cg1)(b)[a.wAp.LocaleId]}(b);if(pe[w]=pe[w]||{},pe[w][Y])return pe[w][Y];let Q="";switch(Y){case"shortDate":Q=_t(b,le.Short);break;case"mediumDate":Q=_t(b,le.Medium);break;case"longDate":Q=_t(b,le.Long);break;case"fullDate":Q=_t(b,le.Full);break;case"shortTime":Q=it(b,le.Short);break;case"mediumTime":Q=it(b,le.Medium);break;case"longTime":Q=it(b,le.Long);break;case"fullTime":Q=it(b,le.Full);break;case"short":const xe=V(b,"shortTime"),ct=V(b,"shortDate");Q=Be(St(b,le.Short),[xe,ct]);break;case"medium":const Mt=V(b,"mediumTime"),kt=V(b,"mediumDate");Q=Be(St(b,le.Medium),[Mt,kt]);break;case"long":const Fn=V(b,"longTime"),Tn=V(b,"longDate");Q=Be(St(b,le.Long),[Fn,Tn]);break;case"full":const Dn=V(b,"fullTime"),dn=V(b,"fullDate");Q=Be(St(b,le.Full),[Dn,dn])}return Q&&(pe[w][Y]=Q),Q}function Be(b,Y){return Y&&(b=b.replace(/\{([^}]+)}/g,function(w,Q){return null!=Y&&Q in Y?Y[Q]:w})),b}function nt(b,Y,w="-",Q,xe){let ct="";(b<0||xe&&b<=0)&&(xe?b=1-b:(b=-b,ct=w));let Mt=String(b);for(;Mt.length0||kt>-w)&&(kt+=w),b===He.Hours)0===kt&&-12===w&&(kt=12);else if(b===He.FractionalSeconds)return function ce(b,Y){return nt(b,3).substr(0,Y)}(kt,Y);const Fn=ot(Mt,ie.MinusSign);return nt(kt,Y,Fn,Q,xe)}}function E(b,Y,w=he.Format,Q=!1){return function(xe,ct){return function $(b,Y,w,Q,xe,ct){switch(w){case Ge.Months:return function ve(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.MonthsFormat],Q[a.wAp.MonthsStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getMonth()];case Ge.Days:return function ke(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.DaysFormat],Q[a.wAp.DaysStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getDay()];case Ge.DayPeriods:const Mt=b.getHours(),kt=b.getMinutes();if(ct){const Tn=function Cn(b){const Y=(0,a.cg1)(b);return _n(Y),(Y[a.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Mn(Q):[Mn(Q[0]),Mn(Q[1])])}(Y),Dn=function Dt(b,Y,w){const Q=(0,a.cg1)(b);_n(Q);const ct=cn([Q[a.wAp.ExtraData][0],Q[a.wAp.ExtraData][1]],Y)||[];return cn(ct,w)||[]}(Y,xe,Q),dn=Tn.findIndex(Yn=>{if(Array.isArray(Yn)){const[On,Yt]=Yn,Eo=Mt>=On.hours&&kt>=On.minutes,D=Mt0?Math.floor(xe/60):Math.ceil(xe/60);switch(b){case me.Short:return(xe>=0?"+":"")+nt(Mt,2,ct)+nt(Math.abs(xe%60),2,ct);case me.ShortGMT:return"GMT"+(xe>=0?"+":"")+nt(Mt,1,ct);case me.Long:return"GMT"+(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);case me.Extended:return 0===Q?"Z":(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);default:throw new Error(`Unknown zone width "${b}"`)}}}function Qt(b){return Me(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function gn(b,Y=!1){return function(w,Q){let xe;if(Y){const ct=new Date(w.getFullYear(),w.getMonth(),1).getDay()-1,Mt=w.getDate();xe=1+Math.floor((Mt+ct)/7)}else{const ct=Qt(w),Mt=function At(b){const Y=Me(b,0,1).getDay();return Me(b,0,1+(Y<=4?4:11)-Y)}(ct.getFullYear()),kt=ct.getTime()-Mt.getTime();xe=1+Math.round(kt/6048e5)}return nt(xe,b,ot(Q,ie.MinusSign))}}function Vn(b,Y=!1){return function(w,Q){return nt(Qt(w).getFullYear(),b,ot(Q,ie.MinusSign),Y)}}const An={};function jn(b,Y){b=b.replace(/:/g,"");const w=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(w)?Y:w}function Ve(b){return b instanceof Date&&!isNaN(b.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function De(b){const Y=parseInt(b);if(isNaN(Y))throw new Error("Invalid integer literal when parsing "+b);return Y}class rt{}let on=(()=>{class b extends rt{constructor(w){super(),this.locale=w}getPluralCategory(w,Q){switch(un(Q||this.locale)(w)){case fe.Zero:return"zero";case fe.One:return"one";case fe.Two:return"two";case fe.Few:return"few";case fe.Many:return"many";default:return"other"}}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(a.soG))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})();function Lt(b,Y,w){return(0,a.dwT)(b,Y,w)}function Un(b,Y){Y=encodeURIComponent(Y);for(const w of b.split(";")){const Q=w.indexOf("="),[xe,ct]=-1==Q?[w,""]:[w.slice(0,Q),w.slice(Q+1)];if(xe.trim()===Y)return decodeURIComponent(ct)}return null}let $n=(()=>{class b{constructor(w,Q,xe,ct){this._iterableDiffers=w,this._keyValueDiffers=Q,this._ngEl=xe,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(w){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof w?w.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(w){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof w?w.split(/\s+/):w,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const w=this._iterableDiffer.diff(this._rawClass);w&&this._applyIterableChanges(w)}else if(this._keyValueDiffer){const w=this._keyValueDiffer.diff(this._rawClass);w&&this._applyKeyValueChanges(w)}}_applyKeyValueChanges(w){w.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(w){w.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),w.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!!w[Q])))}_removeClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(w,Q){(w=w.trim())&&w.split(/\s+/g).forEach(xe=>{Q?this._renderer.addClass(this._ngEl.nativeElement,xe):this._renderer.removeClass(this._ngEl.nativeElement,xe)})}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),b})();class Rn{constructor(Y,w,Q,xe){this.$implicit=Y,this.ngForOf=w,this.index=Q,this.count=xe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{class b{constructor(w,Q,xe){this._viewContainer=w,this._template=Q,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(w){this._ngForOf=w,this._ngForOfDirty=!0}set ngForTrackBy(w){this._trackByFn=w}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(w){w&&(this._template=w)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const w=this._ngForOf;!this._differ&&w&&(this._differ=this._differs.find(w).create(this.ngForTrackBy))}if(this._differ){const w=this._differ.diff(this._ngForOf);w&&this._applyChanges(w)}}_applyChanges(w){const Q=this._viewContainer;w.forEachOperation((xe,ct,Mt)=>{if(null==xe.previousIndex)Q.createEmbeddedView(this._template,new Rn(xe.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)Q.remove(null===ct?void 0:ct);else if(null!==ct){const kt=Q.get(ct);Q.move(kt,Mt),X(kt,xe)}});for(let xe=0,ct=Q.length;xe{X(Q.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),b})();function X(b,Y){b.context.$implicit=Y.item}let k=(()=>{class b{constructor(w,Q){this._viewContainer=w,this._context=new Ee,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(w){this._context.$implicit=this._context.ngIf=w,this._updateView()}set ngIfThen(w){st("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){st("ngIfElse",w),this._elseTemplateRef=w,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),b})();class Ee{constructor(){this.$implicit=null,this.ngIf=null}}function st(b,Y){if(Y&&!Y.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,a.AaK)(Y)}'.`)}class Ct{constructor(Y,w){this._viewContainerRef=Y,this._templateRef=w,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Y){Y&&!this._created?this.create():!Y&&this._created&&this.destroy()}}let Ot=(()=>{class b{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(w){this._ngSwitch=w,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(w){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(w)}_matchCase(w){const Q=w==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(w){if(this._defaultViews&&w!==this._defaultUsed){this._defaultUsed=w;for(let Q=0;Q{class b{constructor(w,Q,xe){this.ngSwitch=xe,xe._addCase(),this._view=new Ct(w,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),b})(),hn=(()=>{class b{constructor(w,Q,xe){xe._addDefault(new Ct(w,Q))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchDefault",""]]}),b})(),bi=(()=>{class b{constructor(w,Q,xe){this._ngEl=w,this._differs=Q,this._renderer=xe,this._ngStyle=null,this._differ=null}set ngStyle(w){this._ngStyle=w,!this._differ&&w&&(this._differ=this._differs.find(w).create())}ngDoCheck(){if(this._differ){const w=this._differ.diff(this._ngStyle);w&&this._applyChanges(w)}}_setStyle(w,Q){const[xe,ct]=w.split(".");null!=(Q=null!=Q&&ct?`${Q}${ct}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,xe,Q):this._renderer.removeStyle(this._ngEl.nativeElement,xe)}_applyChanges(w){w.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),w.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),b})(),io=(()=>{class b{constructor(w){this._viewContainerRef=w,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(w){if(w.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&w.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),b})();function vi(b,Y){return new a.vHH(2100,"")}class ui{createSubscription(Y,w){return Y.subscribe({next:w,error:Q=>{throw Q}})}dispose(Y){Y.unsubscribe()}onDestroy(Y){Y.unsubscribe()}}class wi{createSubscription(Y,w){return Y.then(w,Q=>{throw Q})}dispose(Y){}onDestroy(Y){}}const ko=new wi,Fo=new ui;let vo=(()=>{class b{constructor(w){this._ref=w,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(w){return this._obj?w!==this._obj?(this._dispose(),this.transform(w)):this._latestValue:(w&&this._subscribe(w),this._latestValue)}_subscribe(w){this._obj=w,this._strategy=this._selectStrategy(w),this._subscription=this._strategy.createSubscription(w,Q=>this._updateLatestValue(w,Q))}_selectStrategy(w){if((0,a.QGY)(w))return ko;if((0,a.F4k)(w))return Fo;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(w,Q){w===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.sBO,16))},b.\u0275pipe=a.Yjl({name:"async",type:b,pure:!1}),b})();const sr=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ii=(()=>{class b{constructor(w,Q){this.locale=w,this.defaultTimezone=Q}transform(w,Q="mediumDate",xe,ct){var Mt;if(null==w||""===w||w!=w)return null;try{return Le(w,Q,ct||this.locale,null!==(Mt=null!=xe?xe:this.defaultTimezone)&&void 0!==Mt?Mt:void 0)}catch(kt){throw vi()}}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.soG,16),a.Y36(sr,24))},b.\u0275pipe=a.Yjl({name:"date",type:b,pure:!0}),b})(),qo=(()=>{class b{constructor(w){this._locale=w}transform(w,Q,xe){if(!function oi(b){return!(null==b||""===b||b!=b)}(w))return null;xe=xe||this._locale;try{return function rn(b,Y,w){return function ei(b,Y,w,Q,xe,ct,Mt=!1){let kt="",Fn=!1;if(isFinite(b)){let Tn=function Te(b){let Q,xe,ct,Mt,kt,Y=Math.abs(b)+"",w=0;for((xe=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(ct=Y.search(/e/i))>0?(xe<0&&(xe=ct),xe+=+Y.slice(ct+1),Y=Y.substring(0,ct)):xe<0&&(xe=Y.length),ct=0;"0"===Y.charAt(ct);ct++);if(ct===(kt=Y.length))Q=[0],xe=1;else{for(kt--;"0"===Y.charAt(kt);)kt--;for(xe-=ct,Q=[],Mt=0;ct<=kt;ct++,Mt++)Q[Mt]=Number(Y.charAt(ct))}return xe>22&&(Q=Q.splice(0,21),w=xe-1,xe=1),{digits:Q,exponent:w,integerLen:xe}}(b);Mt&&(Tn=function Qn(b){if(0===b.digits[0])return b;const Y=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===Y?b.digits.push(0,0):1===Y&&b.digits.push(0),b.integerLen+=2),b}(Tn));let Dn=Y.minInt,dn=Y.minFrac,Yn=Y.maxFrac;if(ct){const y=ct.match(ht);if(null===y)throw new Error(`${ct} is not a valid digit info`);const U=y[1],at=y[3],Nt=y[5];null!=U&&(Dn=De(U)),null!=at&&(dn=De(at)),null!=Nt?Yn=De(Nt):null!=at&&dn>Yn&&(Yn=dn)}!function Ze(b,Y,w){if(Y>w)throw new Error(`The minimum number of digits after fraction (${Y}) is higher than the maximum (${w}).`);let Q=b.digits,xe=Q.length-b.integerLen;const ct=Math.min(Math.max(Y,xe),w);let Mt=ct+b.integerLen,kt=Q[Mt];if(Mt>0){Q.splice(Math.max(b.integerLen,Mt));for(let dn=Mt;dn=5)if(Mt-1<0){for(let dn=0;dn>Mt;dn--)Q.unshift(0),b.integerLen++;Q.unshift(1),b.integerLen++}else Q[Mt-1]++;for(;xe=Tn?Yt.pop():Fn=!1),Yn>=10?1:0},0);Dn&&(Q.unshift(Dn),b.integerLen++)}(Tn,dn,Yn);let On=Tn.digits,Yt=Tn.integerLen;const Eo=Tn.exponent;let D=[];for(Fn=On.every(y=>!y);Yt0?D=On.splice(Yt,On.length):(D=On,On=[0]);const C=[];for(On.length>=Y.lgSize&&C.unshift(On.splice(-Y.lgSize,On.length).join(""));On.length>Y.gSize;)C.unshift(On.splice(-Y.gSize,On.length).join(""));On.length&&C.unshift(On.join("")),kt=C.join(ot(w,Q)),D.length&&(kt+=ot(w,xe)+D.join("")),Eo&&(kt+=ot(w,ie.Exponential)+"+"+Eo)}else kt=ot(w,ie.Infinity);return kt=b<0&&!Fn?Y.negPre+kt+Y.negSuf:Y.posPre+kt+Y.posSuf,kt}(b,function bn(b,Y="-"){const w={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Q=b.split(";"),xe=Q[0],ct=Q[1],Mt=-1!==xe.indexOf(".")?xe.split("."):[xe.substring(0,xe.lastIndexOf("0")+1),xe.substring(xe.lastIndexOf("0")+1)],kt=Mt[0],Fn=Mt[1]||"";w.posPre=kt.substr(0,kt.indexOf("#"));for(let Dn=0;Dn{class b{}return b.\u0275fac=function(w){return new(w||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({providers:[{provide:rt,useClass:on}]}),b})();const Lo="browser";function hi(b){return b===Lo}let Qi=(()=>{class b{}return b.\u0275prov=(0,a.Yz7)({token:b,providedIn:"root",factory:()=>new Xo((0,a.LFG)(W),window)}),b})();class Xo{constructor(Y,w){this.document=Y,this.window=w,this.offset=()=>[0,0]}setOffset(Y){this.offset=Array.isArray(Y)?()=>Y:Y}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Y){this.supportsScrolling()&&this.window.scrollTo(Y[0],Y[1])}scrollToAnchor(Y){if(!this.supportsScrolling())return;const w=function Pi(b,Y){const w=b.getElementById(Y)||b.getElementsByName(Y)[0];if(w)return w;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const Q=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let xe=Q.currentNode;for(;xe;){const ct=xe.shadowRoot;if(ct){const Mt=ct.getElementById(Y)||ct.querySelector(`[name="${Y}"]`);if(Mt)return Mt}xe=Q.nextNode()}}return null}(this.document,Y);w&&(this.scrollToElement(w),this.attemptFocus(w))}setHistoryScrollRestoration(Y){if(this.supportScrollRestoration()){const w=this.window.history;w&&w.scrollRestoration&&(w.scrollRestoration=Y)}}scrollToElement(Y){const w=Y.getBoundingClientRect(),Q=w.left+this.window.pageXOffset,xe=w.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(Q-ct[0],xe-ct[1])}attemptFocus(Y){return Y.focus(),this.document.activeElement===Y}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Y=Bn(this.window.history)||Bn(Object.getPrototypeOf(this.window.history));return!(!Y||!Y.writable&&!Y.set)}catch(Y){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Y){return!1}}}function Bn(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Wn{}},520:(yt,be,p)=>{p.d(be,{TP:()=>je,jN:()=>R,eN:()=>ie,JF:()=>cn,WM:()=>H,LE:()=>_e,aW:()=>Se,Zn:()=>he});var a=p(9808),s=p(5e3),G=p(1086),oe=p(6498),q=p(1406),_=p(2198),W=p(4850);class I{}class R{}class H{constructor(z){this.normalizedNames=new Map,this.lazyUpdate=null,z?this.lazyInit="string"==typeof z?()=>{this.headers=new Map,z.split("\n").forEach(P=>{const pe=P.indexOf(":");if(pe>0){const j=P.slice(0,pe),me=j.toLowerCase(),He=P.slice(pe+1).trim();this.maybeSetNormalizedName(j,me),this.headers.has(me)?this.headers.get(me).push(He):this.headers.set(me,[He])}})}:()=>{this.headers=new Map,Object.keys(z).forEach(P=>{let pe=z[P];const j=P.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(j,pe),this.maybeSetNormalizedName(P,j))})}:this.headers=new Map}has(z){return this.init(),this.headers.has(z.toLowerCase())}get(z){this.init();const P=this.headers.get(z.toLowerCase());return P&&P.length>0?P[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(z){return this.init(),this.headers.get(z.toLowerCase())||null}append(z,P){return this.clone({name:z,value:P,op:"a"})}set(z,P){return this.clone({name:z,value:P,op:"s"})}delete(z,P){return this.clone({name:z,value:P,op:"d"})}maybeSetNormalizedName(z,P){this.normalizedNames.has(P)||this.normalizedNames.set(P,z)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(z=>this.applyUpdate(z)),this.lazyUpdate=null))}copyFrom(z){z.init(),Array.from(z.headers.keys()).forEach(P=>{this.headers.set(P,z.headers.get(P)),this.normalizedNames.set(P,z.normalizedNames.get(P))})}clone(z){const P=new H;return P.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,P.lazyUpdate=(this.lazyUpdate||[]).concat([z]),P}applyUpdate(z){const P=z.name.toLowerCase();switch(z.op){case"a":case"s":let pe=z.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(z.name,P);const j=("a"===z.op?this.headers.get(P):void 0)||[];j.push(...pe),this.headers.set(P,j);break;case"d":const me=z.value;if(me){let He=this.headers.get(P);if(!He)return;He=He.filter(Ge=>-1===me.indexOf(Ge)),0===He.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,He)}else this.headers.delete(P),this.normalizedNames.delete(P)}}forEach(z){this.init(),Array.from(this.normalizedNames.keys()).forEach(P=>z(this.normalizedNames.get(P),this.headers.get(P)))}}class B{encodeKey(z){return Fe(z)}encodeValue(z){return Fe(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const ye=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fe(x){return encodeURIComponent(x).replace(ye,(z,P)=>{var pe;return null!==(pe=Ye[P])&&void 0!==pe?pe:z})}function ze(x){return`${x}`}class _e{constructor(z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=z.encoder||new B,z.fromString){if(z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(x,z){const P=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(j=>{const me=j.indexOf("="),[He,Ge]=-1==me?[z.decodeKey(j),""]:[z.decodeKey(j.slice(0,me)),z.decodeValue(j.slice(me+1))],Le=P.get(He)||[];Le.push(Ge),P.set(He,Le)}),P}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(P=>{const pe=z.fromObject[P];this.map.set(P,Array.isArray(pe)?pe:[pe])})):this.map=null}has(z){return this.init(),this.map.has(z)}get(z){this.init();const P=this.map.get(z);return P?P[0]:null}getAll(z){return this.init(),this.map.get(z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(z,P){return this.clone({param:z,value:P,op:"a"})}appendAll(z){const P=[];return Object.keys(z).forEach(pe=>{const j=z[pe];Array.isArray(j)?j.forEach(me=>{P.push({param:pe,value:me,op:"a"})}):P.push({param:pe,value:j,op:"a"})}),this.clone(P)}set(z,P){return this.clone({param:z,value:P,op:"s"})}delete(z,P){return this.clone({param:z,value:P,op:"d"})}toString(){return this.init(),this.keys().map(z=>{const P=this.encoder.encodeKey(z);return this.map.get(z).map(pe=>P+"="+this.encoder.encodeValue(pe)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const P=new _e({encoder:this.encoder});return P.cloneFrom=this.cloneFrom||this,P.updates=(this.updates||[]).concat(z),P}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(z=>this.map.set(z,this.cloneFrom.map.get(z))),this.updates.forEach(z=>{switch(z.op){case"a":case"s":const P=("a"===z.op?this.map.get(z.param):void 0)||[];P.push(ze(z.value)),this.map.set(z.param,P);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let pe=this.map.get(z.param)||[];const j=pe.indexOf(ze(z.value));-1!==j&&pe.splice(j,1),pe.length>0?this.map.set(z.param,pe):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(z,P){return this.map.set(z,P),this}get(z){return this.map.has(z)||this.map.set(z,z.defaultValue()),this.map.get(z)}delete(z){return this.map.delete(z),this}has(z){return this.map.has(z)}keys(){return this.map.keys()}}function ut(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Ie(x){return"undefined"!=typeof Blob&&x instanceof Blob}function $e(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Se{constructor(z,P,pe,j){let me;if(this.url=P,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=z.toUpperCase(),function zt(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||j?(this.body=void 0!==pe?pe:null,me=j):me=pe,me&&(this.reportProgress=!!me.reportProgress,this.withCredentials=!!me.withCredentials,me.responseType&&(this.responseType=me.responseType),me.headers&&(this.headers=me.headers),me.context&&(this.context=me.context),me.params&&(this.params=me.params)),this.headers||(this.headers=new H),this.context||(this.context=new Je),this.params){const He=this.params.toString();if(0===He.length)this.urlWithParams=P;else{const Ge=P.indexOf("?");this.urlWithParams=P+(-1===Ge?"?":Gent.set(ce,z.setHeaders[ce]),Me)),z.setParams&&(V=Object.keys(z.setParams).reduce((nt,ce)=>nt.set(ce,z.setParams[ce]),V)),new Se(pe,j,He,{params:V,headers:Me,context:Be,reportProgress:Le,responseType:me,withCredentials:Ge})}}var Xe=(()=>((Xe=Xe||{})[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe))();class J{constructor(z,P=200,pe="OK"){this.headers=z.headers||new H,this.status=void 0!==z.status?z.status:P,this.statusText=z.statusText||pe,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends J{constructor(z={}){super(z),this.type=Xe.ResponseHeader}clone(z={}){return new fe({headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class he extends J{constructor(z={}){super(z),this.type=Xe.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new he({body:void 0!==z.body?z.body:this.body,headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class te extends J{constructor(z){super(z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${z.url||"(unknown url)"}`:`Http failure response for ${z.url||"(unknown url)"}: ${z.status} ${z.statusText}`,this.error=z.error||null}}function le(x,z){return{body:z,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let ie=(()=>{class x{constructor(P){this.handler=P}request(P,pe,j={}){let me;if(P instanceof Se)me=P;else{let Le,Me;Le=j.headers instanceof H?j.headers:new H(j.headers),j.params&&(Me=j.params instanceof _e?j.params:new _e({fromObject:j.params})),me=new Se(P,pe,void 0!==j.body?j.body:null,{headers:Le,context:j.context,params:Me,reportProgress:j.reportProgress,responseType:j.responseType||"json",withCredentials:j.withCredentials})}const He=(0,G.of)(me).pipe((0,q.b)(Le=>this.handler.handle(Le)));if(P instanceof Se||"events"===j.observe)return He;const Ge=He.pipe((0,_.h)(Le=>Le instanceof he));switch(j.observe||"body"){case"body":switch(me.responseType){case"arraybuffer":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Le.body}));case"blob":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof Blob))throw new Error("Response is not a Blob.");return Le.body}));case"text":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&"string"!=typeof Le.body)throw new Error("Response is not a string.");return Le.body}));default:return Ge.pipe((0,W.U)(Le=>Le.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${j.observe}}`)}}delete(P,pe={}){return this.request("DELETE",P,pe)}get(P,pe={}){return this.request("GET",P,pe)}head(P,pe={}){return this.request("HEAD",P,pe)}jsonp(P,pe){return this.request("JSONP",P,{params:(new _e).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,pe={}){return this.request("OPTIONS",P,pe)}patch(P,pe,j={}){return this.request("PATCH",P,le(j,pe))}post(P,pe,j={}){return this.request("POST",P,le(j,pe))}put(P,pe,j={}){return this.request("PUT",P,le(j,pe))}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(I))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();class Ue{constructor(z,P){this.next=z,this.interceptor=P}handle(z){return this.interceptor.intercept(z,this.next)}}const je=new s.OlP("HTTP_INTERCEPTORS");let tt=(()=>{class x{intercept(P,pe){return pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const St=/^\)\]\}',?\n/;let Et=(()=>{class x{constructor(P){this.xhrFactory=P}handle(P){if("JSONP"===P.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new oe.y(pe=>{const j=this.xhrFactory.build();if(j.open(P.method,P.urlWithParams),P.withCredentials&&(j.withCredentials=!0),P.headers.forEach((ce,Ne)=>j.setRequestHeader(ce,Ne.join(","))),P.headers.has("Accept")||j.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const ce=P.detectContentTypeHeader();null!==ce&&j.setRequestHeader("Content-Type",ce)}if(P.responseType){const ce=P.responseType.toLowerCase();j.responseType="json"!==ce?ce:"text"}const me=P.serializeBody();let He=null;const Ge=()=>{if(null!==He)return He;const ce=1223===j.status?204:j.status,Ne=j.statusText||"OK",L=new H(j.getAllResponseHeaders()),E=function ot(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(j)||P.url;return He=new fe({headers:L,status:ce,statusText:Ne,url:E}),He},Le=()=>{let{headers:ce,status:Ne,statusText:L,url:E}=Ge(),$=null;204!==Ne&&($=void 0===j.response?j.responseText:j.response),0===Ne&&(Ne=$?200:0);let ue=Ne>=200&&Ne<300;if("json"===P.responseType&&"string"==typeof $){const Ae=$;$=$.replace(St,"");try{$=""!==$?JSON.parse($):null}catch(wt){$=Ae,ue&&(ue=!1,$={error:wt,text:$})}}ue?(pe.next(new he({body:$,headers:ce,status:Ne,statusText:L,url:E||void 0})),pe.complete()):pe.error(new te({error:$,headers:ce,status:Ne,statusText:L,url:E||void 0}))},Me=ce=>{const{url:Ne}=Ge(),L=new te({error:ce,status:j.status||0,statusText:j.statusText||"Unknown Error",url:Ne||void 0});pe.error(L)};let V=!1;const Be=ce=>{V||(pe.next(Ge()),V=!0);let Ne={type:Xe.DownloadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),"text"===P.responseType&&!!j.responseText&&(Ne.partialText=j.responseText),pe.next(Ne)},nt=ce=>{let Ne={type:Xe.UploadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),pe.next(Ne)};return j.addEventListener("load",Le),j.addEventListener("error",Me),j.addEventListener("timeout",Me),j.addEventListener("abort",Me),P.reportProgress&&(j.addEventListener("progress",Be),null!==me&&j.upload&&j.upload.addEventListener("progress",nt)),j.send(me),pe.next({type:Xe.Sent}),()=>{j.removeEventListener("error",Me),j.removeEventListener("abort",Me),j.removeEventListener("load",Le),j.removeEventListener("timeout",Me),P.reportProgress&&(j.removeEventListener("progress",Be),null!==me&&j.upload&&j.upload.removeEventListener("progress",nt)),j.readyState!==j.DONE&&j.abort()}})}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.JF))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const Zt=new s.OlP("XSRF_COOKIE_NAME"),mn=new s.OlP("XSRF_HEADER_NAME");class vn{}let Ut=(()=>{class x{constructor(P,pe,j){this.doc=P,this.platform=pe,this.cookieName=j,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const P=this.doc.cookie||"";return P!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(P,this.cookieName),this.lastCookieString=P),this.lastToken}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.K0),s.LFG(s.Lbi),s.LFG(Zt))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),un=(()=>{class x{constructor(P,pe){this.tokenService=P,this.headerName=pe}intercept(P,pe){const j=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return pe.handle(P);const me=this.tokenService.getToken();return null!==me&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,me)})),pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(vn),s.LFG(mn))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),_n=(()=>{class x{constructor(P,pe){this.backend=P,this.injector=pe,this.chain=null}handle(P){if(null===this.chain){const pe=this.injector.get(je,[]);this.chain=pe.reduceRight((j,me)=>new Ue(j,me),this.backend)}return this.chain.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(R),s.LFG(s.zs3))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),Sn=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:un,useClass:tt}]}}static withOptions(P={}){return{ngModule:x,providers:[P.cookieName?{provide:Zt,useValue:P.cookieName}:[],P.headerName?{provide:mn,useValue:P.headerName}:[]]}}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[un,{provide:je,useExisting:un,multi:!0},{provide:vn,useClass:Ut},{provide:Zt,useValue:"XSRF-TOKEN"},{provide:mn,useValue:"X-XSRF-TOKEN"}]}),x})(),cn=(()=>{class x{}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[ie,{provide:I,useClass:_n},Et,{provide:R,useExisting:Et}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})()},5e3:(yt,be,p)=>{p.d(be,{deG:()=>b2,tb:()=>Mh,AFp:()=>yh,ip1:()=>X4,CZH:()=>ks,hGG:()=>tp,z2F:()=>Ma,sBO:()=>O9,Sil:()=>t2,_Vd:()=>pa,EJc:()=>wh,SBq:()=>ma,qLn:()=>gs,vpe:()=>rr,tBr:()=>hs,XFs:()=>Dt,OlP:()=>li,zs3:()=>fo,ZZ4:()=>J1,aQg:()=>X1,soG:()=>Q1,YKP:()=>zu,h0i:()=>Ps,PXZ:()=>w9,R0b:()=>mo,FiY:()=>_r,Lbi:()=>Ch,g9A:()=>_h,Qsj:()=>uf,FYo:()=>bu,JOm:()=>jo,q3G:()=>mi,tp0:()=>Ar,Rgc:()=>_a,dDg:()=>zh,DyG:()=>Ys,GfV:()=>wu,s_b:()=>W1,ifc:()=>me,eFA:()=>xh,G48:()=>P9,Gpc:()=>B,f3M:()=>V2,X6Q:()=>x9,_c5:()=>K9,VLi:()=>C9,c2e:()=>bh,zSh:()=>E1,wAp:()=>an,vHH:()=>Fe,EiD:()=>Ec,mCW:()=>fs,qzn:()=>Ir,JVY:()=>t3,pB0:()=>r3,eBb:()=>vc,L6k:()=>n3,LAX:()=>o3,cg1:()=>P4,kL8:()=>W0,yhl:()=>gc,dqk:()=>V,sIi:()=>bs,CqO:()=>X6,QGY:()=>y4,F4k:()=>J6,dwT:()=>i7,RDi:()=>Jo,AaK:()=>I,z3N:()=>er,qOj:()=>O1,TTD:()=>oi,_Bn:()=>_u,xp6:()=>ll,uIk:()=>F1,Tol:()=>C0,Gre:()=>I0,ekj:()=>E4,Suo:()=>Qu,Xpm:()=>Qt,lG2:()=>we,Yz7:()=>_t,cJS:()=>St,oAB:()=>jn,Yjl:()=>ae,Y36:()=>ca,_UZ:()=>Z6,GkF:()=>Q6,BQk:()=>v4,ynx:()=>g4,qZA:()=>m4,TgZ:()=>p4,EpF:()=>q6,n5z:()=>lo,LFG:()=>zi,$8M:()=>uo,$Z:()=>K6,NdJ:()=>_4,CRH:()=>qu,O4$:()=>pi,oxw:()=>n0,ALo:()=>Nu,lcZ:()=>Ru,xi3:()=>Bu,Dn7:()=>Yu,Hsn:()=>r0,F$t:()=>o0,Q6J:()=>d4,s9C:()=>b4,MGl:()=>V1,hYB:()=>w4,DdM:()=>Pu,VKq:()=>Ou,WLB:()=>Au,l5B:()=>ku,iGM:()=>Ku,MAs:()=>L6,CHM:()=>c,oJD:()=>zc,LSH:()=>Ha,B6R:()=>gn,kYT:()=>qt,Udp:()=>D4,WFA:()=>C4,d8E:()=>x4,YNc:()=>V6,W1O:()=>th,_uU:()=>S0,Oqu:()=>S4,hij:()=>H1,AsE:()=>T4,Gf:()=>Zu});var a=p(8929),s=p(2654),G=p(6498),oe=p(6787),q=p(8117);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function W(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function I(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function R(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const H=_({__forward_ref__:_});function B(e){return e.__forward_ref__=B,e.toString=function(){return I(this())},e}function ee(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===B}class Fe extends Error{constructor(t,n){super(function ze(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function vt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function Ie(e,t){const n=t?` in ${t}`:"";throw new Fe(-201,`No provider for ${vt(e)} found${n}`)}function ke(e,t){null==e&&function ve(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function _t(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function St(e){return{providers:e.providers||[],imports:e.imports||[]}}function ot(e){return Et(e,Ut)||Et(e,_n)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function vn(e){return e&&(e.hasOwnProperty(un)||e.hasOwnProperty(Cn))?e[un]:null}const Ut=_({\u0275prov:_}),un=_({\u0275inj:_}),_n=_({ngInjectableDef:_}),Cn=_({ngInjectorDef:_});var Dt=(()=>((Dt=Dt||{})[Dt.Default=0]="Default",Dt[Dt.Host=1]="Host",Dt[Dt.Self=2]="Self",Dt[Dt.SkipSelf=4]="SkipSelf",Dt[Dt.Optional=8]="Optional",Dt))();let Sn;function Mn(e){const t=Sn;return Sn=e,t}function qe(e,t,n){const i=ot(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==t?t:void Ie(I(e),"Injector")}function z(e){return{toString:e}.toString()}var P=(()=>((P=P||{})[P.OnPush=0]="OnPush",P[P.Default=1]="Default",P))(),me=(()=>{return(e=me||(me={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",me;var e})();const He="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Le="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=He||"undefined"!=typeof global&&global||Ge||Le,ce={},Ne=[],L=_({\u0275cmp:_}),E=_({\u0275dir:_}),$=_({\u0275pipe:_}),ue=_({\u0275mod:_}),Ae=_({\u0275fac:_}),wt=_({__NG_ELEMENT_ID__:_});let At=0;function Qt(e){return z(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||me.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,r=e.features,u=e.pipes;return i.id+=At++,i.inputs=Re(e.inputs,n),i.outputs=Re(e.outputs),r&&r.forEach(f=>f(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vn):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(An):null,i})}function gn(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(Vn),i.pipeDefs=()=>n.map(An)}function Vn(e){return Ve(e)||function ht(e){return e[E]||null}(e)}function An(e){return function It(e){return e[$]||null}(e)}const ri={};function jn(e){return z(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ri[e.id]=e.type),t})}function qt(e,t){return z(()=>{const n=jt(e,!0);n.declarations=t.declarations||Ne,n.imports=t.imports||Ne,n.exports=t.exports||Ne})}function Re(e,t){if(null==e)return ce;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,t&&(t[o]=r)}return n}const we=Qt;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ve(e){return e[L]||null}function jt(e,t){const n=e[ue]||null;if(!n&&!0===t)throw new Error(`Type ${I(e)} does not have '\u0275mod' property.`);return n}const k=19;function Ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vt(e){return Array.isArray(e)&&!0===e[1]}function hn(e){return 0!=(8&e.flags)}function ni(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function kn(e){return null!==e.template}function bi(e){return 0!=(512&e[2])}function Ti(e,t){return e.hasOwnProperty(Ae)?e[Ae]:null}class ro{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function oi(){return Zi}function Zi(e){return e.type.prototype.ngOnChanges&&(e.setInput=bo),Di}function Di(){const e=Lo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ce)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bo(e,t,n,i){const o=Lo(e)||function wo(e,t){return e[Vo]=t}(e,{previous:ce,current:null}),r=o.current||(o.current={}),u=o.previous,f=this.declaredInputs[n],v=u[f];r[f]=new ro(v&&v.currentValue,t,u===ce),e[i]=t}oi.ngInherit=!0;const Vo="__ngSimpleChanges__";function Lo(e){return e[Vo]||null}const Ei="http://www.w3.org/2000/svg";let Do;function Jo(e){Do=e}function Qi(){return void 0!==Do?Do:"undefined"!=typeof document?document:void 0}function Bn(e){return!!e.listen}const Pi={createRenderer:(e,t)=>Qi()};function Wn(e){for(;Array.isArray(e);)e=e[0];return e}function w(e,t){return Wn(t[e])}function Q(e,t){return Wn(t[e.index])}function ct(e,t){return e.data[t]}function Mt(e,t){return e[t]}function kt(e,t){const n=t[e];return Ot(n)?n:n[0]}function Fn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function dn(e,t){return null==t?null:e[t]}function Yn(e){e[18]=0}function On(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function U(){return Yt.bindingsEnabled}function lt(){return Yt.lFrame.lView}function O(){return Yt.lFrame.tView}function c(e){return Yt.lFrame.contextLView=e,e[8]}function l(){let e=g();for(;null!==e&&64===e.type;)e=e.parent;return e}function g(){return Yt.lFrame.currentTNode}function ne(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function ge(){return Yt.lFrame.isParent}function Ce(){Yt.lFrame.isParent=!1}function Pt(){return Yt.isInCheckNoChangesMode}function Bt(e){Yt.isInCheckNoChangesMode=e}function Gt(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jt(){return Yt.lFrame.bindingIndex++}function pn(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _i(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,qi(t)}function qi(e){Yt.lFrame.currentDirectiveIndex=e}function Oi(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fi(){return Yt.lFrame.currentQueryIndex}function Bi(e){Yt.lFrame.currentQueryIndex=e}function Yi(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Li(e,t,n){if(n&Dt.SkipSelf){let o=t,r=e;for(;!(o=o.parent,null!==o||n&Dt.Host||(o=Yi(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,e=r}const i=Yt.lFrame=zo();return i.currentTNode=t,i.lView=e,!0}function Ho(e){const t=zo(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zo(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ao(e):t}function ao(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function fr(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pr=fr;function Rt(){const e=fr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sn(){return Yt.lFrame.selectedIndex}function Gn(e){Yt.lFrame.selectedIndex=e}function xn(){const e=Yt.lFrame;return ct(e.tView,e.selectedIndex)}function pi(){Yt.lFrame.currentNamespace=Ei}function Hi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{r.call(f)}finally{}}}else try{r.call(f)}finally{}}class No{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e,t,n){const i=Bn(e);let o=0;for(;ot){u=r-1;break}}}for(;r>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let yr=!0;function Tr(e){const t=yr;return yr=e,t}let Ea=0;function ur(e,t){const n=Rs(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,os(i.data,e),os(t,null),os(i.blueprint,null));const o=m(e,t),r=e.injectorIndex;if(Hs(o)){const u=cr(o),f=lr(o,t),v=f[1].data;for(let T=0;T<8;T++)t[r+T]=f[u+T]|v[u+T]}return t[r+8]=o,r}function os(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function m(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const r=o[1],u=r.type;if(i=2===u?r.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function d(e,t,n){!function za(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(wt)&&(i=n[wt]),null==i&&(i=n[wt]=Ea++);const o=255&i;t.data[e+(o>>5)]|=1<=0?255&t:Oe:t}(n);if("function"==typeof r){if(!Li(t,e,i))return i&Dt.Host?M(o,n,i):S(t,n,i,o);try{const u=r(i);if(null!=u||i&Dt.Optional)return u;Ie(n)}finally{pr()}}else if("number"==typeof r){let u=null,f=Rs(e,t),v=-1,T=i&Dt.Host?t[16][6]:null;for((-1===f||i&Dt.SkipSelf)&&(v=-1===f?m(e,t):t[f+8],-1!==v&&Hn(i,!1)?(u=t[1],f=cr(v),t=lr(v,t)):f=-1);-1!==f;){const N=t[1];if(In(r,f,N.data)){const re=pt(f,t,n,u,i,T);if(re!==de)return re}v=t[f+8],-1!==v&&Hn(i,t[1].data[f+8]===T)&&In(r,f,t)?(u=N,f=cr(v),t=lr(v,t)):f=-1}}}return S(t,n,i,o)}const de={};function Oe(){return new co(l(),lt())}function pt(e,t,n,i,o,r){const u=t[1],f=u.data[e+8],N=Ht(f,u,n,null==i?ni(f)&&yr:i!=u&&0!=(3&f.type),o&Dt.Host&&r===f);return null!==N?wn(t,u,N,f):de}function Ht(e,t,n,i,o){const r=e.providerIndexes,u=t.data,f=1048575&r,v=e.directiveStart,N=r>>20,Pe=o?f+N:e.directiveEnd;for(let We=i?f:f+N;We=v&>.type===n)return We}if(o){const We=u[v];if(We&&kn(We)&&We.type===n)return v}return null}function wn(e,t,n,i){let o=e[n];const r=t.data;if(function ar(e){return e instanceof No}(o)){const u=o;u.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Fe(-200,`Circular dependency in DI detected for ${e}${n}`)}(vt(r[n]));const f=Tr(u.canSeeViewProviders);u.resolving=!0;const v=u.injectImpl?Mn(u.injectImpl):null;Li(e,i,Dt.Default);try{o=e[n]=u.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ci(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const u=Zi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==v&&Mn(v),Tr(f),u.resolving=!1,pr()}}return o}function In(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ae]||Ui(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[Ae]||Ui(o);if(r&&r!==n)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ui(e){return ye(e)?()=>{const t=Ui(ee(e));return t&&t()}:Ti(e)}function uo(e){return function h(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function Sa(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const u=new o(...r);return f.annotation=u,f;function f(v,T,N){const re=v.hasOwnProperty(Ai)?v[Ai]:Object.defineProperty(v,Ai,{value:[]})[Ai];for(;re.length<=N;)re.push(null);return(re[N]=re[N]||[]).push(u),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class li{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=_t({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const b2=new li("AnalyzeForEntryComponents"),Ys=Function;function ho(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?To(n,t):t(n))}function tc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function js(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function E2(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ta(e,t){const n=Or(e,t);if(n>=0)return e[1|n]}function Or(e,t){return function oc(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const r=i+(o-i>>1),u=e[r<t?o=r:i=r+1}return~(o<({token:e})),-1),_r=us(Pr("Optional"),8),Ar=us(Pr("SkipSelf"),4);let Ks,Zs;function Fr(e){var t;return(null===(t=function Aa(){if(void 0===Ks&&(Ks=null,V.trustedTypes))try{Ks=V.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ks}())||void 0===t?void 0:t.createHTML(e))||e}function fc(e){var t;return(null===(t=function ka(){if(void 0===Zs&&(Zs=null,V.trustedTypes))try{Zs=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Zs}())||void 0===t?void 0:t.createHTML(e))||e}class Cr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Q2 extends Cr{getTypeName(){return"HTML"}}class q2 extends Cr{getTypeName(){return"Style"}}class J2 extends Cr{getTypeName(){return"Script"}}class X2 extends Cr{getTypeName(){return"URL"}}class e3 extends Cr{getTypeName(){return"ResourceURL"}}function er(e){return e instanceof Cr?e.changingThisBreaksApplicationSecurity:e}function Ir(e,t){const n=gc(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function gc(e){return e instanceof Cr&&e.getTypeName()||null}function t3(e){return new Q2(e)}function n3(e){return new q2(e)}function vc(e){return new J2(e)}function o3(e){return new X2(e)}function r3(e){return new e3(e)}class s3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Fr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class a3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Fr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Fr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0fs(t.trim())).join(", ")),this.buf.push(" ",u,'="',Dc(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!Cc.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Dc(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const f3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p3=/([^\#-~ |!])/g;function Dc(e){return e.replace(/&/g,"&").replace(f3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(p3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qs;function Ec(e,t){let n=null;try{Qs=Qs||function yc(e){const t=new a3(e);return function c3(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(e){return!1}}()?new s3(t):t}(e);let i=t?String(t):"";n=Qs.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Qs.getInertBodyElement(i)}while(i!==r);return Fr((new d3).sanitizeChildren(La(n)||n))}finally{if(n){const i=La(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function La(e){return"content"in e&&function m3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=(()=>((mi=mi||{})[mi.NONE=0]="NONE",mi[mi.HTML=1]="HTML",mi[mi.STYLE=2]="STYLE",mi[mi.SCRIPT=3]="SCRIPT",mi[mi.URL=4]="URL",mi[mi.RESOURCE_URL=5]="RESOURCE_URL",mi))();function zc(e){const t=ps();return t?fc(t.sanitize(mi.HTML,e)||""):Ir(e,"HTML")?fc(er(e)):Ec(Qi(),_e(e))}function Ha(e){const t=ps();return t?t.sanitize(mi.URL,e)||"":Ir(e,"URL")?er(e):fs(_e(e))}function ps(){const e=lt();return e&&e[12]}const Pc="__ngContext__";function ki(e,t){e[Pc]=t}function Ra(e){const t=function ms(e){return e[Pc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function qs(e){return e.ngOriginalError}function T3(e,...t){e.error(...t)}class gs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function S3(e){return e&&e.ngErrorLogger||T3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&qs(t);for(;n&&qs(n);)n=qs(n);return n||null}}const Lc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Yo(e){return e instanceof Function?e():e}var jo=(()=>((jo=jo||{})[jo.Important=1]="Important",jo[jo.DashCase=2]="DashCase",jo))();function ja(e,t){return undefined(e,t)}function vs(e){const t=e[3];return Vt(t)?t[3]:t}function Ua(e){return Yc(e[13])}function $a(e){return Yc(e[4])}function Yc(e){for(;null!==e&&!Vt(e);)e=e[4];return e}function Hr(e,t,n,i,o){if(null!=i){let r,u=!1;Vt(i)?r=i:Ot(i)&&(u=!0,i=i[0]);const f=Wn(i);0===e&&null!==n?null==o?Kc(t,n,f):Mr(t,n,f,o||null,!0):1===e&&null!==n?Mr(t,n,f,o||null,!0):2===e?function nl(e,t,n){const i=Js(e,t);i&&function q3(e,t,n,i){Bn(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,f,u):3===e&&t.destroyNode(f),null!=r&&function X3(e,t,n,i,o){const r=n[7];r!==Wn(n)&&Hr(t,e,i,r,o);for(let f=10;f0&&(e[n-1][4]=i[4]);const r=js(e,10+t);!function j3(e,t){ys(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=r[k];null!==u&&u.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function $c(e,t){if(!(256&t[2])){const n=t[11];Bn(n)&&n.destroyNode&&ys(e,t,n,3,null,null),function W3(e){let t=e[13];if(!t)return Za(e[1],e);for(;t;){let n=null;if(Ot(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ot(t)&&Za(t[1],t),t=t[3];null===t&&(t=e),Ot(t)&&Za(t[1],t),n=t&&t[4]}t=n}}(t)}}function Za(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Q3(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[o=T]():i[o=-T].unsubscribe(),r+=2}else{const u=i[o=n[r+1]];n[r].call(u)}if(null!==i){for(let r=o+1;rr?"":o[re+1].toLowerCase();const We=8&i?Pe:null;if(We&&-1!==rl(We,T,0)||2&i&&T!==Pe){if(xo(i))return!1;u=!0}}}}else{if(!u&&!xo(i)&&!xo(v))return!1;if(u&&xo(v))continue;u=!1,i=v|1&i}}return xo(i)||u}function xo(e){return 0==(1&e)}function o8(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let r=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!xo(u)&&(t+=e1(r,o),o=""),i=u,r=r||!xo(i);n++}return""!==o&&(t+=e1(r,o)),t}const yn={};function ll(e){ul(O(),lt(),sn()+e,Pt())}function ul(e,t,n,i){if(!i)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Ni(t,r,n)}else{const r=e.preOrderHooks;null!==r&&ji(t,r,0,n)}Gn(n)}function ta(e,t){return e<<17|t<<2}function Po(e){return e>>17&32767}function t1(e){return 2|e}function tr(e){return(131068&e)>>2}function n1(e,t){return-131069&e|t<<2}function o1(e){return 1|e}function bl(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&ul(e,t,20,Pt()),n(i,o)}finally{Gn(r)}}function Dl(e,t,n){if(hn(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=v&&f.push(v),f.push(i,o,u)}}function Al(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function v1(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function H8(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&_1(n)}}function _1(e){for(let i=Ua(e);null!==i;i=$a(i))for(let o=10;o0&&_1(r)}const n=e[1].components;if(null!==n)for(let i=0;i0&&_1(o)}}function U8(e,t){const n=kt(t,e),i=n[1];(function $8(e,t){for(let n=t.length;nPromise.resolve(null))();function Hl(e){return e[7]||(e[7]=[])}function Nl(e){return e.cleanup||(e.cleanup=[])}function Rl(e,t,n){return(null===e||kn(e))&&(n=function b(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Bl(e,t){const n=e[9],i=n?n.get(gs,null):null;i&&i.handleError(t)}function Yl(e,t,n,i,o){for(let r=0;rthis.processProvider(f,t,n)),To([t],f=>this.processInjectorType(f,[],r)),this.records.set(D1,jr(void 0,this));const u=this.records.get(E1);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:I(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=cs,i=Dt.Default){this.assertNotDestroyed();const o=ac(this),r=Mn(void 0);try{if(!(i&Dt.SkipSelf)){let f=this.records.get(t);if(void 0===f){const v=function a6(e){return"function"==typeof e||"object"==typeof e&&e instanceof li}(t)&&ot(t);f=v&&this.injectableDefInScope(v)?jr(S1(t),Ms):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(i&Dt.Self?Ul():this.parent).get(t,n=i&Dt.Optional&&n===cs?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Ws]=u[Ws]||[]).unshift(I(t)),o)throw u;return function H2(e,t,n,i){const o=e[Ws];throw t[sc]&&o.unshift(t[sc]),e.message=function N2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=I(t);if(Array.isArray(t))o=t.map(I).join(" -> ");else if("object"==typeof t){let r=[];for(let u in t)if(t.hasOwnProperty(u)){let f=t[u];r.push(u+":"+("string"==typeof f?JSON.stringify(f):I(f)))}o=`{${r.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(A2,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Ws]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Mn(r),ac(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(I(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fe(205,"")}processInjectorType(t,n,i){if(!(t=ee(t)))return!1;let o=vn(t);const r=null==o&&t.ngModule||void 0,u=void 0===r?t:r,f=-1!==i.indexOf(u);if(void 0!==r&&(o=vn(r)),null==o)return!1;if(null!=o.imports&&!f){let N;i.push(u);try{To(o.imports,re=>{this.processInjectorType(re,n,i)&&(void 0===N&&(N=[]),N.push(re))})}finally{}if(void 0!==N)for(let re=0;rethis.processProvider(gt,Pe,We||Ne))}}this.injectorDefTypes.add(u);const v=Ti(u)||(()=>new u);this.records.set(u,jr(v,Ms));const T=o.providers;if(null!=T&&!f){const N=t;To(T,re=>this.processProvider(re,N,T))}return void 0!==r&&void 0!==t.providers}processProvider(t,n,i){let o=Ur(t=ee(t))?t:ee(t&&t.provide);const r=function t6(e,t,n){return Kl(e)?jr(void 0,e.useValue):jr(Gl(e),Ms)}(t);if(Ur(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=jr(void 0,Ms,!0),u.factory=()=>Pa(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,r)}hydrate(t,n){return n.value===Ms&&(n.value=J8,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Zl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ee(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function S1(e){const t=ot(e),n=null!==t?t.factory:Ti(e);if(null!==n)return n;if(e instanceof li)throw new Fe(204,"");if(e instanceof Function)return function e6(e){const t=e.length;if(t>0)throw as(t,"?"),new Fe(204,"");const n=function Zt(e){const t=e&&(e[Ut]||e[_n]);if(t){const n=function mn(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Fe(204,"")}function Gl(e,t,n){let i;if(Ur(e)){const o=ee(e);return Ti(o)||S1(o)}if(Kl(e))i=()=>ee(e.useValue);else if(function o6(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Pa(e.deps||[]));else if(function n6(e){return!(!e||!e.useExisting)}(e))i=()=>zi(ee(e.useExisting));else{const o=ee(e&&(e.useClass||e.provide));if(!function s6(e){return!!e.deps}(e))return Ti(o)||S1(o);i=()=>new o(...Pa(e.deps))}return i}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Kl(e){return null!==e&&"object"==typeof e&&F2 in e}function Ur(e){return"function"==typeof e}let fo=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return $l({name:""},i,n,"");{const r=null!==(o=n.name)&&void 0!==o?o:"";return $l({name:r},n.parent,n.providers,r)}}}return e.THROW_IF_NOT_FOUND=cs,e.NULL=new jl,e.\u0275prov=_t({token:e,providedIn:"any",factory:()=>zi(D1)}),e.__NG_ELEMENT_ID__=-1,e})();function g6(e,t){Hi(Ra(e)[1],l())}function O1(e){let t=function a4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(kn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Fe(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=A1(e.inputs),u.declaredInputs=A1(e.declaredInputs),u.outputs=A1(e.outputs);const f=o.hostBindings;f&&C6(e,f);const v=o.viewQuery,T=o.contentQueries;if(v&&y6(e,v),T&&_6(e,T),W(e.inputs,o.inputs),W(e.declaredInputs,o.declaredInputs),W(e.outputs,o.outputs),kn(o)&&o.data.animation){const N=e.data;N.animation=(N.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let u=0;u=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Sr(o.hostAttrs,n=Sr(n,o.hostAttrs))}}(i)}function A1(e){return e===ce?{}:e===Ne?[]:e}function y6(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function _6(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,r)=>{t(i,o,r),n(i,o,r)}:t}function C6(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let sa=null;function $r(){if(!sa){const e=V.Symbol;if(e&&e.iterator)sa=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(Wn(zn[i.index])):i.index;if(Bn(n)){let zn=null;if(!f&&v&&(zn=function _5(e,t,n,i){const o=e.cleanup;if(null!=o)for(let r=0;rv?f[v]:null}"string"==typeof u&&(r+=2)}return null}(e,t,o,i.index)),null!==zn)(zn.__ngLastListenerFn__||zn).__ngNextListenerFn__=r,zn.__ngLastListenerFn__=r,We=!1;else{r=M4(i,t,re,r,!1);const Kn=n.listen($t,o,r);Pe.push(r,Kn),N&&N.push(o,nn,bt,bt+1)}}else r=M4(i,t,re,r,!0),$t.addEventListener(o,r,u),Pe.push(r),N&&N.push(o,nn,bt,u)}else r=M4(i,t,re,r,!1);const gt=i.outputs;let xt;if(We&&null!==gt&&(xt=gt[o])){const Ft=xt.length;if(Ft)for(let $t=0;$t0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function C5(e,t){let n=null;const i=function r8(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}const Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p0(e){return e.substring(Si.key,Si.keyEnd)}function m0(e,t){const n=Si.textEnd;return n===t?-1:(t=Si.keyEnd=function S5(e,t,n){for(;t32;)t++;return t}(e,Si.key=t,n),zs(e,t,n))}function zs(e,t,n){for(;t=0;n=m0(t,n))to(e,p0(t),!0)}function Wo(e,t,n,i){const o=lt(),r=O(),u=pn(2);r.firstUpdatePass&&b0(r,e,u,i),t!==yn&&Fi(o,u,t)&&D0(r,r.data[sn()],o,o[11],e,o[u+1]=function L5(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=I(er(e)))),e}(t,n),i,u)}function Go(e,t,n,i){const o=O(),r=pn(2);o.firstUpdatePass&&b0(o,null,r,i);const u=lt();if(n!==yn&&Fi(u,r,n)){const f=o.data[sn()];if(z0(f,i)&&!M0(o,r)){let v=i?f.classesWithoutHost:f.stylesWithoutHost;null!==v&&(n=R(v,n||"")),f4(o,f,u,n,i)}else!function V5(e,t,n,i,o,r,u,f){o===yn&&(o=Ne);let v=0,T=0,N=0=e.expandoStartIndex}function b0(e,t,n,i){const o=e.data;if(null===o[n+1]){const r=o[sn()],u=M0(e,n);z0(r,i)&&null===t&&!u&&(t=!1),t=function O5(e,t,n,i){const o=Oi(e);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=z4(null,e,t,n,i),t.attrs,i),r=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=z4(o,e,t,n,i),null===r){let v=function A5(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==tr(i))return e[Po(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=z4(null,e,t,v[1],i),v=la(v,t.attrs,i),function k5(e,t,n,i){e[Po(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else r=function F5(e,t,n){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(T=!0)}else N=n;if(o)if(0!==v){const Pe=Po(e[f+1]);e[i+1]=ta(Pe,f),0!==Pe&&(e[Pe+1]=n1(e[Pe+1],i)),e[f+1]=function d8(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=ta(f,0),0!==f&&(e[f+1]=n1(e[f+1],i)),f=i;else e[i+1]=ta(v,0),0===f?f=i:e[v+1]=n1(e[v+1],i),v=i;T&&(e[i+1]=t1(e[i+1])),f0(e,N,i,!0),f0(e,N,i,!1),function b5(e,t,n,i,o){const r=o?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Or(r,t)>=0&&(n[i+1]=o1(n[i+1]))}(t,N,e,i,r),u=ta(f,v),r?t.classBindings=u:t.styleBindings=u}(o,r,t,n,u,i)}}function z4(e,t,n,i,o){let r=null;const u=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const v=e[o],T=Array.isArray(v),N=T?v[1]:v,re=null===N;let Pe=n[o+1];Pe===yn&&(Pe=re?Ne:void 0);let We=re?Ta(Pe,i):N===i?Pe:void 0;if(T&&!L1(We)&&(We=Ta(v,i)),L1(We)&&(f=We,u))return f;const gt=e[o+1];o=u?Po(gt):tr(gt)}if(null!==t){let v=r?t.residualClasses:t.residualStyles;null!=v&&(f=Ta(v,i))}return f}function L1(e){return void 0!==e}function z0(e,t){return 0!=(e.flags&(t?16:32))}function S0(e,t=""){const n=lt(),i=O(),o=e+20,r=i.firstCreatePass?Rr(i,o,1,t,null):i.data[o],u=n[o]=function Wa(e,t){return Bn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Xs(i,n,u,r),ne(r,!1)}function S4(e){return H1("",e,""),S4}function H1(e,t,n){const i=lt(),o=Wr(i,e,t,n);return o!==yn&&nr(i,sn(),o),H1}function T4(e,t,n,i,o){const r=lt(),u=Gr(r,e,t,n,i,o);return u!==yn&&nr(r,sn(),u),T4}function I0(e,t,n){Go(to,or,Wr(lt(),e,t,n),!0)}function x4(e,t,n){const i=lt();if(Fi(i,Jt(),t)){const r=O(),u=xn();no(r,u,i,e,t,Rl(Oi(r.data),u,i),n,!0)}return x4}const Jr=void 0;var n7=["en",[["a","p"],["AM","PM"],Jr],[["AM","PM"],Jr,Jr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Jr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Jr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Jr,"{1} 'at' {0}",Jr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function t7(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ss={};function i7(e,t,n){"string"!=typeof t&&(n=t,t=e[an.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ss[t]=e,n&&(Ss[t][an.ExtraData]=n)}function P4(e){const t=function o7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=G0(t);if(n)return n;const i=t.split("-")[0];if(n=G0(i),n)return n;if("en"===i)return n7;throw new Error(`Missing locale data for the locale "${e}".`)}function W0(e){return P4(e)[an.PluralCase]}function G0(e){return e in Ss||(Ss[e]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[e]),Ss[e]}var an=(()=>((an=an||{})[an.LocaleId=0]="LocaleId",an[an.DayPeriodsFormat=1]="DayPeriodsFormat",an[an.DayPeriodsStandalone=2]="DayPeriodsStandalone",an[an.DaysFormat=3]="DaysFormat",an[an.DaysStandalone=4]="DaysStandalone",an[an.MonthsFormat=5]="MonthsFormat",an[an.MonthsStandalone=6]="MonthsStandalone",an[an.Eras=7]="Eras",an[an.FirstDayOfWeek=8]="FirstDayOfWeek",an[an.WeekendRange=9]="WeekendRange",an[an.DateFormat=10]="DateFormat",an[an.TimeFormat=11]="TimeFormat",an[an.DateTimeFormat=12]="DateTimeFormat",an[an.NumberSymbols=13]="NumberSymbols",an[an.NumberFormats=14]="NumberFormats",an[an.CurrencyCode=15]="CurrencyCode",an[an.CurrencySymbol=16]="CurrencySymbol",an[an.CurrencyName=17]="CurrencyName",an[an.Currencies=18]="Currencies",an[an.Directionality=19]="Directionality",an[an.PluralCase=20]="PluralCase",an[an.ExtraData=21]="ExtraData",an))();const N1="en-US";let K0=N1;function k4(e,t,n,i,o){if(e=ee(e),Array.isArray(e))for(let r=0;r>20;if(Ur(e)||!e.multi){const We=new No(v,o,ca),gt=I4(f,t,o?N:N+Pe,re);-1===gt?(d(ur(T,u),r,f),F4(r,e,t.length),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push(We),u.push(We)):(n[gt]=We,u[gt]=We)}else{const We=I4(f,t,N+Pe,re),gt=I4(f,t,N,N+Pe),xt=We>=0&&n[We],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!xt){d(ur(T,u),r,f);const $t=function nf(e,t,n,i,o){const r=new No(e,n,ca);return r.multi=[],r.index=t,r.componentProviders=0,yu(r,o,i&&!n),r}(o?tf:ef,n.length,o,i,v);!o&&Ft&&(n[gt].providerFactory=$t),F4(r,e,t.length,0),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push($t),u.push($t)}else F4(r,e,We>-1?We:gt,yu(n[o?gt:We],v,!o&&i));!o&&i&&Ft&&n[gt].componentProviders++}}}function F4(e,t,n,i){const o=Ur(t),r=function r6(e){return!!e.useClass}(t);if(o||r){const v=(r?ee(t.useClass):t).prototype.ngOnDestroy;if(v){const T=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const N=T.indexOf(n);-1===N?T.push(n,[i,v]):T[N+1].push(i,v)}else T.push(n,v)}}}function yu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function I4(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function X7(e,t,n){const i=O();if(i.firstCreatePass){const o=kn(e);k4(n,i.data,i.blueprint,o,!0),k4(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Cu{}class af{resolveComponentFactory(t){throw function sf(e){const t=Error(`No component factory found for ${I(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let pa=(()=>{class e{}return e.NULL=new af,e})();function cf(){return xs(l(),lt())}function xs(e,t){return new ma(Q(e,t))}let ma=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=cf,e})();function lf(e){return e instanceof ma?e.nativeElement:e}class bu{}let uf=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function df(){const e=lt(),n=kt(l().index,e);return function hf(e){return e[11]}(Ot(n)?n:e)}(),e})(),ff=(()=>{class e{}return e.\u0275prov=_t({token:e,providedIn:"root",factory:()=>null}),e})();class wu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new wu("13.1.3"),L4={};function U1(e,t,n,i,o=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&i.push(Wn(r)),Vt(r))for(let f=10;f-1&&(Ka(t,i),js(n,i))}this._attachedToViewContainer=!1}$c(this._lView[1],this._lView)}onDestroy(t){Tl(this._lView[1],this._lView,null,t)}markForCheck(){C1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){b1(this._lView[1],this._lView,this.context)}checkNoChanges(){!function G8(e,t,n){Bt(!0);try{b1(e,t,n)}finally{Bt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $3(e,t){ys(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Fe(902,"");this._appRef=t}}class mf extends ga{constructor(t){super(t),this._view=t}detectChanges(){Ll(this._view)}checkNoChanges(){!function K8(e){Bt(!0);try{Ll(e)}finally{Bt(!1)}}(this._view)}get context(){return null}}class Du extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new H4(n,this.ngModule)}}function Eu(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const vf=new li("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Lc});class H4 extends Cu{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function u8(e){return e.map(l8).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Eu(this.componentDef.inputs)}get outputs(){return Eu(this.componentDef.outputs)}create(t,n,i,o){const r=(o=o||this.ngModule)?function yf(e,t){return{get:(n,i,o)=>{const r=e.get(n,L4,o);return r!==L4||i===L4?r:t.get(n,i,o)}}}(t,o.injector):t,u=r.get(bu,Pi),f=r.get(ff,null),v=u.createRenderer(null,this.componentDef),T=this.componentDef.selectors[0][0]||"div",N=i?function Sl(e,t,n){if(Bn(e))return e.selectRootElement(t,n===me.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):Ga(u.createRenderer(null,this.componentDef),T,function gf(e){const t=e.toLowerCase();return"svg"===t?Ei:"math"===t?"http://www.w3.org/1998/MathML/":null}(T)),re=this.componentDef.onPush?576:528,Pe=function P1(e,t){return{components:[],scheduler:e||Lc,clean:Z8,playerHandler:t||null,flags:0}}(),We=oa(0,null,null,1,0,null,null,null,null,null),gt=Nr(null,We,Pe,re,null,null,u,v,f,r);let xt,Ft;Ho(gt);try{const $t=function r4(e,t,n,i,o,r){const u=n[1];n[20]=e;const v=Rr(u,20,2,"#host",null),T=v.mergedAttrs=t.hostAttrs;null!==T&&(Cs(v,T,!0),null!==e&&(is(o,e,T),null!==v.classes&&Xa(o,e,v.classes),null!==v.styles&&ol(o,e,v.styles)));const N=i.createRenderer(e,t),re=Nr(n,El(t),null,t.onPush?64:16,n[20],v,i,N,r||null,null);return u.firstCreatePass&&(d(ur(v,n),u,t.type),v1(u,v),kl(v,n.length,1)),ra(n,re),n[20]=re}(N,this.componentDef,gt,u,v);if(N)if(i)is(v,N,["ng-version",pf.full]);else{const{attrs:bt,classes:nn}=function h8(e){const t=[],n=[];let i=1,o=2;for(;i0&&Xa(v,N,nn.join(" "))}if(Ft=ct(We,20),void 0!==n){const bt=Ft.projection=[];for(let nn=0;nnv(u,t)),t.contentQueries){const v=l();t.contentQueries(1,u,v.directiveStart)}const f=l();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Gn(f.index),Ol(n[1],f,0,f.directiveStart,f.directiveEnd,t),Al(t,u)),u}($t,this.componentDef,gt,Pe,[g6]),_s(We,gt,null)}finally{Rt()}return new Cf(this.componentType,xt,xs(Ft,gt),gt,Ft)}}class Cf extends class rf{}{constructor(t,n,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=n,this.hostView=this.changeDetectorRef=new mf(o),this.componentType=t}get injector(){return new co(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ps{}class zu{}const Os=new Map;class xu extends Ps{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Du(this);const i=jt(t);this._bootstrapComponents=Yo(i.bootstrap),this._r3Injector=Wl(t,n,[{provide:Ps,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],I(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=fo.THROW_IF_NOT_FOUND,i=Dt.Default){return t===fo||t===Ps||t===D1?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class N4 extends zu{constructor(t){super(),this.moduleType=t,null!==jt(t)&&function bf(e){const t=new Set;!function n(i){const o=jt(i,!0),r=o.id;null!==r&&(function Su(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${I(t)} vs ${I(t.name)}`)}(r,Os.get(r),i),Os.set(r,i));const u=Yo(o.imports);for(const f of u)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new xu(this.moduleType,t)}}function Pu(e,t,n){const i=Gt()+e,o=lt();return o[i]===yn?$o(o,i,n?t.call(n):t()):function ws(e,t){return e[t]}(o,i)}function Ou(e,t,n,i){return Fu(lt(),Gt(),e,t,n,i)}function Au(e,t,n,i,o){return Iu(lt(),Gt(),e,t,n,i,o)}function ku(e,t,n,i,o,r,u){return function Lu(e,t,n,i,o,r,u,f,v){const T=t+n;return function po(e,t,n,i,o,r){const u=br(e,t,n,i);return br(e,t+2,o,r)||u}(e,T,o,r,u,f)?$o(e,T+4,v?i.call(v,o,r,u,f):i(o,r,u,f)):va(e,T+4)}(lt(),Gt(),e,t,n,i,o,r,u)}function va(e,t){const n=e[t];return n===yn?void 0:n}function Fu(e,t,n,i,o,r){const u=t+n;return Fi(e,u,o)?$o(e,u+1,r?i.call(r,o):i(o)):va(e,u+1)}function Iu(e,t,n,i,o,r,u){const f=t+n;return br(e,f,o,r)?$o(e,f+2,u?i.call(u,o,r):i(o,r)):va(e,f+2)}function Vu(e,t,n,i,o,r,u,f){const v=t+n;return function aa(e,t,n,i,o){const r=br(e,t,n,i);return Fi(e,t+2,o)||r}(e,v,o,r,u)?$o(e,v+3,f?i.call(f,o,r,u):i(o,r,u)):va(e,v+3)}function Nu(e,t){const n=O();let i;const o=e+20;n.firstCreatePass?(i=function xf(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=Ti(i.type)),u=Mn(ca);try{const f=Tr(!1),v=r();return Tr(f),function Qd(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,lt(),o,v),v}finally{Mn(u)}}function Ru(e,t,n){const i=e+20,o=lt(),r=Mt(o,i);return ya(o,i)?Fu(o,Gt(),t,r.transform,n,r):r.transform(n)}function Bu(e,t,n,i){const o=e+20,r=lt(),u=Mt(r,o);return ya(r,o)?Iu(r,Gt(),t,u.transform,n,i,u):u.transform(n,i)}function Yu(e,t,n,i,o){const r=e+20,u=lt(),f=Mt(u,r);return ya(u,r)?Vu(u,Gt(),t,f.transform,n,i,o,f):f.transform(n,i,o)}function ya(e,t){return e[1].data[t].pure}function R4(e){return t=>{setTimeout(e,void 0,t)}}const rr=class Af extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,r,u;let f=t,v=n||(()=>null),T=i;if(t&&"object"==typeof t){const re=t;f=null===(o=re.next)||void 0===o?void 0:o.bind(re),v=null===(r=re.error)||void 0===r?void 0:r.bind(re),T=null===(u=re.complete)||void 0===u?void 0:u.bind(re)}this.__isAsync&&(v=R4(v),f&&(f=R4(f)),T&&(T=R4(T)));const N=super.subscribe({next:f,error:v,complete:T});return t instanceof s.w&&t.add(N),N}};function kf(){return this._results[$r()]()}class B4{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=$r(),i=B4.prototype;i[n]||(i[n]=kf)}get changes(){return this._changes||(this._changes=new rr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=ho(t);(this._changesDetected=!function w2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=Vf,e})();const Ff=_a,If=class extends Ff{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Nr(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[k];return null!==r&&(i[k]=r.createEmbeddedView(n)),_s(n,i,t),new ga(i)}};function Vf(){return $1(l(),lt())}function $1(e,t){return 4&e.type?new If(t,e,xs(e,t)):null}let W1=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lf,e})();function Lf(){return $u(l(),lt())}const Hf=W1,ju=class extends Hf{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new co(this._hostTNode,this._hostLView)}get parentInjector(){const t=m(this._hostTNode,this._hostLView);if(Hs(t)){const n=lr(t,this._hostLView),i=cr(t);return new co(n[1].data[i+8],n)}return new co(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uu(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,r){const u=t&&!function ss(e){return"function"==typeof e}(t);let f;if(u)f=n;else{const re=n||{};f=re.index,i=re.injector,o=re.projectableNodes,r=re.ngModuleRef}const v=u?t:new H4(Ve(t)),T=i||this.parentInjector;if(!r&&null==v.ngModule&&T){const re=T.get(Ps,null);re&&(r=re)}const N=v.create(T,o,void 0,r);return this.insert(N.hostView,f),N}insert(t,n){const i=t._lView,o=i[1];if(function Dn(e){return Vt(e[3])}(i)){const N=this.indexOf(t);if(-1!==N)this.detach(N);else{const re=i[3],Pe=new ju(re,re[6],re[3]);Pe.detach(Pe.indexOf(t))}}const r=this._adjustIndex(n),u=this._lContainer;!function G3(e,t,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=t),i0)i.push(u[f/2]);else{const T=r[f+1],N=t[-v];for(let re=10;re{class e{constructor(n){this.appInits=n,this.resolve=Z1,this.reject=Z1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:f,error:v})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(zi(X4,8))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const yh=new li("AppId"),u9={provide:yh,useFactory:function l9(){return`${e2()}${e2()}${e2()}`},deps:[]};function e2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _h=new li("Platform Initializer"),Ch=new li("Platform ID"),Mh=new li("appBootstrapListener");let bh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const Q1=new li("LocaleId"),wh=new li("DefaultCurrencyCode");class h9{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let t2=(()=>{class e{compileModuleSync(n){return new N4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),r=Yo(jt(n).declarations).reduce((u,f)=>{const v=Ve(f);return v&&u.push(new H4(v)),u},[]);return new h9(i,r)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const f9=(()=>Promise.resolve(0))();function n2(e){"undefined"==typeof Zone?f9.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class mo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function p9(){let e=V.requestAnimationFrame,t=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function v9(e){const t=()=>{!function g9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(V,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,r2(e),e.isCheckStableRunning=!0,o2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),r2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,r,u,f)=>{try{return Dh(e),n.invokeTask(o,r,u,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),Eh(e)}},onInvoke:(n,i,o,r,u,f,v)=>{try{return Dh(e),n.invoke(o,r,u,f,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Eh(e)}},onHasTask:(n,i,o,r)=>{n.hasTask(o,r),i===o&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,r2(e),o2(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(n,i,o,r)=>(n.handleError(o,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const r=this._inner,u=r.scheduleEventTask("NgZoneEvent: "+o,t,m9,Z1,Z1);try{return r.runTask(u,n,i)}finally{r.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const m9={};function o2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function r2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eh(e){e._nesting--,o2(e)}class y9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let zh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mo.assertNotInAngularZone(),n2(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())n2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==r),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:r,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(zi(mo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})(),Sh=(()=>{class e{constructor(){this._applications=new Map,s2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return s2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();class _9{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function C9(e){s2=e}let Ko,s2=new _9;const Th=new li("AllowMultipleToken");class w9{constructor(t,n){this.name=t,this.token=n}}function xh(e,t,n=[]){const i=`Platform: ${t}`,o=new li(i);return(r=[])=>{let u=Ph();if(!u||u.injector.get(Th,!1))if(e)e(n.concat(r).concat({provide:o,useValue:!0}));else{const f=n.concat(r).concat({provide:o,useValue:!0},{provide:E1,useValue:"platform"});!function D9(e){if(Ko&&!Ko.destroyed&&!Ko.injector.get(Th,!1))throw new Fe(400,"");Ko=e.get(Oh);const t=e.get(_h,null);t&&t.forEach(n=>n())}(fo.create({providers:f,name:i}))}return function E9(e){const t=Ph();if(!t)throw new Fe(401,"");return t}()}}function Ph(){return Ko&&!Ko.destroyed?Ko:null}let Oh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const f=function z9(e,t){let n;return n="noop"===e?new y9:("zone.js"===e?void 0:e)||new mo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:mo,useValue:f}];return f.run(()=>{const T=fo.create({providers:v,parent:this.injector,name:n.moduleType.name}),N=n.create(T),re=N.injector.get(gs,null);if(!re)throw new Fe(402,"");return f.runOutsideAngular(()=>{const Pe=f.onError.subscribe({next:We=>{re.handleError(We)}});N.onDestroy(()=>{a2(this._modules,N),Pe.unsubscribe()})}),function S9(e,t,n){try{const i=n();return y4(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(re,f,()=>{const Pe=N.injector.get(ks);return Pe.runInitializers(),Pe.donePromise.then(()=>(function c7(e){ke(e,"Expected localeId to be defined"),"string"==typeof e&&(K0=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Q1,N1)||N1),this._moduleDoBootstrap(N),N))})})}bootstrapModule(n,i=[]){const o=Ah({},i);return function M9(e,t,n){const i=new N4(n);return Promise.resolve(i)}(0,0,n).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(n){const i=n.injector.get(Ma);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Fe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Fe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(zi(fo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function Ah(e,t){return Array.isArray(t)?t.reduce(Ah,e):Object.assign(Object.assign({},e),t)}let Ma=(()=>{class e{constructor(n,i,o,r,u){this._zone=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const f=new G.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new G.y(T=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),n2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,T.next(!0))})})});const re=this._zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{N.unsubscribe(),re.unsubscribe()}});this.isStable=(0,oe.T)(f,v.pipe((0,q.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Fe(405,"");let o;o=n instanceof Cu?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const r=function b9(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Ps),f=o.create(fo.NULL,[],i||o.selector,r),v=f.location.nativeElement,T=f.injector.get(zh,null),N=T&&f.injector.get(Sh);return T&&N&&N.registerApplication(v,T),f.onDestroy(()=>{this.detachView(f.hostView),a2(this.components,f),N&&N.unregisterApplication(v)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Fe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;a2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mh,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(zi(mo),zi(fo),zi(gs),zi(pa),zi(ks))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function a2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Fh=!0,Ih=!1;function x9(){return Ih=!0,Fh}function P9(){if(Ih)throw new Error("Cannot enable prod mode after platform setup.");Fh=!1}let O9=(()=>{class e{}return e.__NG_ELEMENT_ID__=A9,e})();function A9(e){return function k9(e,t,n){if(ni(e)&&!n){const i=kt(e.index,t);return new ga(i,i)}return 47&e.type?new ga(t[16],t):null}(l(),lt(),16==(16&e))}class Bh{constructor(){}supports(t){return bs(t)}create(t){return new N9(t)}}const H9=(e,t)=>t;class N9{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H9}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,r=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,f,u,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,r,o)):t=this._addAfter(new R9(n,i),r,o),t}_verifyReinsertion(t,n,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class R9{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class B9{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Yh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new B9,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jh(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const r=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const r=o._prev,u=o._next;return r&&(r._next=u),u&&(u._prev=r),o._next=null,o._prev=null,o}const i=new j9(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class j9{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $h(){return new J1([new Bh])}let J1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||$h()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:$h}),e})();function Wh(){return new X1([new Uh])}let X1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Wh()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Wh}),e})();const U9=[new Uh],W9=new J1([new Bh]),G9=new X1(U9),K9=xh(null,"core",[{provide:Ch,useValue:"unknown"},{provide:Oh,deps:[fo]},{provide:Sh,deps:[]},{provide:bh,deps:[]}]),X9=[{provide:Ma,useClass:Ma,deps:[mo,fo,gs,pa,ks]},{provide:vf,deps:[mo],useFactory:function ep(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:ks,useClass:ks,deps:[[new _r,X4]]},{provide:t2,useClass:t2,deps:[]},u9,{provide:J1,useFactory:function Z9(){return W9},deps:[]},{provide:X1,useFactory:function Q9(){return G9},deps:[]},{provide:Q1,useFactory:function q9(e){return e||function J9(){return"undefined"!=typeof $localize&&$localize.locale||N1}()},deps:[[new hs(Q1),new _r,new Ar]]},{provide:wh,useValue:"USD"}];let tp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(zi(Ma))},e.\u0275mod=jn({type:e}),e.\u0275inj=St({providers:X9}),e})()},4182:(yt,be,p)=>{p.d(be,{TO:()=>Un,ve:()=>_e,Wl:()=>Ye,Fj:()=>vt,qu:()=>Yt,oH:()=>_o,u:()=>oo,sg:()=>Ii,u5:()=>dn,JU:()=>ee,a5:()=>Cn,JJ:()=>qe,JL:()=>x,F:()=>se,On:()=>kn,Mq:()=>hn,c5:()=>Mt,UX:()=>Yn,Q7:()=>Pi,kI:()=>et,_Y:()=>bi});var a=p(5e3),s=p(9808),G=p(6498),oe=p(6688),q=p(4850),_=p(7830),W=p(5254);function R(D,C){return new G.y(y=>{const U=D.length;if(0===U)return void y.complete();const at=new Array(U);let Nt=0,lt=0;for(let O=0;O{l||(l=!0,lt++),at[O]=g},error:g=>y.error(g),complete:()=>{Nt++,(Nt===U||!l)&&(lt===U&&y.next(C?C.reduce((g,F,ne)=>(g[F]=at[ne],g),{}):at),y.complete())}}))}})}let H=(()=>{class D{constructor(y,U){this._renderer=y,this._elementRef=U,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(y,U){this._renderer.setProperty(this._elementRef.nativeElement,y,U)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq))},D.\u0275dir=a.lG2({type:D}),D})(),B=(()=>{class D extends H{}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const ee=new a.OlP("NgValueAccessor"),ye={provide:ee,useExisting:(0,a.Gpc)(()=>Ye),multi:!0};let Ye=(()=>{class D extends B{writeValue(y){this.setProperty("checked",y)}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,U){1&y&&a.NdJ("change",function(Nt){return U.onChange(Nt.target.checked)})("blur",function(){return U.onTouched()})},features:[a._Bn([ye]),a.qOj]}),D})();const Fe={provide:ee,useExisting:(0,a.Gpc)(()=>vt),multi:!0},_e=new a.OlP("CompositionEventMode");let vt=(()=>{class D extends H{constructor(y,U,at){super(y,U),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ze(){const D=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(y){this.setProperty("value",null==y?"":y)}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(_e,8))},D.\u0275dir=a.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(y,U){1&y&&a.NdJ("input",function(Nt){return U._handleInput(Nt.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(Nt){return U._compositionEnd(Nt.target.value)})},features:[a._Bn([Fe]),a.qOj]}),D})();function Je(D){return null==D||0===D.length}function zt(D){return null!=D&&"number"==typeof D.length}const ut=new a.OlP("NgValidators"),Ie=new a.OlP("NgAsyncValidators"),$e=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class et{static min(C){return function Se(D){return C=>{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y>D?{max:{max:D,actual:C.value}}:null}}(C)}static required(C){return J(C)}static requiredTrue(C){return function fe(D){return!0===D.value?null:{required:!0}}(C)}static email(C){return function he(D){return Je(D.value)||$e.test(D.value)?null:{email:!0}}(C)}static minLength(C){return function te(D){return C=>Je(C.value)||!zt(C.value)?null:C.value.lengthzt(C.value)&&C.value.length>D?{maxlength:{requiredLength:D,actualLength:C.value.length}}:null}(C)}static pattern(C){return ie(C)}static nullValidator(C){return null}static compose(C){return dt(C)}static composeAsync(C){return it(C)}}function J(D){return Je(D.value)?{required:!0}:null}function ie(D){if(!D)return Ue;let C,y;return"string"==typeof D?(y="","^"!==D.charAt(0)&&(y+="^"),y+=D,"$"!==D.charAt(D.length-1)&&(y+="$"),C=new RegExp(y)):(y=D.toString(),C=D),U=>{if(Je(U.value))return null;const at=U.value;return C.test(at)?null:{pattern:{requiredPattern:y,actualValue:at}}}}function Ue(D){return null}function je(D){return null!=D}function tt(D){const C=(0,a.QGY)(D)?(0,W.D)(D):D;return(0,a.CqO)(C),C}function ke(D){let C={};return D.forEach(y=>{C=null!=y?Object.assign(Object.assign({},C),y):C}),0===Object.keys(C).length?null:C}function ve(D,C){return C.map(y=>y(D))}function Qe(D){return D.map(C=>function mt(D){return!D.validate}(C)?C:y=>C.validate(y))}function dt(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return ke(ve(y,C))}}function _t(D){return null!=D?dt(Qe(D)):null}function it(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return function I(...D){if(1===D.length){const C=D[0];if((0,oe.k)(C))return R(C,null);if((0,_.K)(C)&&Object.getPrototypeOf(C)===Object.prototype){const y=Object.keys(C);return R(y.map(U=>C[U]),y)}}if("function"==typeof D[D.length-1]){const C=D.pop();return R(D=1===D.length&&(0,oe.k)(D[0])?D[0]:D,null).pipe((0,q.U)(y=>C(...y)))}return R(D,null)}(ve(y,C).map(tt)).pipe((0,q.U)(ke))}}function St(D){return null!=D?it(Qe(D)):null}function ot(D,C){return null===D?[C]:Array.isArray(D)?[...D,C]:[D,C]}function Et(D){return D._rawValidators}function Zt(D){return D._rawAsyncValidators}function mn(D){return D?Array.isArray(D)?D:[D]:[]}function vn(D,C){return Array.isArray(D)?D.includes(C):D===C}function Ut(D,C){const y=mn(C);return mn(D).forEach(at=>{vn(y,at)||y.push(at)}),y}function un(D,C){return mn(C).filter(y=>!vn(D,y))}class _n{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(C){this._rawValidators=C||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(C){this._rawAsyncValidators=C||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(C){this._onDestroyCallbacks.push(C)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(C=>C()),this._onDestroyCallbacks=[]}reset(C){this.control&&this.control.reset(C)}hasError(C,y){return!!this.control&&this.control.hasError(C,y)}getError(C,y){return this.control?this.control.getError(C,y):null}}class Cn extends _n{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dt extends _n{get formDirective(){return null}get path(){return null}}class Sn{constructor(C){this._cd=C}is(C){var y,U,at;return"submitted"===C?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(at=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===at?void 0:at[C])}}let qe=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Cn,2))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[a.qOj]}),D})(),x=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[a.qOj]}),D})();function $(D,C){return[...C.path,D]}function ue(D,C){Qt(D,C),C.valueAccessor.writeValue(D.value),function Vn(D,C){C.valueAccessor.registerOnChange(y=>{D._pendingValue=y,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&ri(D,C)})}(D,C),function jn(D,C){const y=(U,at)=>{C.valueAccessor.writeValue(U),at&&C.viewToModelUpdate(U)};D.registerOnChange(y),C._registerOnDestroy(()=>{D._unregisterOnChange(y)})}(D,C),function An(D,C){C.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&ri(D,C),"submit"!==D.updateOn&&D.markAsTouched()})}(D,C),function At(D,C){if(C.valueAccessor.setDisabledState){const y=U=>{C.valueAccessor.setDisabledState(U)};D.registerOnDisabledChange(y),C._registerOnDestroy(()=>{D._unregisterOnDisabledChange(y)})}}(D,C)}function Ae(D,C,y=!0){const U=()=>{};C.valueAccessor&&(C.valueAccessor.registerOnChange(U),C.valueAccessor.registerOnTouched(U)),gn(D,C),D&&(C._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function wt(D,C){D.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(C)})}function Qt(D,C){const y=Et(D);null!==C.validator?D.setValidators(ot(y,C.validator)):"function"==typeof y&&D.setValidators([y]);const U=Zt(D);null!==C.asyncValidator?D.setAsyncValidators(ot(U,C.asyncValidator)):"function"==typeof U&&D.setAsyncValidators([U]);const at=()=>D.updateValueAndValidity();wt(C._rawValidators,at),wt(C._rawAsyncValidators,at)}function gn(D,C){let y=!1;if(null!==D){if(null!==C.validator){const at=Et(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.validator);Nt.length!==at.length&&(y=!0,D.setValidators(Nt))}}if(null!==C.asyncValidator){const at=Zt(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.asyncValidator);Nt.length!==at.length&&(y=!0,D.setAsyncValidators(Nt))}}}const U=()=>{};return wt(C._rawValidators,U),wt(C._rawAsyncValidators,U),y}function ri(D,C){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),C.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function qt(D,C){Qt(D,C)}function Ve(D,C){if(!D.hasOwnProperty("model"))return!1;const y=D.model;return!!y.isFirstChange()||!Object.is(C,y.currentValue)}function It(D,C){D._syncPendingControls(),C.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function jt(D,C){if(!C)return null;let y,U,at;return Array.isArray(C),C.forEach(Nt=>{Nt.constructor===vt?y=Nt:function ht(D){return Object.getPrototypeOf(D.constructor)===B}(Nt)?U=Nt:at=Nt}),at||U||y||null}function fn(D,C){const y=D.indexOf(C);y>-1&&D.splice(y,1)}const Zn="VALID",ii="INVALID",En="PENDING",ei="DISABLED";function Tt(D){return(Te(D)?D.validators:D)||null}function rn(D){return Array.isArray(D)?_t(D):D||null}function bn(D,C){return(Te(C)?C.asyncValidators:D)||null}function Qn(D){return Array.isArray(D)?St(D):D||null}function Te(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const Ze=D=>D instanceof $n,De=D=>D instanceof Nn,rt=D=>D instanceof Rn;function Wt(D){return Ze(D)?D.value:D.getRawValue()}function on(D,C){const y=De(D),U=D.controls;if(!(y?Object.keys(U):U).length)throw new a.vHH(1e3,"");if(!U[C])throw new a.vHH(1001,"")}function Lt(D,C){De(D),D._forEachChild((U,at)=>{if(void 0===C[at])throw new a.vHH(1002,"")})}class Un{constructor(C,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=C,this._rawAsyncValidators=y,this._composedValidatorFn=rn(this._rawValidators),this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(C){this._rawValidators=this._composedValidatorFn=C}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(C){this._rawAsyncValidators=this._composedAsyncValidatorFn=C}get parent(){return this._parent}get valid(){return this.status===Zn}get invalid(){return this.status===ii}get pending(){return this.status==En}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(C){this._rawValidators=C,this._composedValidatorFn=rn(C)}setAsyncValidators(C){this._rawAsyncValidators=C,this._composedAsyncValidatorFn=Qn(C)}addValidators(C){this.setValidators(Ut(C,this._rawValidators))}addAsyncValidators(C){this.setAsyncValidators(Ut(C,this._rawAsyncValidators))}removeValidators(C){this.setValidators(un(C,this._rawValidators))}removeAsyncValidators(C){this.setAsyncValidators(un(C,this._rawAsyncValidators))}hasValidator(C){return vn(this._rawValidators,C)}hasAsyncValidator(C){return vn(this._rawAsyncValidators,C)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(C={}){this.touched=!0,this._parent&&!C.onlySelf&&this._parent.markAsTouched(C)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(C=>C.markAllAsTouched())}markAsUntouched(C={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}markAsDirty(C={}){this.pristine=!1,this._parent&&!C.onlySelf&&this._parent.markAsDirty(C)}markAsPristine(C={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}markAsPending(C={}){this.status=En,!1!==C.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!C.onlySelf&&this._parent.markAsPending(C)}disable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=ei,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this._updateValue(),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=Zn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(C){this._parent&&!C.onlySelf&&(this._parent.updateValueAndValidity(C),C.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(C){this._parent=C}updateValueAndValidity(C={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zn||this.status===En)&&this._runAsyncValidator(C.emitEvent)),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!C.onlySelf&&this._parent.updateValueAndValidity(C)}_updateTreeValidity(C={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(C)),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:Zn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(C){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const y=tt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:C})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(C,y={}){this.errors=C,this._updateControlsErrors(!1!==y.emitEvent)}get(C){return function Ln(D,C,y){if(null==C||(Array.isArray(C)||(C=C.split(y)),Array.isArray(C)&&0===C.length))return null;let U=D;return C.forEach(at=>{U=De(U)?U.controls.hasOwnProperty(at)?U.controls[at]:null:rt(U)&&U.at(at)||null}),U}(this,C,".")}getError(C,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[C]:null}hasError(C,y){return!!this.getError(C,y)}get root(){let C=this;for(;C._parent;)C=C._parent;return C}_updateControlsErrors(C){this.status=this._calculateStatus(),C&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(C)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(ii)?ii:Zn}_anyControlsHaveStatus(C){return this._anyControls(y=>y.status===C)}_anyControlsDirty(){return this._anyControls(C=>C.dirty)}_anyControlsTouched(){return this._anyControls(C=>C.touched)}_updatePristine(C={}){this.pristine=!this._anyControlsDirty(),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}_updateTouched(C={}){this.touched=this._anyControlsTouched(),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}_isBoxedValue(C){return"object"==typeof C&&null!==C&&2===Object.keys(C).length&&"value"in C&&"disabled"in C}_registerOnCollectionChange(C){this._onCollectionChange=C}_setUpdateStrategy(C){Te(C)&&null!=C.updateOn&&(this._updateOn=C.updateOn)}_parentMarkedDirty(C){return!C&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class $n extends Un{constructor(C=null,y,U){super(Tt(y),bn(U,y)),this._onChange=[],this._pendingChange=!1,this._applyFormState(C),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(C,y={}){this.value=this._pendingValue=C,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(C,y={}){this.setValue(C,y)}reset(C=null,y={}){this._applyFormState(C),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(C){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(C){this._onChange.push(C)}_unregisterOnChange(C){fn(this._onChange,C)}registerOnDisabledChange(C){this._onDisabledChange.push(C)}_unregisterOnDisabledChange(C){fn(this._onDisabledChange,C)}_forEachChild(C){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(C){this._isBoxedValue(C)?(this.value=this._pendingValue=C.value,C.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=C}}class Nn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(C,y){return this.controls[C]?this.controls[C]:(this.controls[C]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(C,y,U={}){this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],y&&this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(C){return this.controls.hasOwnProperty(C)&&this.controls[C].enabled}setValue(C,y={}){Lt(this,C),Object.keys(C).forEach(U=>{on(this,U),this.controls[U].setValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(Object.keys(C).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C={},y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(C,y,U)=>(C[U]=Wt(y),C))}_syncPendingControls(){let C=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&C(U,y)})}_setUpControls(){this._forEachChild(C=>{C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(C){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&C(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(C,y,U)=>((y.enabled||this.disabled)&&(C[U]=y.value),C))}_reduceChildren(C,y){let U=C;return this._forEachChild((at,Nt)=>{U=y(U,at,Nt)}),U}_allControlsDisabled(){for(const C of Object.keys(this.controls))if(this.controls[C].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Rn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(C){return this.controls[C]}push(C,y={}){this.controls.push(C),this._registerControl(C),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(C,y,U={}){this.controls.splice(C,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),y&&(this.controls.splice(C,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(C,y={}){Lt(this,C),C.forEach((U,at)=>{on(this,at),this.at(at).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(C.forEach((U,at)=>{this.at(at)&&this.at(at).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C=[],y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(C=>Wt(C))}clear(C={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:C.emitEvent}))}_syncPendingControls(){let C=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){this.controls.forEach((y,U)=>{C(y,U)})}_updateValue(){this.value=this.controls.filter(C=>C.enabled||this.disabled).map(C=>C.value)}_anyControls(C){return this.controls.some(y=>y.enabled&&C(y))}_setUpControls(){this._forEachChild(C=>this._registerControl(C))}_allControlsDisabled(){for(const C of this.controls)if(C.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(C){C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Dt,useExisting:(0,a.Gpc)(()=>se)},X=(()=>Promise.resolve(null))();let se=(()=>{class D extends Dt{constructor(y,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new Nn({},_t(y),St(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){X.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),ue(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),fn(this._directives,y)})}addFormGroup(y){X.then(()=>{const U=this._findContainer(y.path),at=new Nn({});qt(at,y),U.registerControl(y.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){X.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,It(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([qn]),a.qOj]}),D})(),k=(()=>{class D extends Dt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const Vt={provide:Dt,useExisting:(0,a.Gpc)(()=>hn)};let hn=(()=>{class D extends k{constructor(y,U,at){super(),this._parent=y,this._setValidators(U),this._setAsyncValidators(at)}_checkParentType(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,5),a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a._Bn([Vt]),a.qOj]}),D})();const ni={provide:Cn,useExisting:(0,a.Gpc)(()=>kn)},ai=(()=>Promise.resolve(null))();let kn=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this.control=new $n,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),Ve(y,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ue(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(y){ai.then(()=>{this.control.setValue(y,{emitViewToModelChange:!1})})}_updateDisabled(y){const U=y.isDisabled.currentValue,at=""===U||U&&"false"!==U;ai.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,9),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([ni]),a.qOj,a.TTD]}),D})(),bi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})(),wi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({}),D})();const Wi=new a.OlP("NgModelWithFormControlWarning"),yo={provide:Cn,useExisting:(0,a.Gpc)(()=>_o)};let _o=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(U),this.valueAccessor=jt(0,at)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const U=y.form.previousValue;U&&Ae(U,this,!1),ue(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ve(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ae(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_isControlChanged(y){return y.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([yo]),a.qOj,a.TTD]}),D})();const sr={provide:Dt,useExisting:(0,a.Gpc)(()=>Ii)};let Ii=(()=>{class D extends Dt{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(gn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return ue(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Ae(y.control||null,y,!1),fn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,It(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,at=this.form.get(y.path);U!==at&&(Ae(U||null,y),Ze(at)&&(ue(at,y),y.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);qt(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Re(D,C){return gn(D,C)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qt(this.form,this),this._oldForm&&gn(this._oldForm,this)}_checkFormPresent(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([sr]),a.qOj,a.TTD]}),D})();const Qo={provide:Cn,useExisting:(0,a.Gpc)(()=>oo)};let oo=(()=>{class D extends Cn{constructor(y,U,at,Nt,lt){super(),this._ngModelWarningConfig=lt,this._added=!1,this.update=new a.vpe,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}set isDisabled(y){}ngOnChanges(y){this._added||this._setUpControl(),Ve(y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,13),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([Qo]),a.qOj,a.TTD]}),D})();const Xo={provide:ut,useExisting:(0,a.Gpc)(()=>Pi),multi:!0};let Pi=(()=>{class D{constructor(){this._required=!1}get required(){return this._required}set required(y){this._required=null!=y&&!1!==y&&"false"!=`${y}`,this._onChange&&this._onChange()}validate(y){return this.required?J(y):null}registerOnValidatorChange(y){this._onChange=y}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("required",U.required?"":null)},inputs:{required:"required"},features:[a._Bn([Xo])]}),D})();const ct={provide:ut,useExisting:(0,a.Gpc)(()=>Mt),multi:!0};let Mt=(()=>{class D{constructor(){this._validator=Ue}ngOnChanges(y){"pattern"in y&&(this._createValidator(),this._onChange&&this._onChange())}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}_createValidator(){this._validator=ie(this.pattern)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[a._Bn([ct]),a.TTD]}),D})(),Dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[[wi]]}),D})(),dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yn=(()=>{class D{static withConfig(y){return{ngModule:D,providers:[{provide:Wi,useValue:y.warnOnNgModelWithFormControl}]}}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yt=(()=>{class D{group(y,U=null){const at=this._reduceControls(y);let O,Nt=null,lt=null;return null!=U&&(function On(D){return void 0!==D.asyncValidators||void 0!==D.validators||void 0!==D.updateOn}(U)?(Nt=null!=U.validators?U.validators:null,lt=null!=U.asyncValidators?U.asyncValidators:null,O=null!=U.updateOn?U.updateOn:void 0):(Nt=null!=U.validator?U.validator:null,lt=null!=U.asyncValidator?U.asyncValidator:null)),new Nn(at,{asyncValidators:lt,updateOn:O,validators:Nt})}control(y,U,at){return new $n(y,U,at)}array(y,U,at){const Nt=y.map(lt=>this._createControl(lt));return new Rn(Nt,U,at)}_reduceControls(y){const U={};return Object.keys(y).forEach(at=>{U[at]=this._createControl(y[at])}),U}_createControl(y){return Ze(y)||De(y)||rt(y)?y:Array.isArray(y)?this.control(y[0],y.length>1?y[1]:null,y.length>2?y[2]:null):this.control(y)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275prov=a.Yz7({token:D,factory:D.\u0275fac,providedIn:Yn}),D})()},6360:(yt,be,p)=>{p.d(be,{Qb:()=>C,PW:()=>Nt});var a=p(5e3),s=p(2313),G=p(1777);function oe(){return"undefined"!=typeof window&&void 0!==window.document}function q(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(O){switch(O.length){case 0:return new G.ZN;case 1:return O[0];default:return new G.ZE(O)}}function W(O,c,l,g,F={},ne={}){const ge=[],Ce=[];let Ke=-1,ft=null;if(g.forEach(Pt=>{const Bt=Pt.offset,Gt=Bt==Ke,ln=Gt&&ft||{};Object.keys(Pt).forEach(Kt=>{let Jt=Kt,pn=Pt[Kt];if("offset"!==Kt)switch(Jt=c.normalizePropertyName(Jt,ge),pn){case G.k1:pn=F[Kt];break;case G.l3:pn=ne[Kt];break;default:pn=c.normalizeStyleValue(Kt,Jt,pn,ge)}ln[Jt]=pn}),Gt||Ce.push(ln),ft=ln,Ke=Bt}),ge.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${ge.join(Pt)}`)}return Ce}function I(O,c,l,g){switch(c){case"start":O.onStart(()=>g(l&&R(l,"start",O)));break;case"done":O.onDone(()=>g(l&&R(l,"done",O)));break;case"destroy":O.onDestroy(()=>g(l&&R(l,"destroy",O)))}}function R(O,c,l){const g=l.totalTime,ne=H(O.element,O.triggerName,O.fromState,O.toState,c||O.phaseName,null==g?O.totalTime:g,!!l.disabled),ge=O._data;return null!=ge&&(ne._data=ge),ne}function H(O,c,l,g,F="",ne=0,ge){return{element:O,triggerName:c,fromState:l,toState:g,phaseName:F,totalTime:ne,disabled:!!ge}}function B(O,c,l){let g;return O instanceof Map?(g=O.get(c),g||O.set(c,g=l)):(g=O[c],g||(g=O[c]=l)),g}function ee(O){const c=O.indexOf(":");return[O.substring(1,c),O.substr(c+1)]}let ye=(O,c)=>!1,Ye=(O,c,l)=>[];(q()||"undefined"!=typeof Element)&&(ye=oe()?(O,c)=>{for(;c&&c!==document.documentElement;){if(c===O)return!0;c=c.parentNode||c.host}return!1}:(O,c)=>O.contains(c),Ye=(O,c,l)=>{if(l)return Array.from(O.querySelectorAll(c));const g=O.querySelector(c);return g?[g]:[]});let _e=null,vt=!1;function Je(O){_e||(_e=function zt(){return"undefined"!=typeof document?document.body:null}()||{},vt=!!_e.style&&"WebkitAppearance"in _e.style);let c=!0;return _e.style&&!function ze(O){return"ebkit"==O.substring(1,6)}(O)&&(c=O in _e.style,!c&&vt&&(c="Webkit"+O.charAt(0).toUpperCase()+O.substr(1)in _e.style)),c}const ut=ye,Ie=Ye;function $e(O){const c={};return Object.keys(O).forEach(l=>{const g=l.replace(/([a-z])([A-Z])/g,"$1-$2");c[g]=O[l]}),c}let et=(()=>{class O{validateStyleProperty(l){return Je(l)}matchesElement(l,g){return!1}containsElement(l,g){return ut(l,g)}query(l,g,F){return Ie(l,g,F)}computeStyle(l,g,F){return F||""}animate(l,g,F,ne,ge,Ce=[],Ke){return new G.ZN(F,ne)}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})(),Se=(()=>{class O{}return O.NOOP=new et,O})();const he="ng-enter",te="ng-leave",le="ng-trigger",ie=".ng-trigger",Ue="ng-animating",je=".ng-animating";function tt(O){if("number"==typeof O)return O;const c=O.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:ke(parseFloat(c[1]),c[2])}function ke(O,c){return"s"===c?1e3*O:O}function ve(O,c,l){return O.hasOwnProperty("duration")?O:function mt(O,c,l){let F,ne=0,ge="";if("string"==typeof O){const Ce=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ce)return c.push(`The provided timing value "${O}" is invalid.`),{duration:0,delay:0,easing:""};F=ke(parseFloat(Ce[1]),Ce[2]);const Ke=Ce[3];null!=Ke&&(ne=ke(parseFloat(Ke),Ce[4]));const ft=Ce[5];ft&&(ge=ft)}else F=O;if(!l){let Ce=!1,Ke=c.length;F<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ce=!0),ne<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ce=!0),Ce&&c.splice(Ke,0,`The provided timing value "${O}" is invalid.`)}return{duration:F,delay:ne,easing:ge}}(O,c,l)}function Qe(O,c={}){return Object.keys(O).forEach(l=>{c[l]=O[l]}),c}function _t(O,c,l={}){if(c)for(let g in O)l[g]=O[g];else Qe(O,l);return l}function it(O,c,l){return l?c+":"+l+";":""}function St(O){let c="";for(let l=0;l{const F=Dt(g);l&&!l.hasOwnProperty(g)&&(l[g]=O.style[F]),O.style[F]=c[g]}),q()&&St(O))}function Et(O,c){O.style&&(Object.keys(c).forEach(l=>{const g=Dt(l);O.style[g]=""}),q()&&St(O))}function Zt(O){return Array.isArray(O)?1==O.length?O[0]:(0,G.vP)(O):O}const vn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ut(O){let c=[];if("string"==typeof O){let l;for(;l=vn.exec(O);)c.push(l[1]);vn.lastIndex=0}return c}function un(O,c,l){const g=O.toString(),F=g.replace(vn,(ne,ge)=>{let Ce=c[ge];return c.hasOwnProperty(ge)||(l.push(`Please provide a value for the animation param ${ge}`),Ce=""),Ce.toString()});return F==g?O:F}function _n(O){const c=[];let l=O.next();for(;!l.done;)c.push(l.value),l=O.next();return c}const Cn=/-+([a-z0-9])/g;function Dt(O){return O.replace(Cn,(...c)=>c[1].toUpperCase())}function Sn(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cn(O,c){return 0===O||0===c}function Mn(O,c,l){const g=Object.keys(l);if(g.length&&c.length){let ne=c[0],ge=[];if(g.forEach(Ce=>{ne.hasOwnProperty(Ce)||ge.push(Ce),ne[Ce]=l[Ce]}),ge.length)for(var F=1;Ffunction pe(O,c,l){if(":"==O[0]){const Ke=function j(O,c){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g) *"}}(O,l);if("function"==typeof Ke)return void c.push(Ke);O=Ke}const g=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(`The provided transition expression "${O}" is not supported`),c;const F=g[1],ne=g[2],ge=g[3];c.push(Ge(F,ge));"<"==ne[0]&&!(F==z&&ge==z)&&c.push(Ge(ge,F))}(g,l,c)):l.push(O),l}const me=new Set(["true","1"]),He=new Set(["false","0"]);function Ge(O,c){const l=me.has(O)||He.has(O),g=me.has(c)||He.has(c);return(F,ne)=>{let ge=O==z||O==F,Ce=c==z||c==ne;return!ge&&l&&"boolean"==typeof F&&(ge=F?me.has(O):He.has(O)),!Ce&&g&&"boolean"==typeof ne&&(Ce=ne?me.has(c):He.has(c)),ge&&Ce}}const Me=new RegExp("s*:selfs*,?","g");function V(O,c,l){return new nt(O).build(c,l)}class nt{constructor(c){this._driver=c}build(c,l){const g=new L(l);return this._resetContextStyleTimingState(g),qe(this,Zt(c),g)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,l){let g=l.queryCount=0,F=l.depCount=0;const ne=[],ge=[];return"@"==c.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ce=>{if(this._resetContextStyleTimingState(l),0==Ce.type){const Ke=Ce,ft=Ke.name;ft.toString().split(/\s*,\s*/).forEach(Pt=>{Ke.name=Pt,ne.push(this.visitState(Ke,l))}),Ke.name=ft}else if(1==Ce.type){const Ke=this.visitTransition(Ce,l);g+=Ke.queryCount,F+=Ke.depCount,ge.push(Ke)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ne,transitions:ge,queryCount:g,depCount:F,options:null}}visitState(c,l){const g=this.visitStyle(c.styles,l),F=c.options&&c.options.params||null;if(g.containsDynamicStyles){const ne=new Set,ge=F||{};if(g.styles.forEach(Ce=>{if($(Ce)){const Ke=Ce;Object.keys(Ke).forEach(ft=>{Ut(Ke[ft]).forEach(Pt=>{ge.hasOwnProperty(Pt)||ne.add(Pt)})})}}),ne.size){const Ce=_n(ne.values());l.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ce.join(", ")}`)}}return{type:0,name:c.name,style:g,options:F?{params:F}:null}}visitTransition(c,l){l.queryCount=0,l.depCount=0;const g=qe(this,Zt(c.animation),l);return{type:1,matchers:P(c.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:Ae(c.options)}}visitSequence(c,l){return{type:2,steps:c.steps.map(g=>qe(this,g,l)),options:Ae(c.options)}}visitGroup(c,l){const g=l.currentTime;let F=0;const ne=c.steps.map(ge=>{l.currentTime=g;const Ce=qe(this,ge,l);return F=Math.max(F,l.currentTime),Ce});return l.currentTime=F,{type:3,steps:ne,options:Ae(c.options)}}visitAnimate(c,l){const g=function ue(O,c){let l=null;if(O.hasOwnProperty("duration"))l=O;else if("number"==typeof O)return wt(ve(O,c).duration,0,"");const g=O;if(g.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=wt(0,0,"");return ne.dynamic=!0,ne.strValue=g,ne}return l=l||ve(g,c),wt(l.duration,l.delay,l.easing)}(c.timings,l.errors);l.currentAnimateTimings=g;let F,ne=c.styles?c.styles:(0,G.oB)({});if(5==ne.type)F=this.visitKeyframes(ne,l);else{let ge=c.styles,Ce=!1;if(!ge){Ce=!0;const ft={};g.easing&&(ft.easing=g.easing),ge=(0,G.oB)(ft)}l.currentTime+=g.duration+g.delay;const Ke=this.visitStyle(ge,l);Ke.isEmptyStep=Ce,F=Ke}return l.currentAnimateTimings=null,{type:4,timings:g,style:F,options:null}}visitStyle(c,l){const g=this._makeStyleAst(c,l);return this._validateStyleAst(g,l),g}_makeStyleAst(c,l){const g=[];Array.isArray(c.styles)?c.styles.forEach(ge=>{"string"==typeof ge?ge==G.l3?g.push(ge):l.errors.push(`The provided style string value ${ge} is not allowed.`):g.push(ge)}):g.push(c.styles);let F=!1,ne=null;return g.forEach(ge=>{if($(ge)){const Ce=ge,Ke=Ce.easing;if(Ke&&(ne=Ke,delete Ce.easing),!F)for(let ft in Ce)if(Ce[ft].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:g,easing:ne,offset:c.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(c,l){const g=l.currentAnimateTimings;let F=l.currentTime,ne=l.currentTime;g&&ne>0&&(ne-=g.duration+g.delay),c.styles.forEach(ge=>{"string"!=typeof ge&&Object.keys(ge).forEach(Ce=>{if(!this._driver.validateStyleProperty(Ce))return void l.errors.push(`The provided animation property "${Ce}" is not a supported CSS property for animations`);const Ke=l.collectedStyles[l.currentQuerySelector],ft=Ke[Ce];let Pt=!0;ft&&(ne!=F&&ne>=ft.startTime&&F<=ft.endTime&&(l.errors.push(`The CSS property "${Ce}" that exists between the times of "${ft.startTime}ms" and "${ft.endTime}ms" is also being animated in a parallel animation between the times of "${ne}ms" and "${F}ms"`),Pt=!1),ne=ft.startTime),Pt&&(Ke[Ce]={startTime:ne,endTime:F}),l.options&&function mn(O,c,l){const g=c.params||{},F=Ut(O);F.length&&F.forEach(ne=>{g.hasOwnProperty(ne)||l.push(`Unable to resolve the local animation param ${ne} in the given list of values`)})}(ge[Ce],l.options,l.errors)})})}visitKeyframes(c,l){const g={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),g;let ne=0;const ge=[];let Ce=!1,Ke=!1,ft=0;const Pt=c.steps.map(Jn=>{const ti=this._makeStyleAst(Jn,l);let _i=null!=ti.offset?ti.offset:function E(O){if("string"==typeof O)return null;let c=null;if(Array.isArray(O))O.forEach(l=>{if($(l)&&l.hasOwnProperty("offset")){const g=l;c=parseFloat(g.offset),delete g.offset}});else if($(O)&&O.hasOwnProperty("offset")){const l=O;c=parseFloat(l.offset),delete l.offset}return c}(ti.styles),di=0;return null!=_i&&(ne++,di=ti.offset=_i),Ke=Ke||di<0||di>1,Ce=Ce||di0&&ne{const _i=Gt>0?ti==ln?1:Gt*ti:ge[ti],di=_i*pn;l.currentTime=Kt+Jt.delay+di,Jt.duration=di,this._validateStyleAst(Jn,l),Jn.offset=_i,g.styles.push(Jn)}),g}visitReference(c,l){return{type:8,animation:qe(this,Zt(c.animation),l),options:Ae(c.options)}}visitAnimateChild(c,l){return l.depCount++,{type:9,options:Ae(c.options)}}visitAnimateRef(c,l){return{type:10,animation:this.visitReference(c.animation,l),options:Ae(c.options)}}visitQuery(c,l){const g=l.currentQuerySelector,F=c.options||{};l.queryCount++,l.currentQuery=c;const[ne,ge]=function ce(O){const c=!!O.split(/\s*,\s*/).find(l=>":self"==l);return c&&(O=O.replace(Me,"")),O=O.replace(/@\*/g,ie).replace(/@\w+/g,l=>ie+"-"+l.substr(1)).replace(/:animating/g,je),[O,c]}(c.selector);l.currentQuerySelector=g.length?g+" "+ne:ne,B(l.collectedStyles,l.currentQuerySelector,{});const Ce=qe(this,Zt(c.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:ne,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Ce,originalSelector:c.selector,options:Ae(c.options)}}visitStagger(c,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const g="full"===c.timings?{duration:0,delay:0,easing:"full"}:ve(c.timings,l.errors,!0);return{type:12,animation:qe(this,Zt(c.animation),l),timings:g,options:null}}}class L{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function $(O){return!Array.isArray(O)&&"object"==typeof O}function Ae(O){return O?(O=Qe(O)).params&&(O.params=function Ne(O){return O?Qe(O):null}(O.params)):O={},O}function wt(O,c,l){return{duration:O,delay:c,easing:l}}function At(O,c,l,g,F,ne,ge=null,Ce=!1){return{type:1,element:O,keyframes:c,preStyleProps:l,postStyleProps:g,duration:F,delay:ne,totalTime:F+ne,easing:ge,subTimeline:Ce}}class Qt{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,l){let g=this._map.get(c);g||this._map.set(c,g=[]),g.push(...l)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),jn=new RegExp(":leave","g");function qt(O,c,l,g,F,ne={},ge={},Ce,Ke,ft=[]){return(new Re).buildKeyframes(O,c,l,g,F,ne,ge,Ce,Ke,ft)}class Re{buildKeyframes(c,l,g,F,ne,ge,Ce,Ke,ft,Pt=[]){ft=ft||new Qt;const Bt=new ae(c,l,ft,F,ne,Pt,[]);Bt.options=Ke,Bt.currentTimeline.setStyles([ge],null,Bt.errors,Ke),qe(this,g,Bt);const Gt=Bt.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(Ce).length){let ln;for(let Kt=Gt.length-1;Kt>=0;Kt--){const Jt=Gt[Kt];if(Jt.element===l){ln=Jt;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([Ce],null,Bt.errors,Ke)}return Gt.length?Gt.map(ln=>ln.buildKeyframes()):[At(l,[],[],[],0,0,"",!1)]}visitTrigger(c,l){}visitState(c,l){}visitTransition(c,l){}visitAnimateChild(c,l){const g=l.subInstructions.get(l.element);if(g){const F=l.createSubContext(c.options),ne=l.currentTimeline.currentTime,ge=this._visitSubInstructions(g,F,F.options);ne!=ge&&l.transformIntoNewTimeline(ge)}l.previousNode=c}visitAnimateRef(c,l){const g=l.createSubContext(c.options);g.transformIntoNewTimeline(),this.visitReference(c.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=c}_visitSubInstructions(c,l,g){let ne=l.currentTimeline.currentTime;const ge=null!=g.duration?tt(g.duration):null,Ce=null!=g.delay?tt(g.delay):null;return 0!==ge&&c.forEach(Ke=>{const ft=l.appendInstructionToTimeline(Ke,ge,Ce);ne=Math.max(ne,ft.duration+ft.delay)}),ne}visitReference(c,l){l.updateOptions(c.options,!0),qe(this,c.animation,l),l.previousNode=c}visitSequence(c,l){const g=l.subContextCount;let F=l;const ne=c.options;if(ne&&(ne.params||ne.delay)&&(F=l.createSubContext(ne),F.transformIntoNewTimeline(),null!=ne.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=we);const ge=tt(ne.delay);F.delayNextStep(ge)}c.steps.length&&(c.steps.forEach(ge=>qe(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>g&&F.transformIntoNewTimeline()),l.previousNode=c}visitGroup(c,l){const g=[];let F=l.currentTimeline.currentTime;const ne=c.options&&c.options.delay?tt(c.options.delay):0;c.steps.forEach(ge=>{const Ce=l.createSubContext(c.options);ne&&Ce.delayNextStep(ne),qe(this,ge,Ce),F=Math.max(F,Ce.currentTimeline.currentTime),g.push(Ce.currentTimeline)}),g.forEach(ge=>l.currentTimeline.mergeTimelineCollectedStyles(ge)),l.transformIntoNewTimeline(F),l.previousNode=c}_visitTiming(c,l){if(c.dynamic){const g=c.strValue;return ve(l.params?un(g,l.params,l.errors):g,l.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,l){const g=l.currentAnimateTimings=this._visitTiming(c.timings,l),F=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),F.snapshotCurrentStyles());const ne=c.style;5==ne.type?this.visitKeyframes(ne,l):(l.incrementTime(g.duration),this.visitStyle(ne,l),F.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=c}visitStyle(c,l){const g=l.currentTimeline,F=l.currentAnimateTimings;!F&&g.getCurrentStyleProperties().length&&g.forwardFrame();const ne=F&&F.easing||c.easing;c.isEmptyStep?g.applyEmptyStep(ne):g.setStyles(c.styles,ne,l.errors,l.options),l.previousNode=c}visitKeyframes(c,l){const g=l.currentAnimateTimings,F=l.currentTimeline.duration,ne=g.duration,Ce=l.createSubContext().currentTimeline;Ce.easing=g.easing,c.styles.forEach(Ke=>{Ce.forwardTime((Ke.offset||0)*ne),Ce.setStyles(Ke.styles,Ke.easing,l.errors,l.options),Ce.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(Ce),l.transformIntoNewTimeline(F+ne),l.previousNode=c}visitQuery(c,l){const g=l.currentTimeline.currentTime,F=c.options||{},ne=F.delay?tt(F.delay):0;ne&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=we);let ge=g;const Ce=l.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!F.optional,l.errors);l.currentQueryTotal=Ce.length;let Ke=null;Ce.forEach((ft,Pt)=>{l.currentQueryIndex=Pt;const Bt=l.createSubContext(c.options,ft);ne&&Bt.delayNextStep(ne),ft===l.element&&(Ke=Bt.currentTimeline),qe(this,c.animation,Bt),Bt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Bt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ge),Ke&&(l.currentTimeline.mergeTimelineCollectedStyles(Ke),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=c}visitStagger(c,l){const g=l.parentContext,F=l.currentTimeline,ne=c.timings,ge=Math.abs(ne.duration),Ce=ge*(l.currentQueryTotal-1);let Ke=ge*l.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":Ke=Ce-Ke;break;case"full":Ke=g.currentStaggerTime}const Pt=l.currentTimeline;Ke&&Pt.delayNextStep(Ke);const Bt=Pt.currentTime;qe(this,c.animation,l),l.previousNode=c,g.currentStaggerTime=F.currentTime-Bt+(F.startTime-g.currentTimeline.startTime)}}const we={};class ae{constructor(c,l,g,F,ne,ge,Ce,Ke){this._driver=c,this.element=l,this.subInstructions=g,this._enterClassName=F,this._leaveClassName=ne,this.errors=ge,this.timelines=Ce,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new Ve(this._driver,l,0),Ce.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,l){if(!c)return;const g=c;let F=this.options;null!=g.duration&&(F.duration=tt(g.duration)),null!=g.delay&&(F.delay=tt(g.delay));const ne=g.params;if(ne){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(ne).forEach(Ce=>{(!l||!ge.hasOwnProperty(Ce))&&(ge[Ce]=un(ne[Ce],ge,this.errors))})}}_copyOptions(){const c={};if(this.options){const l=this.options.params;if(l){const g=c.params={};Object.keys(l).forEach(F=>{g[F]=l[F]})}}return c}createSubContext(c=null,l,g){const F=l||this.element,ne=new ae(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,g||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(c),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(c){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,l,g){const F={duration:null!=l?l:c.duration,delay:this.currentTimeline.currentTime+(null!=g?g:0)+c.delay,easing:""},ne=new ht(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,F,c.stretchStartingKeyframe);return this.timelines.push(ne),F}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,l,g,F,ne,ge){let Ce=[];if(F&&Ce.push(this.element),c.length>0){c=(c=c.replace(An,"."+this._enterClassName)).replace(jn,"."+this._leaveClassName);let ft=this._driver.query(this.element,c,1!=g);0!==g&&(ft=g<0?ft.slice(ft.length+g,ft.length):ft.slice(0,g)),Ce.push(...ft)}return!ne&&0==Ce.length&&ge.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),Ce}}class Ve{constructor(c,l,g,F){this._driver=c,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=F,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+c),l&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,l){return this.applyStylesToKeyframe(),new Ve(this._driver,c,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,l){this._localTimelineStyles[c]=l,this._globalTimelineStyles[c]=l,this._styleSummary[c]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||G.l3,this._currentKeyframe[l]=G.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,l,g,F){l&&(this._previousKeyframe.easing=l);const ne=F&&F.params||{},ge=function jt(O,c){const l={};let g;return O.forEach(F=>{"*"===F?(g=g||Object.keys(c),g.forEach(ne=>{l[ne]=G.l3})):_t(F,!1,l)}),l}(c,this._globalTimelineStyles);Object.keys(ge).forEach(Ce=>{const Ke=un(ge[Ce],ne,g);this._pendingStyles[Ce]=Ke,this._localTimelineStyles.hasOwnProperty(Ce)||(this._backFill[Ce]=this._globalTimelineStyles.hasOwnProperty(Ce)?this._globalTimelineStyles[Ce]:G.l3),this._updateStyle(Ce,Ke)})}applyStylesToKeyframe(){const c=this._pendingStyles,l=Object.keys(c);0!=l.length&&(this._pendingStyles={},l.forEach(g=>{this._currentKeyframe[g]=c[g]}),Object.keys(this._localTimelineStyles).forEach(g=>{this._currentKeyframe.hasOwnProperty(g)||(this._currentKeyframe[g]=this._localTimelineStyles[g])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const l=this._localTimelineStyles[c];this._pendingStyles[c]=l,this._updateStyle(c,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let l in this._currentKeyframe)c.push(l);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(l=>{const g=this._styleSummary[l],F=c._styleSummary[l];(!g||F.time>g.time)&&this._updateStyle(l,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Ce,Ke)=>{const ft=_t(Ce,!0);Object.keys(ft).forEach(Pt=>{const Bt=ft[Pt];Bt==G.k1?c.add(Pt):Bt==G.l3&&l.add(Pt)}),g||(ft.offset=Ke/this.duration),F.push(ft)});const ne=c.size?_n(c.values()):[],ge=l.size?_n(l.values()):[];if(g){const Ce=F[0],Ke=Qe(Ce);Ce.offset=0,Ke.offset=1,F=[Ce,Ke]}return At(this.element,F,ne,ge,this.duration,this.startTime,this.easing,!1)}}class ht extends Ve{constructor(c,l,g,F,ne,ge,Ce=!1){super(c,l,ge.delay),this.keyframes=g,this.preStyleProps=F,this.postStyleProps=ne,this._stretchStartingKeyframe=Ce,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:l,duration:g,easing:F}=this.timings;if(this._stretchStartingKeyframe&&l){const ne=[],ge=g+l,Ce=l/ge,Ke=_t(c[0],!1);Ke.offset=0,ne.push(Ke);const ft=_t(c[0],!1);ft.offset=It(Ce),ne.push(ft);const Pt=c.length-1;for(let Bt=1;Bt<=Pt;Bt++){let Gt=_t(c[Bt],!1);Gt.offset=It((l+Gt.offset*g)/ge),ne.push(Gt)}g=ge,l=0,F="",c=ne}return At(this.element,c,this.preStyleProps,this.postStyleProps,g,l,F,!0)}}function It(O,c=3){const l=Math.pow(10,c-1);return Math.round(O*l)/l}class Pn{}class Zn extends Pn{normalizePropertyName(c,l){return Dt(c)}normalizeStyleValue(c,l,g,F){let ne="";const ge=g.toString().trim();if(ii[l]&&0!==g&&"0"!==g)if("number"==typeof g)ne="px";else{const Ce=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Ce&&0==Ce[1].length&&F.push(`Please provide a CSS unit value for ${c}:${g}`)}return ge+ne}}const ii=(()=>function En(O){const c={};return O.forEach(l=>c[l]=!0),c}("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".split(",")))();function ei(O,c,l,g,F,ne,ge,Ce,Ke,ft,Pt,Bt,Gt){return{type:0,element:O,triggerName:c,isRemovalTransition:F,fromState:l,fromStyles:ne,toState:g,toStyles:ge,timelines:Ce,queriedElements:Ke,preStyleProps:ft,postStyleProps:Pt,totalTime:Bt,errors:Gt}}const Ln={};class Tt{constructor(c,l,g){this._triggerName=c,this.ast=l,this._stateStyles=g}match(c,l,g,F){return function rn(O,c,l,g,F){return O.some(ne=>ne(c,l,g,F))}(this.ast.matchers,c,l,g,F)}buildStyles(c,l,g){const F=this._stateStyles["*"],ne=this._stateStyles[c],ge=F?F.buildStyles(l,g):{};return ne?ne.buildStyles(l,g):ge}build(c,l,g,F,ne,ge,Ce,Ke,ft,Pt){const Bt=[],Gt=this.ast.options&&this.ast.options.params||Ln,Kt=this.buildStyles(g,Ce&&Ce.params||Ln,Bt),Jt=Ke&&Ke.params||Ln,pn=this.buildStyles(F,Jt,Bt),Jn=new Set,ti=new Map,_i=new Map,di="void"===F,qi={params:Object.assign(Object.assign({},Gt),Jt)},Oi=Pt?[]:qt(c,l,this.ast.animation,ne,ge,Kt,pn,qi,ft,Bt);let fi=0;if(Oi.forEach(Yi=>{fi=Math.max(Yi.duration+Yi.delay,fi)}),Bt.length)return ei(l,this._triggerName,g,F,di,Kt,pn,[],[],ti,_i,fi,Bt);Oi.forEach(Yi=>{const Li=Yi.element,Ho=B(ti,Li,{});Yi.preStyleProps.forEach(ao=>Ho[ao]=!0);const zo=B(_i,Li,{});Yi.postStyleProps.forEach(ao=>zo[ao]=!0),Li!==l&&Jn.add(Li)});const Bi=_n(Jn.values());return ei(l,this._triggerName,g,F,di,Kt,pn,Oi,Bi,ti,_i,fi)}}class bn{constructor(c,l,g){this.styles=c,this.defaultParams=l,this.normalizer=g}buildStyles(c,l){const g={},F=Qe(this.defaultParams);return Object.keys(c).forEach(ne=>{const ge=c[ne];null!=ge&&(F[ne]=ge)}),this.styles.styles.forEach(ne=>{if("string"!=typeof ne){const ge=ne;Object.keys(ge).forEach(Ce=>{let Ke=ge[Ce];Ke.length>1&&(Ke=un(Ke,F,l));const ft=this.normalizer.normalizePropertyName(Ce,l);Ke=this.normalizer.normalizeStyleValue(Ce,ft,Ke,l),g[ft]=Ke})}}),g}}class Te{constructor(c,l,g){this.name=c,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states={},l.states.forEach(F=>{this.states[F.name]=new bn(F.style,F.options&&F.options.params||{},g)}),De(this.states,"true","1"),De(this.states,"false","0"),l.transitions.forEach(F=>{this.transitionFactories.push(new Tt(c,F,this.states))}),this.fallbackTransition=function Ze(O,c,l){return new Tt(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Ce)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,l,g,F){return this.transitionFactories.find(ge=>ge.match(c,l,g,F))||null}matchStyles(c,l,g){return this.fallbackTransition.buildStyles(c,l,g)}}function De(O,c,l){O.hasOwnProperty(c)?O.hasOwnProperty(l)||(O[l]=O[c]):O.hasOwnProperty(l)&&(O[c]=O[l])}const rt=new Qt;class Wt{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._animations={},this._playersById={},this.players=[]}register(c,l){const g=[],F=V(this._driver,l,g);if(g.length)throw new Error(`Unable to build the animation due to the following errors: ${g.join("\n")}`);this._animations[c]=F}_buildPlayer(c,l,g){const F=c.element,ne=W(0,this._normalizer,0,c.keyframes,l,g);return this._driver.animate(F,ne,c.duration,c.delay,c.easing,[],!0)}create(c,l,g={}){const F=[],ne=this._animations[c];let ge;const Ce=new Map;if(ne?(ge=qt(this._driver,l,ne,he,te,{},{},g,rt,F),ge.forEach(Pt=>{const Bt=B(Ce,Pt.element,{});Pt.postStyleProps.forEach(Gt=>Bt[Gt]=null)})):(F.push("The requested animation doesn't exist or has already been destroyed"),ge=[]),F.length)throw new Error(`Unable to create the animation due to the following errors: ${F.join("\n")}`);Ce.forEach((Pt,Bt)=>{Object.keys(Pt).forEach(Gt=>{Pt[Gt]=this._driver.computeStyle(Bt,Gt,G.l3)})});const ft=_(ge.map(Pt=>{const Bt=Ce.get(Pt.element);return this._buildPlayer(Pt,{},Bt)}));return this._playersById[c]=ft,ft.onDestroy(()=>this.destroy(c)),this.players.push(ft),ft}destroy(c){const l=this._getPlayer(c);l.destroy(),delete this._playersById[c];const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(c){const l=this._playersById[c];if(!l)throw new Error(`Unable to find the timeline player referenced by ${c}`);return l}listen(c,l,g,F){const ne=H(l,"","","");return I(this._getPlayer(c),g,ne,F),()=>{}}command(c,l,g,F){if("register"==g)return void this.register(c,F[0]);if("create"==g)return void this.create(c,l,F[0]||{});const ne=this._getPlayer(c);switch(g){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(c)}}}const on="ng-animate-queued",Un="ng-animate-disabled",qn=[],X={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},se={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k="__ng_removed";class Ee{constructor(c,l=""){this.namespaceId=l;const g=c&&c.hasOwnProperty("value");if(this.value=function ai(O){return null!=O?O:null}(g?c.value:c),g){const ne=Qe(c);delete ne.value,this.options=ne}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const l=c.params;if(l){const g=this.options.params;Object.keys(l).forEach(F=>{null==g[F]&&(g[F]=l[F])})}}}const st="void",Ct=new Ee(st);class Ot{constructor(c,l,g){this.id=c,this.hostElement=l,this._engine=g,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,ui(l,this._hostClassName)}listen(c,l,g,F){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${g}" because the animation trigger "${l}" doesn't exist!`);if(null==g||0==g.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if(!function bi(O){return"start"==O||"done"==O}(g))throw new Error(`The provided animation trigger event "${g}" for the animation trigger "${l}" is not supported!`);const ne=B(this._elementListeners,c,[]),ge={name:l,phase:g,callback:F};ne.push(ge);const Ce=B(this._engine.statesByElement,c,{});return Ce.hasOwnProperty(l)||(ui(c,le),ui(c,le+"-"+l),Ce[l]=Ct),()=>{this._engine.afterFlush(()=>{const Ke=ne.indexOf(ge);Ke>=0&&ne.splice(Ke,1),this._triggers[l]||delete Ce[l]})}}register(c,l){return!this._triggers[c]&&(this._triggers[c]=l,!0)}_getTrigger(c){const l=this._triggers[c];if(!l)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return l}trigger(c,l,g,F=!0){const ne=this._getTrigger(l),ge=new hn(this.id,l,c);let Ce=this._engine.statesByElement.get(c);Ce||(ui(c,le),ui(c,le+"-"+l),this._engine.statesByElement.set(c,Ce={}));let Ke=Ce[l];const ft=new Ee(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ke&&ft.absorbOptions(Ke.options),Ce[l]=ft,Ke||(Ke=Ct),ft.value!==st&&Ke.value===ft.value){if(!function Zo(O,c){const l=Object.keys(O),g=Object.keys(c);if(l.length!=g.length)return!1;for(let F=0;F{Et(c,pn),ot(c,Jn)})}return}const Gt=B(this._engine.playersByElement,c,[]);Gt.forEach(Jt=>{Jt.namespaceId==this.id&&Jt.triggerName==l&&Jt.queued&&Jt.destroy()});let ln=ne.matchTransition(Ke.value,ft.value,c,ft.params),Kt=!1;if(!ln){if(!F)return;ln=ne.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:l,transition:ln,fromState:Ke,toState:ft,player:ge,isFallbackTransition:Kt}),Kt||(ui(c,on),ge.onStart(()=>{wi(c,on)})),ge.onDone(()=>{let Jt=this.players.indexOf(ge);Jt>=0&&this.players.splice(Jt,1);const pn=this._engine.playersByElement.get(c);if(pn){let Jn=pn.indexOf(ge);Jn>=0&&pn.splice(Jn,1)}}),this.players.push(ge),Gt.push(ge),ge}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((l,g)=>{delete l[c]}),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(F=>F.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const l=this._engine.playersByElement.get(c);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,l){const g=this._engine.driver.query(c,ie,!0);g.forEach(F=>{if(F[k])return;const ne=this._engine.fetchNamespacesByElement(F);ne.size?ne.forEach(ge=>ge.triggerLeaveAnimation(F,l,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(c,l,g,F){const ne=this._engine.statesByElement.get(c),ge=new Map;if(ne){const Ce=[];if(Object.keys(ne).forEach(Ke=>{if(ge.set(Ke,ne[Ke].value),this._triggers[Ke]){const ft=this.trigger(c,Ke,st,F);ft&&Ce.push(ft)}}),Ce.length)return this._engine.markElementAsRemoved(this.id,c,!0,l,ge),g&&_(Ce).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const l=this._elementListeners.get(c),g=this._engine.statesByElement.get(c);if(l&&g){const F=new Set;l.forEach(ne=>{const ge=ne.name;if(F.has(ge))return;F.add(ge);const Ke=this._triggers[ge].fallbackTransition,ft=g[ge]||Ct,Pt=new Ee(st),Bt=new hn(this.id,ge,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:ge,transition:Ke,fromState:ft,toState:Pt,player:Bt,isFallbackTransition:!0})})}}removeNode(c,l){const g=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,l),this.triggerLeaveAnimation(c,l,!0))return;let F=!1;if(g.totalAnimations){const ne=g.players.length?g.playersByQueriedElement.get(c):[];if(ne&&ne.length)F=!0;else{let ge=c;for(;ge=ge.parentNode;)if(g.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(c),F)g.markElementAsRemoved(this.id,c,!1,l);else{const ne=c[k];(!ne||ne===X)&&(g.afterFlush(()=>this.clearElementCache(c)),g.destroyInnerAnimations(c),g._onRemovalComplete(c,l))}}insertNode(c,l){ui(c,this._hostClassName)}drainQueuedTransitions(c){const l=[];return this._queue.forEach(g=>{const F=g.player;if(F.destroyed)return;const ne=g.element,ge=this._elementListeners.get(ne);ge&&ge.forEach(Ce=>{if(Ce.name==g.triggerName){const Ke=H(ne,g.triggerName,g.fromState.value,g.toState.value);Ke._data=c,I(g.player,Ce.phase,Ke,Ce.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):l.push(g)}),this._queue=[],l.sort((g,F)=>{const ne=g.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==ne||0==ge?ne-ge:this._engine.driver.containsElement(g.element,F.element)?1:-1})}destroy(c){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let l=!1;return this._elementListeners.has(c)&&(l=!0),l=!!this._queue.find(g=>g.element===c)||l,l}}class Vt{constructor(c,l,g){this.bodyNode=c,this.driver=l,this._normalizer=g,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=(F,ne)=>{}}_onRemovalComplete(c,l){this.onRemovalComplete(c,l)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&c.push(g)})}),c}createNamespace(c,l){const g=new Ot(c,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[c]=g}_balanceNamespaceList(c,l){const g=this._namespaceList.length-1;if(g>=0){let F=!1;for(let ne=g;ne>=0;ne--)if(this.driver.containsElement(this._namespaceList[ne].hostElement,l)){this._namespaceList.splice(ne+1,0,c),F=!0;break}F||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(l,c),c}register(c,l){let g=this._namespaceLookup[c];return g||(g=this.createNamespace(c,l)),g}registerTrigger(c,l,g){let F=this._namespaceLookup[c];F&&F.register(l,g)&&this.totalAnimations++}destroy(c,l){if(!c)return;const g=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[c];const F=this._namespaceList.indexOf(g);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>g.destroy(l))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const l=new Set,g=this.statesByElement.get(c);if(g){const F=Object.keys(g);for(let ne=0;ne=0&&this.collectedLeaveElements.splice(ge,1)}if(c){const ge=this._fetchNamespace(c);ge&&ge.insertNode(l,g)}F&&this.collectEnterElement(l)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,l){l?this.disabledNodes.has(c)||(this.disabledNodes.add(c),ui(c,Un)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),wi(c,Un))}removeNode(c,l,g,F){if(kn(l)){const ne=c?this._fetchNamespace(c):null;if(ne?ne.removeNode(l,F):this.markElementAsRemoved(c,l,!1,F),g){const ge=this.namespacesByHostElement.get(l);ge&&ge.id!==c&&ge.removeNode(l,F)}}else this._onRemovalComplete(l,F)}markElementAsRemoved(c,l,g,F,ne){this.collectedLeaveElements.push(l),l[k]={namespaceId:c,setForRemoval:F,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(c,l,g,F,ne){return kn(l)?this._fetchNamespace(c).listen(l,g,F,ne):()=>{}}_buildInstruction(c,l,g,F,ne){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,g,F,c.fromState.options,c.toState.options,l,ne)}destroyInnerAnimations(c){let l=this.driver.query(c,ie,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(c,je,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(c){const l=this.playersByElement.get(c);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(c){const l=this.playersByQueriedElement.get(c);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return _(this.players).onDone(()=>c());c()})}processLeaveNode(c){var l;const g=c[k];if(g&&g.setForRemoval){if(c[k]=X,g.namespaceId){this.destroyInnerAnimations(c);const F=this._fetchNamespace(g.namespaceId);F&&F.clearElementCache(c)}this._onRemovalComplete(c,g.setForRemoval)}(null===(l=c.classList)||void 0===l?void 0:l.contains(Un))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(F=>{this.markElementAsDisabled(F,!1)})}flush(c=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,F)=>this._balanceNamespaceList(g,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?_(l).onDone(()=>{g.forEach(F=>F())}):g.forEach(F=>F())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,l){const g=new Qt,F=[],ne=new Map,ge=[],Ce=new Map,Ke=new Map,ft=new Map,Pt=new Set;this.disabledNodes.forEach(Rt=>{Pt.add(Rt);const Xt=this.driver.query(Rt,".ng-animate-queued",!0);for(let en=0;en{const en=he+Jt++;Kt.set(Xt,en),Rt.forEach(sn=>ui(sn,en))});const pn=[],Jn=new Set,ti=new Set;for(let Rt=0;RtJn.add(sn)):ti.add(Xt))}const _i=new Map,di=vi(Gt,Array.from(Jn));di.forEach((Rt,Xt)=>{const en=te+Jt++;_i.set(Xt,en),Rt.forEach(sn=>ui(sn,en))}),c.push(()=>{ln.forEach((Rt,Xt)=>{const en=Kt.get(Xt);Rt.forEach(sn=>wi(sn,en))}),di.forEach((Rt,Xt)=>{const en=_i.get(Xt);Rt.forEach(sn=>wi(sn,en))}),pn.forEach(Rt=>{this.processLeaveNode(Rt)})});const qi=[],Oi=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(l).forEach(en=>{const sn=en.player,Gn=en.element;if(qi.push(sn),this.collectedEnterElements.length){const Ci=Gn[k];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(en.triggerName)){const Hi=Ci.previousTriggersValues.get(en.triggerName),Ni=this.statesByElement.get(en.element);Ni&&Ni[en.triggerName]&&(Ni[en.triggerName].value=Hi)}return void sn.destroy()}}const xn=!Bt||!this.driver.containsElement(Bt,Gn),pi=_i.get(Gn),Ji=Kt.get(Gn),Xn=this._buildInstruction(en,g,Ji,pi,xn);if(Xn.errors&&Xn.errors.length)return void Oi.push(Xn);if(xn)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);if(en.isFallbackTransition)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);const mr=[];Xn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||mr.push(Ci)}),Xn.timelines=mr,g.append(Gn,Xn.timelines),ge.push({instruction:Xn,player:sn,element:Gn}),Xn.queriedElements.forEach(Ci=>B(Ce,Ci,[]).push(sn)),Xn.preStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);if(Ni.length){let ji=Ke.get(Hi);ji||Ke.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))}}),Xn.postStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);let ji=ft.get(Hi);ji||ft.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))})});if(Oi.length){const Rt=[];Oi.forEach(Xt=>{Rt.push(`@${Xt.triggerName} has failed due to:\n`),Xt.errors.forEach(en=>Rt.push(`- ${en}\n`))}),qi.forEach(Xt=>Xt.destroy()),this.reportError(Rt)}const fi=new Map,Bi=new Map;ge.forEach(Rt=>{const Xt=Rt.element;g.has(Xt)&&(Bi.set(Xt,Xt),this._beforeAnimationBuild(Rt.player.namespaceId,Rt.instruction,fi))}),F.forEach(Rt=>{const Xt=Rt.element;this._getPreviousPlayers(Xt,!1,Rt.namespaceId,Rt.triggerName,null).forEach(sn=>{B(fi,Xt,[]).push(sn),sn.destroy()})});const Yi=pn.filter(Rt=>Wi(Rt,Ke,ft)),Li=new Map;Ao(Li,this.driver,ti,ft,G.l3).forEach(Rt=>{Wi(Rt,Ke,ft)&&Yi.push(Rt)});const zo=new Map;ln.forEach((Rt,Xt)=>{Ao(zo,this.driver,new Set(Rt),Ke,G.k1)}),Yi.forEach(Rt=>{const Xt=Li.get(Rt),en=zo.get(Rt);Li.set(Rt,Object.assign(Object.assign({},Xt),en))});const ao=[],fr=[],pr={};ge.forEach(Rt=>{const{element:Xt,player:en,instruction:sn}=Rt;if(g.has(Xt)){if(Pt.has(Xt))return en.onDestroy(()=>ot(Xt,sn.toStyles)),en.disabled=!0,en.overrideTotalTime(sn.totalTime),void F.push(en);let Gn=pr;if(Bi.size>1){let pi=Xt;const Ji=[];for(;pi=pi.parentNode;){const Xn=Bi.get(pi);if(Xn){Gn=Xn;break}Ji.push(pi)}Ji.forEach(Xn=>Bi.set(Xn,Gn))}const xn=this._buildAnimation(en.namespaceId,sn,fi,ne,zo,Li);if(en.setRealPlayer(xn),Gn===pr)ao.push(en);else{const pi=this.playersByElement.get(Gn);pi&&pi.length&&(en.parentPlayer=_(pi)),F.push(en)}}else Et(Xt,sn.fromStyles),en.onDestroy(()=>ot(Xt,sn.toStyles)),fr.push(en),Pt.has(Xt)&&F.push(en)}),fr.forEach(Rt=>{const Xt=ne.get(Rt.element);if(Xt&&Xt.length){const en=_(Xt);Rt.setRealPlayer(en)}}),F.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!xn.destroyed);Gn.length?ko(this,Xt,Gn):this.processLeaveNode(Xt)}return pn.length=0,ao.forEach(Rt=>{this.players.push(Rt),Rt.onDone(()=>{Rt.destroy();const Xt=this.players.indexOf(Rt);this.players.splice(Xt,1)}),Rt.play()}),ao}elementContainsData(c,l){let g=!1;const F=l[k];return F&&F.setForRemoval&&(g=!0),this.playersByElement.has(l)&&(g=!0),this.playersByQueriedElement.has(l)&&(g=!0),this.statesByElement.has(l)&&(g=!0),this._fetchNamespace(c).elementContainsData(l)||g}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,l,g,F,ne){let ge=[];if(l){const Ce=this.playersByQueriedElement.get(c);Ce&&(ge=Ce)}else{const Ce=this.playersByElement.get(c);if(Ce){const Ke=!ne||ne==st;Ce.forEach(ft=>{ft.queued||!Ke&&ft.triggerName!=F||ge.push(ft)})}}return(g||F)&&(ge=ge.filter(Ce=>!(g&&g!=Ce.namespaceId||F&&F!=Ce.triggerName))),ge}_beforeAnimationBuild(c,l,g){const ne=l.element,ge=l.isRemovalTransition?void 0:c,Ce=l.isRemovalTransition?void 0:l.triggerName;for(const Ke of l.timelines){const ft=Ke.element,Pt=ft!==ne,Bt=B(g,ft,[]);this._getPreviousPlayers(ft,Pt,ge,Ce,l.toState).forEach(ln=>{const Kt=ln.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),ln.destroy(),Bt.push(ln)})}Et(ne,l.fromStyles)}_buildAnimation(c,l,g,F,ne,ge){const Ce=l.triggerName,Ke=l.element,ft=[],Pt=new Set,Bt=new Set,Gt=l.timelines.map(Kt=>{const Jt=Kt.element;Pt.add(Jt);const pn=Jt[k];if(pn&&pn.removedBeforeQueried)return new G.ZN(Kt.duration,Kt.delay);const Jn=Jt!==Ke,ti=function Fo(O){const c=[];return vo(O,c),c}((g.get(Jt)||qn).map(fi=>fi.getRealPlayer())).filter(fi=>!!fi.element&&fi.element===Jt),_i=ne.get(Jt),di=ge.get(Jt),qi=W(0,this._normalizer,0,Kt.keyframes,_i,di),Oi=this._buildPlayer(Kt,qi,ti);if(Kt.subTimeline&&F&&Bt.add(Jt),Jn){const fi=new hn(c,Ce,Jt);fi.setRealPlayer(Oi),ft.push(fi)}return Oi});ft.forEach(Kt=>{B(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function ni(O,c,l){let g;if(O instanceof Map){if(g=O.get(c),g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&O.delete(c)}}else if(g=O[c],g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&delete O[c]}return g}(this.playersByQueriedElement,Kt.element,Kt))}),Pt.forEach(Kt=>ui(Kt,Ue));const ln=_(Gt);return ln.onDestroy(()=>{Pt.forEach(Kt=>wi(Kt,Ue)),ot(Ke,l.toStyles)}),Bt.forEach(Kt=>{B(F,Kt,[]).push(ln)}),ln}_buildPlayer(c,l,g){return l.length>0?this.driver.animate(c.element,l,c.duration,c.delay,c.easing,g):new G.ZN(c.duration,c.delay)}}class hn{constructor(c,l,g){this.namespaceId=c,this.triggerName=l,this.element=g,this._player=new G.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(g=>I(c,l,void 0,g))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const l=this._player;l.triggerCallback&&c.onStart(()=>l.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,l){B(this._queuedCallbacks,c,[]).push(l)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&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(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const l=this._player;l.triggerCallback&&l.triggerCallback(c)}}function kn(O){return O&&1===O.nodeType}function io(O,c){const l=O.style.display;return O.style.display=null!=c?c:"none",l}function Ao(O,c,l,g,F){const ne=[];l.forEach(Ke=>ne.push(io(Ke)));const ge=[];g.forEach((Ke,ft)=>{const Pt={};Ke.forEach(Bt=>{const Gt=Pt[Bt]=c.computeStyle(ft,Bt,F);(!Gt||0==Gt.length)&&(ft[k]=se,ge.push(ft))}),O.set(ft,Pt)});let Ce=0;return l.forEach(Ke=>io(Ke,ne[Ce++])),ge}function vi(O,c){const l=new Map;if(O.forEach(Ce=>l.set(Ce,[])),0==c.length)return l;const F=new Set(c),ne=new Map;function ge(Ce){if(!Ce)return 1;let Ke=ne.get(Ce);if(Ke)return Ke;const ft=Ce.parentNode;return Ke=l.has(ft)?ft:F.has(ft)?1:ge(ft),ne.set(Ce,Ke),Ke}return c.forEach(Ce=>{const Ke=ge(Ce);1!==Ke&&l.get(Ke).push(Ce)}),l}function ui(O,c){var l;null===(l=O.classList)||void 0===l||l.add(c)}function wi(O,c){var l;null===(l=O.classList)||void 0===l||l.remove(c)}function ko(O,c,l){_(l).onDone(()=>O.processLeaveNode(c))}function vo(O,c){for(let l=0;lF.add(ne)):c.set(O,g),l.delete(O),!0}class yo{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(F,ne)=>{},this._transitionEngine=new Vt(c,l,g),this._timelineEngine=new Wt(c,l,g),this._transitionEngine.onRemovalComplete=(F,ne)=>this.onRemovalComplete(F,ne)}registerTrigger(c,l,g,F,ne){const ge=c+"-"+F;let Ce=this._triggerCache[ge];if(!Ce){const Ke=[],ft=V(this._driver,ne,Ke);if(Ke.length)throw new Error(`The animation trigger "${F}" has failed to build due to the following errors:\n - ${Ke.join("\n - ")}`);Ce=function Qn(O,c,l){return new Te(O,c,l)}(F,ft,this._normalizer),this._triggerCache[ge]=Ce}this._transitionEngine.registerTrigger(l,F,Ce)}register(c,l){this._transitionEngine.register(c,l)}destroy(c,l){this._transitionEngine.destroy(c,l)}onInsert(c,l,g,F){this._transitionEngine.insertNode(c,l,g,F)}onRemove(c,l,g,F){this._transitionEngine.removeNode(c,l,F||!1,g)}disableAnimations(c,l){this._transitionEngine.markElementAsDisabled(c,l)}process(c,l,g,F){if("@"==g.charAt(0)){const[ne,ge]=ee(g);this._timelineEngine.command(ne,l,ge,F)}else this._transitionEngine.trigger(c,l,g,F)}listen(c,l,g,F,ne){if("@"==g.charAt(0)){const[ge,Ce]=ee(g);return this._timelineEngine.listen(ge,l,Ce,ne)}return this._transitionEngine.listen(c,l,g,F,ne)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function _o(O,c){let l=null,g=null;return Array.isArray(c)&&c.length?(l=Ii(c[0]),c.length>1&&(g=Ii(c[c.length-1]))):c&&(l=Ii(c)),l||g?new sr(O,l,g):null}let sr=(()=>{class O{constructor(l,g,F){this._element=l,this._startStyles=g,this._endStyles=F,this._state=0;let ne=O.initialStylesByElement.get(l);ne||O.initialStylesByElement.set(l,ne={}),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Et(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Et(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Ii(O){let c=null;const l=Object.keys(O);for(let g=0;gthis._handleCallback(Ke)}apply(){(function qo(O,c){const l=bo(O,"").trim();let g=0;l.length&&(g=function Vo(O,c){let l=0;for(let g=0;g=this._delay&&g>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function Ti(O,c){const g=bo(O,"").split(","),F=oi(g,c);F>=0&&(g.splice(F,1),Di(O,"",g.join(",")))}(this._element,this._name))}}function oo(O,c,l){Di(O,"PlayState",l,ro(O,c))}function ro(O,c){const l=bo(O,"");return l.indexOf(",")>0?oi(l.split(","),c):oi([l],c)}function oi(O,c){for(let l=0;l=0)return l;return-1}function Zi(O,c,l){l?O.removeEventListener(Gi,c):O.addEventListener(Gi,c)}function Di(O,c,l,g){const F=Mo+c;if(null!=g){const ne=O.style[F];if(ne.length){const ge=ne.split(",");ge[g]=l,l=ge.join(",")}}O.style[F]=l}function bo(O,c){return O.style[Mo+c]||""}class xi{constructor(c,l,g,F,ne,ge,Ce,Ke){this.element=c,this.keyframes=l,this.animationName=g,this._duration=F,this._delay=ne,this._finalStyles=Ce,this._specialStyles=Ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ge||"linear",this.totalTime=F+ne,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(g=>{"offset"!=g&&(c[g]=l?this._finalStyles[g]:x(this.element,g))})}this.currentSnapshot=c}}class Vi extends G.ZN{constructor(c,l){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=$e(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const l=this._startingStyles[c];l?this.element.style.setProperty(c,l):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class so{constructor(){this._count=0}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}buildKeyframeElement(c,l,g){g=g.map(Ce=>$e(Ce));let F=`@keyframes ${l} {\n`,ne="";g.forEach(Ce=>{ne=" ";const Ke=parseFloat(Ce.offset);F+=`${ne}${100*Ke}% {\n`,ne+=" ",Object.keys(Ce).forEach(ft=>{const Pt=Ce[ft];switch(ft){case"offset":return;case"easing":return void(Pt&&(F+=`${ne}animation-timing-function: ${Pt};\n`));default:return void(F+=`${ne}${ft}: ${Pt};\n`)}}),F+=`${ne}}\n`}),F+="}\n";const ge=document.createElement("style");return ge.textContent=F,ge}animate(c,l,g,F,ne,ge=[],Ce){const Ke=ge.filter(pn=>pn instanceof xi),ft={};cn(g,F)&&Ke.forEach(pn=>{let Jn=pn.currentSnapshot;Object.keys(Jn).forEach(ti=>ft[ti]=Jn[ti])});const Pt=function Jo(O){let c={};return O&&(Array.isArray(O)?O:[O]).forEach(g=>{Object.keys(g).forEach(F=>{"offset"==F||"easing"==F||(c[F]=g[F])})}),c}(l=Mn(c,l,ft));if(0==g)return new Vi(c,Pt);const Bt="gen_css_kf_"+this._count++,Gt=this.buildKeyframeElement(c,Bt,l);(function Do(O){var c;const l=null===(c=O.getRootNode)||void 0===c?void 0:c.call(O);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(c).appendChild(Gt);const Kt=_o(c,l),Jt=new xi(c,l,Bt,g,F,ne,Pt,Kt);return Jt.onDestroy(()=>function Qi(O){O.parentNode.removeChild(O)}(Gt)),Jt}}class Pi{constructor(c,l,g,F){this.element=c,this.keyframes=l,this.options=g,this._specialStyles=F,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,l,g){return c.animate(l,g)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),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}_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(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(g=>{"offset"!=g&&(c[g]=this._finished?l[g]:x(this.element,g))})}this.currentSnapshot=c}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}}class yi{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(b().toString()),this._cssKeyframesDriver=new so}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,l,g,F,ne,ge=[],Ce){if(!Ce&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,l,g,F,ne,ge);const Pt={duration:g,delay:F,fill:0==F?"both":"forwards"};ne&&(Pt.easing=ne);const Bt={},Gt=ge.filter(Kt=>Kt instanceof Pi);cn(g,F)&&Gt.forEach(Kt=>{let Jt=Kt.currentSnapshot;Object.keys(Jt).forEach(pn=>Bt[pn]=Jt[pn])});const ln=_o(c,l=Mn(c,l=l.map(Kt=>_t(Kt,!1)),Bt));return new Pi(c,l,Pt,ln)}}function b(){return oe()&&Element.prototype.animate||{}}var Y=p(9808);let w=(()=>{class O extends G._j{constructor(l,g){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(g.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(l){const g=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(l)?(0,G.vP)(l):l;return ct(this._renderer,null,g,"register",[F]),new Q(g,this._renderer)}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(Y.K0))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Q extends G.LC{constructor(c,l){super(),this._id=c,this._renderer=l}create(c,l){return new xe(this._id,c,l||{},this._renderer)}}class xe{constructor(c,l,g,F){this.id=c,this.element=l,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(c,l){return this._renderer.listen(this.element,`@@${this.id}:${c}`,l)}_command(c,...l){return ct(this._renderer,this.element,this.id,c,l)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,l;return null!==(l=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==l?l:0}}function ct(O,c,l,g,F){return O.setProperty(c,`@@${l}:${g}`,F)}const kt="@.disabled";let Fn=(()=>{class O{constructor(l,g,F){this.delegate=l,this.engine=g,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(ne,ge)=>{const Ce=null==ge?void 0:ge.parentNode(ne);Ce&&ge.removeChild(Ce,ne)}}createRenderer(l,g){const ne=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let Pt=this._rendererCache.get(ne);return Pt||(Pt=new Tn("",ne,this.engine),this._rendererCache.set(ne,Pt)),Pt}const ge=g.id,Ce=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Ce,l);const Ke=Pt=>{Array.isArray(Pt)?Pt.forEach(Ke):this.engine.registerTrigger(ge,Ce,l,Pt.name,Pt)};return g.data.animation.forEach(Ke),new Dn(this,Ce,ne,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,g,F){l>=0&&lg(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ne=>{const[ge,Ce]=ne;ge(Ce)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(yo),a.LFG(a.R0b))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Tn{constructor(c,l,g){this.namespaceId=c,this.delegate=l,this.engine=g,this.destroyNode=this.delegate.destroyNode?F=>l.destroyNode(F):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,l){return this.delegate.createElement(c,l)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,l){this.delegate.appendChild(c,l),this.engine.onInsert(this.namespaceId,l,c,!1)}insertBefore(c,l,g,F=!0){this.delegate.insertBefore(c,l,g),this.engine.onInsert(this.namespaceId,l,c,F)}removeChild(c,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate,g)}selectRootElement(c,l){return this.delegate.selectRootElement(c,l)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,l,g,F){this.delegate.setAttribute(c,l,g,F)}removeAttribute(c,l,g){this.delegate.removeAttribute(c,l,g)}addClass(c,l){this.delegate.addClass(c,l)}removeClass(c,l){this.delegate.removeClass(c,l)}setStyle(c,l,g,F){this.delegate.setStyle(c,l,g,F)}removeStyle(c,l,g){this.delegate.removeStyle(c,l,g)}setProperty(c,l,g){"@"==l.charAt(0)&&l==kt?this.disableAnimations(c,!!g):this.delegate.setProperty(c,l,g)}setValue(c,l){this.delegate.setValue(c,l)}listen(c,l,g){return this.delegate.listen(c,l,g)}disableAnimations(c,l){this.engine.disableAnimations(c,l)}}class Dn extends Tn{constructor(c,l,g,F){super(l,g,F),this.factory=c,this.namespaceId=l}setProperty(c,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==kt?this.disableAnimations(c,g=void 0===g||!!g):this.engine.process(this.namespaceId,c,l.substr(1),g):this.delegate.setProperty(c,l,g)}listen(c,l,g){if("@"==l.charAt(0)){const F=function dn(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(c);let ne=l.substr(1),ge="";return"@"!=ne.charAt(0)&&([ne,ge]=function Yn(O){const c=O.indexOf(".");return[O.substring(0,c),O.substr(c+1)]}(ne)),this.engine.listen(this.namespaceId,F,ne,ge,Ce=>{this.factory.scheduleListenerCallback(Ce._data||-1,g,Ce)})}return this.delegate.listen(c,l,g)}}let On=(()=>{class O extends yo{constructor(l,g,F){super(l.body,g,F)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(Y.K0),a.LFG(Se),a.LFG(Pn))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();const C=new a.OlP("AnimationModuleType"),y=[{provide:G._j,useClass:w},{provide:Pn,useFactory:function Eo(){return new Zn}},{provide:yo,useClass:On},{provide:a.FYo,useFactory:function D(O,c,l){return new Fn(O,c,l)},deps:[s.se,yo,a.R0b]}],U=[{provide:Se,useFactory:function Yt(){return function Wn(){return"function"==typeof b()}()?new yi:new so}},{provide:C,useValue:"BrowserAnimations"},...y],at=[{provide:Se,useClass:et},{provide:C,useValue:"NoopAnimations"},...y];let Nt=(()=>{class O{static withConfig(l){return{ngModule:O,providers:l.disableAnimations?at:U}}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:U,imports:[s.b2]}),O})()},2313:(yt,be,p)=>{p.d(be,{b2:()=>_n,H7:()=>An,q6:()=>Ut,se:()=>le});var a=p(9808),s=p(5e3);class G extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends G{static makeCurrent(){(0,a.HT)(new oe)}onAndCancel(we,ae,Ve){return we.addEventListener(ae,Ve,!1),()=>{we.removeEventListener(ae,Ve,!1)}}dispatchEvent(we,ae){we.dispatchEvent(ae)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,ae){return(ae=ae||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,ae){return"window"===ae?window:"document"===ae?we:"body"===ae?we.body:null}getBaseHref(we){const ae=function _(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==ae?null:function I(Re){W=W||document.createElement("a"),W.setAttribute("href",Re);const we=W.pathname;return"/"===we.charAt(0)?we:`/${we}`}(ae)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,a.Mx)(document.cookie,we)}}let W,q=null;const R=new s.OlP("TRANSITION_ID"),B=[{provide:s.ip1,useFactory:function H(Re,we,ae){return()=>{ae.get(s.CZH).donePromise.then(()=>{const Ve=(0,a.q)(),ht=we.querySelectorAll(`style[ng-transition="${Re}"]`);for(let It=0;It{const It=we.findTestabilityInTree(Ve,ht);if(null==It)throw new Error("Could not find testability for element.");return It},s.dqk.getAllAngularTestabilities=()=>we.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>we.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Ve=>{const ht=s.dqk.getAllAngularTestabilities();let It=ht.length,jt=!1;const fn=function(Pn){jt=jt||Pn,It--,0==It&&Ve(jt)};ht.forEach(function(Pn){Pn.whenStable(fn)})})}findTestabilityInTree(we,ae,Ve){if(null==ae)return null;const ht=we.getTestability(ae);return null!=ht?ht:Ve?(0,a.q)().isShadowRoot(ae)?this.findTestabilityInTree(we,ae.host,!0):this.findTestabilityInTree(we,ae.parentElement,!0):null}}let ye=(()=>{class Re{build(){return new XMLHttpRequest}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ye=new s.OlP("EventManagerPlugins");let Fe=(()=>{class Re{constructor(ae,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,ae.forEach(ht=>ht.manager=this),this._plugins=ae.slice().reverse()}addEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addEventListener(ae,Ve,ht)}addGlobalEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addGlobalEventListener(ae,Ve,ht)}getZone(){return this._zone}_findPluginFor(ae){const Ve=this._eventNameToPlugin.get(ae);if(Ve)return Ve;const ht=this._plugins;for(let It=0;It{class Re{constructor(){this._stylesSet=new Set}addStyles(ae){const Ve=new Set;ae.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Ve.add(ht))}),this.onStylesAdded(Ve)}onStylesAdded(ae){}getAllStyles(){return Array.from(this._stylesSet)}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),vt=(()=>{class Re extends _e{constructor(ae){super(),this._doc=ae,this._hostNodes=new Map,this._hostNodes.set(ae.head,[])}_addStylesToHost(ae,Ve,ht){ae.forEach(It=>{const jt=this._doc.createElement("style");jt.textContent=It,ht.push(Ve.appendChild(jt))})}addHost(ae){const Ve=[];this._addStylesToHost(this._stylesSet,ae,Ve),this._hostNodes.set(ae,Ve)}removeHost(ae){const Ve=this._hostNodes.get(ae);Ve&&Ve.forEach(Je),this._hostNodes.delete(ae)}onStylesAdded(ae){this._hostNodes.forEach((Ve,ht)=>{this._addStylesToHost(ae,ht,Ve)})}ngOnDestroy(){this._hostNodes.forEach(ae=>ae.forEach(Je))}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function Je(Re){(0,a.q)().remove(Re)}const zt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ut=/%COMP%/g;function fe(Re,we,ae){for(let Ve=0;Ve{if("__ngUnwrap__"===we)return Re;!1===Re(we)&&(we.preventDefault(),we.returnValue=!1)}}let le=(()=>{class Re{constructor(ae,Ve,ht){this.eventManager=ae,this.sharedStylesHost=Ve,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new ie(ae)}createRenderer(ae,Ve){if(!ae||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case s.ifc.Emulated:{let ht=this.rendererByCompId.get(Ve.id);return ht||(ht=new tt(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ht)),ht.applyToHost(ae),ht}case 1:case s.ifc.ShadowDom:return new ke(this.eventManager,this.sharedStylesHost,ae,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ht=fe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Fe),s.LFG(vt),s.LFG(s.AFp))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class ie{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,ae){return ae?document.createElementNS(zt[ae]||ae,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,ae){we.appendChild(ae)}insertBefore(we,ae,Ve){we&&we.insertBefore(ae,Ve)}removeChild(we,ae){we&&we.removeChild(ae)}selectRootElement(we,ae){let Ve="string"==typeof we?document.querySelector(we):we;if(!Ve)throw new Error(`The selector "${we}" did not match any elements`);return ae||(Ve.textContent=""),Ve}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,ae,Ve,ht){if(ht){ae=ht+":"+ae;const It=zt[ht];It?we.setAttributeNS(It,ae,Ve):we.setAttribute(ae,Ve)}else we.setAttribute(ae,Ve)}removeAttribute(we,ae,Ve){if(Ve){const ht=zt[Ve];ht?we.removeAttributeNS(ht,ae):we.removeAttribute(`${Ve}:${ae}`)}else we.removeAttribute(ae)}addClass(we,ae){we.classList.add(ae)}removeClass(we,ae){we.classList.remove(ae)}setStyle(we,ae,Ve,ht){ht&(s.JOm.DashCase|s.JOm.Important)?we.style.setProperty(ae,Ve,ht&s.JOm.Important?"important":""):we.style[ae]=Ve}removeStyle(we,ae,Ve){Ve&s.JOm.DashCase?we.style.removeProperty(ae):we.style[ae]=""}setProperty(we,ae,Ve){we[ae]=Ve}setValue(we,ae){we.nodeValue=ae}listen(we,ae,Ve){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,ae,he(Ve)):this.eventManager.addEventListener(we,ae,he(Ve))}}class tt extends ie{constructor(we,ae,Ve,ht){super(we),this.component=Ve;const It=fe(ht+"-"+Ve.id,Ve.styles,[]);ae.addStyles(It),this.contentAttr=function Xe(Re){return"_ngcontent-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id),this.hostAttr=function J(Re){return"_nghost-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id)}applyToHost(we){super.setAttribute(we,this.hostAttr,"")}createElement(we,ae){const Ve=super.createElement(we,ae);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ke extends ie{constructor(we,ae,Ve,ht){super(we),this.sharedStylesHost=ae,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const It=fe(ht.id,ht.styles,[]);for(let jt=0;jt{class Re extends ze{constructor(ae){super(ae)}supports(ae){return!0}addEventListener(ae,Ve,ht){return ae.addEventListener(Ve,ht,!1),()=>this.removeEventListener(ae,Ve,ht)}removeEventListener(ae,Ve,ht){return ae.removeEventListener(Ve,ht)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const mt=["alt","control","meta","shift"],dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_t={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},it={alt:Re=>Re.altKey,control:Re=>Re.ctrlKey,meta:Re=>Re.metaKey,shift:Re=>Re.shiftKey};let St=(()=>{class Re extends ze{constructor(ae){super(ae)}supports(ae){return null!=Re.parseEventName(ae)}addEventListener(ae,Ve,ht){const It=Re.parseEventName(Ve),jt=Re.eventCallback(It.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(ae,It.domEventName,jt))}static parseEventName(ae){const Ve=ae.toLowerCase().split("."),ht=Ve.shift();if(0===Ve.length||"keydown"!==ht&&"keyup"!==ht)return null;const It=Re._normalizeKey(Ve.pop());let jt="";if(mt.forEach(Pn=>{const si=Ve.indexOf(Pn);si>-1&&(Ve.splice(si,1),jt+=Pn+".")}),jt+=It,0!=Ve.length||0===It.length)return null;const fn={};return fn.domEventName=ht,fn.fullKey=jt,fn}static getEventFullKey(ae){let Ve="",ht=function ot(Re){let we=Re.key;if(null==we){if(we=Re.keyIdentifier,null==we)return"Unidentified";we.startsWith("U+")&&(we=String.fromCharCode(parseInt(we.substring(2),16)),3===Re.location&&_t.hasOwnProperty(we)&&(we=_t[we]))}return dt[we]||we}(ae);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),mt.forEach(It=>{It!=ht&&it[It](ae)&&(Ve+=It+".")}),Ve+=ht,Ve}static eventCallback(ae,Ve,ht){return It=>{Re.getEventFullKey(It)===ae&&ht.runGuarded(()=>Ve(It))}}static _normalizeKey(ae){return"esc"===ae?"escape":ae}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ut=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:a.bD},{provide:s.g9A,useValue:function Et(){oe.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function mn(){return(0,s.RDi)(document),document},deps:[]}]),un=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Zt(){return new s.qLn},deps:[]},{provide:Ye,useClass:ve,multi:!0,deps:[a.K0,s.R0b,s.Lbi]},{provide:Ye,useClass:St,multi:!0,deps:[a.K0]},{provide:le,useClass:le,deps:[Fe,vt,s.AFp]},{provide:s.FYo,useExisting:le},{provide:_e,useExisting:vt},{provide:vt,useClass:vt,deps:[a.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Fe,useClass:Fe,deps:[Ye,s.R0b]},{provide:a.JF,useClass:ye,deps:[]}];let _n=(()=>{class Re{constructor(ae){if(ae)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ae){return{ngModule:Re,providers:[{provide:s.AFp,useValue:ae.appId},{provide:R,useExisting:s.AFp},B]}}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Re,12))},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:un,imports:[a.ez,s.hGG]}),Re})();"undefined"!=typeof window&&window;let An=(()=>{class Re{}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new(ae||Re):s.LFG(jn),Ve},providedIn:"root"}),Re})(),jn=(()=>{class Re extends An{constructor(ae){super(),this._doc=ae}sanitize(ae,Ve){if(null==Ve)return null;switch(ae){case s.q3G.NONE:return Ve;case s.q3G.HTML:return(0,s.qzn)(Ve,"HTML")?(0,s.z3N)(Ve):(0,s.EiD)(this._doc,String(Ve)).toString();case s.q3G.STYLE:return(0,s.qzn)(Ve,"Style")?(0,s.z3N)(Ve):Ve;case s.q3G.SCRIPT:if((0,s.qzn)(Ve,"Script"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Ve),(0,s.qzn)(Ve,"URL")?(0,s.z3N)(Ve):(0,s.mCW)(String(Ve));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Ve,"ResourceURL"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ae} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ae){return(0,s.JVY)(ae)}bypassSecurityTrustStyle(ae){return(0,s.L6k)(ae)}bypassSecurityTrustScript(ae){return(0,s.eBb)(ae)}bypassSecurityTrustUrl(ae){return(0,s.LAX)(ae)}bypassSecurityTrustResourceUrl(ae){return(0,s.pB0)(ae)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new ae:function ri(Re){return new jn(Re.get(a.K0))}(s.LFG(s.zs3)),Ve},providedIn:"root"}),Re})()},2302:(yt,be,p)=>{p.d(be,{gz:()=>k,m2:()=>Et,OD:()=>ot,wm:()=>Is,F0:()=>ci,rH:()=>Xi,yS:()=>No,Bz:()=>Hs,lC:()=>so});var a=p(5e3);const G=(()=>{function m(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return m.prototype=Object.create(Error.prototype),m})();var oe=p(5254),q=p(1086),_=p(591),W=p(6053),I=p(6498),R=p(1961),H=p(8514),B=p(8896),ee=p(1762),ye=p(8929),Ye=p(2198),Fe=p(3489),ze=p(4231);function _e(m){return function(h){return 0===m?(0,B.c)():h.lift(new vt(m))}}class vt{constructor(d){if(this.total=d,this.total<0)throw new ze.W}call(d,h){return h.subscribe(new Je(d,this.total))}}class Je extends Fe.L{constructor(d,h){super(d),this.total=h,this.ring=new Array,this.count=0}_next(d){const h=this.ring,M=this.total,S=this.count++;h.length0){const M=this.count>=this.total?this.total:this.count,S=this.ring;for(let K=0;Kd.lift(new ut(m))}class ut{constructor(d){this.errorFactory=d}call(d,h){return h.subscribe(new Ie(d,this.errorFactory))}}class Ie extends Fe.L{constructor(d,h){super(d),this.errorFactory=h,this.hasValue=!1}_next(d){this.hasValue=!0,this.destination.next(d)}_complete(){if(this.hasValue)return this.destination.complete();{let d;try{d=this.errorFactory()}catch(h){d=h}this.destination.error(d)}}}function $e(){return new G}function et(m=null){return d=>d.lift(new Se(m))}class Se{constructor(d){this.defaultValue=d}call(d,h){return h.subscribe(new Xe(d,this.defaultValue))}}class Xe extends Fe.L{constructor(d,h){super(d),this.defaultValue=h,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var J=p(5379),he=p(2986);function te(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,(0,he.q)(1),h?et(d):zt(()=>new G))}var le=p(4850),ie=p(7545),Ue=p(1059),je=p(2014),tt=p(7221),ke=p(1406),ve=p(1709),mt=p(2994),Qe=p(4327),dt=p(537),_t=p(9146),it=p(9808);class St{constructor(d,h){this.id=d,this.url=h}}class ot extends St{constructor(d,h,M="imperative",S=null){super(d,h),this.navigationTrigger=M,this.restoredState=S}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Et extends St{constructor(d,h,M){super(d,h),this.urlAfterRedirects=M}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zt extends St{constructor(d,h,M){super(d,h),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mn extends St{constructor(d,h,M){super(d,h),this.error=M}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class vn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un extends St{constructor(d,h,M,S,K){super(d,h),this.urlAfterRedirects=M,this.state=S,this.shouldActivate=K}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _n extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dt{constructor(d){this.route=d}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sn{constructor(d){this.route=d}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cn{constructor(d){this.snapshot=d}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(d){this.snapshot=d}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qe{constructor(d){this.snapshot=d}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x{constructor(d){this.snapshot=d}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(d,h,M){this.routerEvent=d,this.position=h,this.anchor=M}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const P="primary";class pe{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h[0]:h}return null}getAll(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function j(m){return new pe(m)}const me="ngNavigationCancelingError";function He(m){const d=Error("NavigationCancelingError: "+m);return d[me]=!0,d}function Le(m,d,h){const M=h.path.split("/");if(M.length>m.length||"full"===h.pathMatch&&(d.hasChildren()||M.lengthM[K]===S)}return m===d}function nt(m){return Array.prototype.concat.apply([],m)}function ce(m){return m.length>0?m[m.length-1]:null}function L(m,d){for(const h in m)m.hasOwnProperty(h)&&d(m[h],h)}function E(m){return(0,a.CqO)(m)?m:(0,a.QGY)(m)?(0,oe.D)(Promise.resolve(m)):(0,q.of)(m)}const ue={exact:function Qt(m,d,h){if(!ae(m.segments,d.segments)||!ri(m.segments,d.segments,h)||m.numberOfChildren!==d.numberOfChildren)return!1;for(const M in d.children)if(!m.children[M]||!Qt(m.children[M],d.children[M],h))return!1;return!0},subset:Vn},Ae={exact:function At(m,d){return V(m,d)},subset:function gn(m,d){return Object.keys(d).length<=Object.keys(m).length&&Object.keys(d).every(h=>Be(m[h],d[h]))},ignored:()=>!0};function wt(m,d,h){return ue[h.paths](m.root,d.root,h.matrixParams)&&Ae[h.queryParams](m.queryParams,d.queryParams)&&!("exact"===h.fragment&&m.fragment!==d.fragment)}function Vn(m,d,h){return An(m,d,d.segments,h)}function An(m,d,h,M){if(m.segments.length>h.length){const S=m.segments.slice(0,h.length);return!(!ae(S,h)||d.hasChildren()||!ri(S,h,M))}if(m.segments.length===h.length){if(!ae(m.segments,h)||!ri(m.segments,h,M))return!1;for(const S in d.children)if(!m.children[S]||!Vn(m.children[S],d.children[S],M))return!1;return!0}{const S=h.slice(0,m.segments.length),K=h.slice(m.segments.length);return!!(ae(m.segments,S)&&ri(m.segments,S,M)&&m.children[P])&&An(m.children[P],d,K,M)}}function ri(m,d,h){return d.every((M,S)=>Ae[h](m[S].parameters,M.parameters))}class jn{constructor(d,h,M){this.root=d,this.queryParams=h,this.fragment=M}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return jt.serialize(this)}}class qt{constructor(d,h){this.segments=d,this.children=h,this.parent=null,L(h,(M,S)=>M.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fn(this)}}class Re{constructor(d,h){this.path=d,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=j(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function ae(m,d){return m.length===d.length&&m.every((h,M)=>h.path===d[M].path)}class ht{}class It{parse(d){const h=new on(d);return new jn(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(d){const h=`/${Pn(d.root,!0)}`,M=function bn(m){const d=Object.keys(m).map(h=>{const M=m[h];return Array.isArray(M)?M.map(S=>`${Zn(h)}=${Zn(S)}`).join("&"):`${Zn(h)}=${Zn(M)}`}).filter(h=>!!h);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${h}${M}${"string"==typeof d.fragment?`#${function ii(m){return encodeURI(m)}(d.fragment)}`:""}`}}const jt=new It;function fn(m){return m.segments.map(d=>Tt(d)).join("/")}function Pn(m,d){if(!m.hasChildren())return fn(m);if(d){const h=m.children[P]?Pn(m.children[P],!1):"",M=[];return L(m.children,(S,K)=>{K!==P&&M.push(`${K}:${Pn(S,!1)}`)}),M.length>0?`${h}(${M.join("//")})`:h}{const h=function Ve(m,d){let h=[];return L(m.children,(M,S)=>{S===P&&(h=h.concat(d(M,S)))}),L(m.children,(M,S)=>{S!==P&&(h=h.concat(d(M,S)))}),h}(m,(M,S)=>S===P?[Pn(m.children[P],!1)]:[`${S}:${Pn(M,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[P]?`${fn(m)}/${h[0]}`:`${fn(m)}/(${h.join("//")})`}}function si(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zn(m){return si(m).replace(/%3B/gi,";")}function En(m){return si(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(m){return decodeURIComponent(m)}function Ln(m){return ei(m.replace(/\+/g,"%20"))}function Tt(m){return`${En(m.path)}${function rn(m){return Object.keys(m).map(d=>`;${En(d)}=${En(m[d])}`).join("")}(m.parameters)}`}const Qn=/^[^\/()?;=#]+/;function Te(m){const d=m.match(Qn);return d?d[0]:""}const Ze=/^[^=?&#]+/,rt=/^[^&#]+/;class on{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let M={};return this.peekStartsWith("(")&&(M=this.parseParens(!1)),(d.length>0||Object.keys(h).length>0)&&(M[P]=new qt(d,h)),M}parseSegment(){const d=Te(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new Re(ei(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const h=Te(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const S=Te(this.remaining);S&&(M=S,this.capture(M))}d[ei(h)]=ei(M)}parseQueryParam(d){const h=function De(m){const d=m.match(Ze);return d?d[0]:""}(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const de=function Wt(m){const d=m.match(rt);return d?d[0]:""}(this.remaining);de&&(M=de,this.capture(M))}const S=Ln(h),K=Ln(M);if(d.hasOwnProperty(S)){let de=d[S];Array.isArray(de)||(de=[de],d[S]=de),de.push(K)}else d[S]=K}parseParens(d){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=Te(this.remaining),S=this.remaining[M.length];if("/"!==S&&")"!==S&&";"!==S)throw new Error(`Cannot parse url '${this.url}'`);let K;M.indexOf(":")>-1?(K=M.substr(0,M.indexOf(":")),this.capture(K),this.capture(":")):d&&(K=P);const de=this.parseChildren();h[K]=1===Object.keys(de).length?de[P]:new qt([],de),this.consumeOptional("//")}return h}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new Error(`Expected "${d}".`)}}class Lt{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const h=this.pathFromRoot(d);return h.length>1?h[h.length-2]:null}children(d){const h=Un(d,this._root);return h?h.children.map(M=>M.value):[]}firstChild(d){const h=Un(d,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(d){const h=$n(d,this._root);return h.length<2?[]:h[h.length-2].children.map(S=>S.value).filter(S=>S!==d)}pathFromRoot(d){return $n(d,this._root).map(h=>h.value)}}function Un(m,d){if(m===d.value)return d;for(const h of d.children){const M=Un(m,h);if(M)return M}return null}function $n(m,d){if(m===d.value)return[d];for(const h of d.children){const M=$n(m,h);if(M.length)return M.unshift(d),M}return[]}class Nn{constructor(d,h){this.value=d,this.children=h}toString(){return`TreeNode(${this.value})`}}function Rn(m){const d={};return m&&m.children.forEach(h=>d[h.value.outlet]=h),d}class qn extends Lt{constructor(d,h){super(d),this.snapshot=h,Vt(this,d)}toString(){return this.snapshot.toString()}}function X(m,d){const h=function se(m,d){const de=new Ct([],{},{},"",{},P,d,null,m.root,-1,{});return new Ot("",new Nn(de,[]))}(m,d),M=new _.X([new Re("",{})]),S=new _.X({}),K=new _.X({}),de=new _.X({}),Oe=new _.X(""),pt=new k(M,S,de,Oe,K,P,d,h.root);return pt.snapshot=h.root,new qn(new Nn(pt,[]),h)}class k{constructor(d,h,M,S,K,de,Oe,pt){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this._futureSnapshot=pt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,le.U)(d=>j(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(d=>j(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ee(m,d="emptyOnly"){const h=m.pathFromRoot;let M=0;if("always"!==d)for(M=h.length-1;M>=1;){const S=h[M],K=h[M-1];if(S.routeConfig&&""===S.routeConfig.path)M--;else{if(K.component)break;M--}}return function st(m){return m.reduce((d,h)=>({params:Object.assign(Object.assign({},d.params),h.params),data:Object.assign(Object.assign({},d.data),h.data),resolve:Object.assign(Object.assign({},d.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(M))}class Ct{constructor(d,h,M,S,K,de,Oe,pt,Ht,wn,tn){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this.routeConfig=pt,this._urlSegment=Ht,this._lastPathIndex=wn,this._resolve=tn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=j(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(M=>M.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ot extends Lt{constructor(d,h){super(h),this.url=d,Vt(this,h)}toString(){return hn(this._root)}}function Vt(m,d){d.value._routerState=m,d.children.forEach(h=>Vt(m,h))}function hn(m){const d=m.children.length>0?` { ${m.children.map(hn).join(", ")} } `:"";return`${m.value}${d}`}function ni(m){if(m.snapshot){const d=m.snapshot,h=m._futureSnapshot;m.snapshot=h,V(d.queryParams,h.queryParams)||m.queryParams.next(h.queryParams),d.fragment!==h.fragment&&m.fragment.next(h.fragment),V(d.params,h.params)||m.params.next(h.params),function Me(m,d){if(m.length!==d.length)return!1;for(let h=0;hV(h.parameters,d[M].parameters))}(m.url,d.url);return h&&!(!m.parent!=!d.parent)&&(!m.parent||ai(m.parent,d.parent))}function bi(m,d,h){if(h&&m.shouldReuseRoute(d.value,h.value.snapshot)){const M=h.value;M._futureSnapshot=d.value;const S=function io(m,d,h){return d.children.map(M=>{for(const S of h.children)if(m.shouldReuseRoute(M.value,S.value.snapshot))return bi(m,M,S);return bi(m,M)})}(m,d,h);return new Nn(M,S)}{if(m.shouldAttach(d.value)){const K=m.retrieve(d.value);if(null!==K){const de=K.route;return de.value._futureSnapshot=d.value,de.children=d.children.map(Oe=>bi(m,Oe)),de}}const M=function Ao(m){return new k(new _.X(m.url),new _.X(m.params),new _.X(m.queryParams),new _.X(m.fragment),new _.X(m.data),m.outlet,m.component,m)}(d.value),S=d.children.map(K=>bi(m,K));return new Nn(M,S)}}function ui(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function wi(m){return"object"==typeof m&&null!=m&&m.outlets}function ko(m,d,h,M,S){let K={};return M&&L(M,(de,Oe)=>{K[Oe]=Array.isArray(de)?de.map(pt=>`${pt}`):`${de}`}),new jn(h.root===m?d:Fo(h.root,m,d),K,S)}function Fo(m,d,h){const M={};return L(m.children,(S,K)=>{M[K]=S===d?h:Fo(S,d,h)}),new qt(m.segments,M)}class vo{constructor(d,h,M){if(this.isAbsolute=d,this.numberOfDoubleDots=h,this.commands=M,d&&M.length>0&&ui(M[0]))throw new Error("Root segment cannot have matrix parameters");const S=M.find(wi);if(S&&S!==ce(M))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wi{constructor(d,h,M){this.segmentGroup=d,this.processChildren=h,this.index=M}}function Ii(m,d,h){if(m||(m=new qt([],{})),0===m.segments.length&&m.hasChildren())return Co(m,d,h);const M=function Io(m,d,h){let M=0,S=d;const K={match:!1,pathIndex:0,commandIndex:0};for(;S=h.length)return K;const de=m.segments[S],Oe=h[M];if(wi(Oe))break;const pt=`${Oe}`,Ht=M0&&void 0===pt)break;if(pt&&Ht&&"object"==typeof Ht&&void 0===Ht.outlets){if(!Qo(pt,Ht,de))return K;M+=2}else{if(!Qo(pt,{},de))return K;M++}S++}return{match:!0,pathIndex:S,commandIndex:M}}(m,d,h),S=h.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof K&&(K=[K]),null!==K&&(S[de]=Ii(m.children[de],d,K))}),L(m.children,(K,de)=>{void 0===M[de]&&(S[de]=K)}),new qt(m.segments,S)}}function Mo(m,d,h){const M=m.segments.slice(0,d);let S=0;for(;S{"string"==typeof h&&(h=[h]),null!==h&&(d[M]=Mo(new qt([],{}),0,h))}),d}function Ki(m){const d={};return L(m,(h,M)=>d[M]=`${h}`),d}function Qo(m,d,h){return m==h.path&&V(d,h.parameters)}class qo{constructor(d,h,M,S){this.routeReuseStrategy=d,this.futureState=h,this.currState=M,this.forwardEvent=S}activate(d){const h=this.futureState._root,M=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,M,d),ni(this.futureState.root),this.activateChildRoutes(h,M,d)}deactivateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{const de=K.value.outlet;this.deactivateRoutes(K,S[de],M),delete S[de]}),L(S,(K,de)=>{this.deactivateRouteAndItsChildren(K,M)})}deactivateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(S===K)if(S.component){const de=M.getContext(S.outlet);de&&this.deactivateChildRoutes(d,h,de.children)}else this.deactivateChildRoutes(d,h,M);else K&&this.deactivateRouteAndItsChildren(h,M)}deactivateRouteAndItsChildren(d,h){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,h):this.deactivateRouteAndOutlet(d,h)}detachAndStoreRouteSubtree(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);if(M&&M.outlet){const de=M.outlet.detach(),Oe=M.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:de,route:d,contexts:Oe})}}deactivateRouteAndOutlet(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);M&&M.outlet&&(M.outlet.deactivate(),M.children.onOutletDeactivated(),M.attachRef=null,M.resolver=null,M.route=null)}activateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{this.activateRoutes(K,S[K.value.outlet],M),this.forwardEvent(new x(K.value.snapshot))}),d.children.length&&this.forwardEvent(new Mn(d.value.snapshot))}activateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(ni(S),S===K)if(S.component){const de=M.getOrCreateContext(S.outlet);this.activateChildRoutes(d,h,de.children)}else this.activateChildRoutes(d,h,M);else if(S.component){const de=M.getOrCreateContext(S.outlet);if(this.routeReuseStrategy.shouldAttach(S.snapshot)){const Oe=this.routeReuseStrategy.retrieve(S.snapshot);this.routeReuseStrategy.store(S.snapshot,null),de.children.onOutletReAttached(Oe.contexts),de.attachRef=Oe.componentRef,de.route=Oe.route.value,de.outlet&&de.outlet.attach(Oe.componentRef,Oe.route.value),ni(Oe.route.value),this.activateChildRoutes(d,null,de.children)}else{const Oe=function Ti(m){for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(S.snapshot),pt=Oe?Oe.module.componentFactoryResolver:null;de.attachRef=null,de.route=S,de.resolver=pt,de.outlet&&de.outlet.activateWith(S,pt),this.activateChildRoutes(d,null,de.children)}}else this.activateChildRoutes(d,null,M)}}class ro{constructor(d,h){this.routes=d,this.module=h}}function oi(m){return"function"==typeof m}function Di(m){return m instanceof jn}const xi=Symbol("INITIAL_VALUE");function Vi(){return(0,ie.w)(m=>(0,W.aj)(m.map(d=>d.pipe((0,he.q)(1),(0,Ue.O)(xi)))).pipe((0,je.R)((d,h)=>{let M=!1;return h.reduce((S,K,de)=>S!==xi?S:(K===xi&&(M=!0),M||!1!==K&&de!==h.length-1&&!Di(K)?S:K),d)},xi),(0,Ye.h)(d=>d!==xi),(0,le.U)(d=>Di(d)?d:!0===d),(0,he.q)(1)))}class hi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ei,this.attachRef=null}}class Ei{constructor(){this.contexts=new Map}onChildOutletCreated(d,h){const M=this.getOrCreateContext(d);M.outlet=h,this.contexts.set(d,M)}onChildOutletDestroyed(d){const h=this.getContext(d);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let h=this.getContext(d);return h||(h=new hi,this.contexts.set(d,h)),h}getContext(d){return this.contexts.get(d)||null}}let so=(()=>{class m{constructor(h,M,S,K,de){this.parentContexts=h,this.location=M,this.resolver=S,this.changeDetector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=K||P,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,M){this.activated=h,this._activatedRoute=M,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,M){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const de=(M=M||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),Oe=this.parentContexts.getOrCreateContext(this.name).children,pt=new Do(h,Oe,this.location.injector);this.activated=this.location.createComponent(de,this.location.length,pt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(Ei),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},m.\u0275dir=a.lG2({type:m,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),m})();class Do{constructor(d,h,M){this.route=d,this.childContexts=h,this.parent=M}get(d,h){return d===k?this.route:d===Ei?this.childContexts:this.parent.get(d,h)}}let Jo=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,M){1&h&&a._UZ(0,"router-outlet")},directives:[so],encapsulation:2}),m})();function Qi(m,d=""){for(let h=0;hyi(M)===d);return h.push(...m.filter(M=>yi(M)!==d)),h}const b={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Y(m,d,h){var M;if(""===d.path)return"full"===d.pathMatch&&(m.hasChildren()||h.length>0)?Object.assign({},b):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const K=(d.matcher||Le)(h,m,d);if(!K)return Object.assign({},b);const de={};L(K.posParams,(pt,Ht)=>{de[Ht]=pt.path});const Oe=K.consumed.length>0?Object.assign(Object.assign({},de),K.consumed[K.consumed.length-1].parameters):de;return{matched:!0,consumedSegments:K.consumed,lastChild:K.consumed.length,parameters:Oe,positionalParamSegments:null!==(M=K.posParams)&&void 0!==M?M:{}}}function w(m,d,h,M,S="corrected"){if(h.length>0&&function ct(m,d,h){return h.some(M=>kt(m,d,M)&&yi(M)!==P)}(m,h,M)){const de=new qt(d,function xe(m,d,h,M){const S={};S[P]=M,M._sourceSegment=m,M._segmentIndexShift=d.length;for(const K of h)if(""===K.path&&yi(K)!==P){const de=new qt([],{});de._sourceSegment=m,de._segmentIndexShift=d.length,S[yi(K)]=de}return S}(m,d,M,new qt(h,m.children)));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:[]}}if(0===h.length&&function Mt(m,d,h){return h.some(M=>kt(m,d,M))}(m,h,M)){const de=new qt(m.segments,function Q(m,d,h,M,S,K){const de={};for(const Oe of M)if(kt(m,h,Oe)&&!S[yi(Oe)]){const pt=new qt([],{});pt._sourceSegment=m,pt._segmentIndexShift="legacy"===K?m.segments.length:d.length,de[yi(Oe)]=pt}return Object.assign(Object.assign({},S),de)}(m,d,h,M,m.children,S));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:h}}const K=new qt(m.segments,m.children);return K._sourceSegment=m,K._segmentIndexShift=d.length,{segmentGroup:K,slicedSegments:h}}function kt(m,d,h){return(!(m.hasChildren()||d.length>0)||"full"!==h.pathMatch)&&""===h.path}function Fn(m,d,h,M){return!!(yi(m)===M||M!==P&&kt(d,h,m))&&("**"===m.path||Y(d,m,h).matched)}function Tn(m,d,h){return 0===d.length&&!m.children[h]}class Dn{constructor(d){this.segmentGroup=d||null}}class dn{constructor(d){this.urlTree=d}}function Yn(m){return new I.y(d=>d.error(new Dn(m)))}function On(m){return new I.y(d=>d.error(new dn(m)))}function Yt(m){return new I.y(d=>d.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${m}'`)))}class C{constructor(d,h,M,S,K){this.configLoader=h,this.urlSerializer=M,this.urlTree=S,this.config=K,this.allowRedirects=!0,this.ngModule=d.get(a.h0i)}apply(){const d=w(this.urlTree.root,[],[],this.config).segmentGroup,h=new qt(d.segments,d.children);return this.expandSegmentGroup(this.ngModule,this.config,h,P).pipe((0,le.U)(K=>this.createUrlTree(U(K),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,tt.K)(K=>{if(K instanceof dn)return this.allowRedirects=!1,this.match(K.urlTree);throw K instanceof Dn?this.noMatchError(K):K}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,P).pipe((0,le.U)(S=>this.createUrlTree(U(S),d.queryParams,d.fragment))).pipe((0,tt.K)(S=>{throw S instanceof Dn?this.noMatchError(S):S}))}noMatchError(d){return new Error(`Cannot match any routes. URL Segment: '${d.segmentGroup}'`)}createUrlTree(d,h,M){const S=d.segments.length>0?new qt([],{[P]:d}):d;return new jn(S,h,M)}expandSegmentGroup(d,h,M,S){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(d,h,M).pipe((0,le.U)(K=>new qt([],K))):this.expandSegment(d,M,h,M.segments,S,!0)}expandChildren(d,h,M){const S=[];for(const K of Object.keys(M.children))"primary"===K?S.unshift(K):S.push(K);return(0,oe.D)(S).pipe((0,ke.b)(K=>{const de=M.children[K],Oe=Wn(h,K);return this.expandSegmentGroup(d,Oe,de,K).pipe((0,le.U)(pt=>({segment:pt,outlet:K})))}),(0,je.R)((K,de)=>(K[de.outlet]=de.segment,K),{}),function fe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,_e(1),h?et(d):zt(()=>new G))}())}expandSegment(d,h,M,S,K,de){return(0,oe.D)(M).pipe((0,ke.b)(Oe=>this.expandSegmentAgainstRoute(d,h,M,Oe,S,K,de).pipe((0,tt.K)(Ht=>{if(Ht instanceof Dn)return(0,q.of)(null);throw Ht}))),te(Oe=>!!Oe),(0,tt.K)((Oe,pt)=>{if(Oe instanceof G||"EmptyError"===Oe.name){if(Tn(h,S,K))return(0,q.of)(new qt([],{}));throw new Dn(h)}throw Oe}))}expandSegmentAgainstRoute(d,h,M,S,K,de,Oe){return Fn(S,h,K,de)?void 0===S.redirectTo?this.matchSegmentAgainstRoute(d,h,S,K,de):Oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de):Yn(h):Yn(h)}expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){return"**"===S.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,M,S,de):this.expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,M,S){const K=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?On(K):this.lineralizeSegments(M,K).pipe((0,ve.zg)(de=>{const Oe=new qt(de,{});return this.expandSegment(d,Oe,h,de,S,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){const{matched:Oe,consumedSegments:pt,lastChild:Ht,positionalParamSegments:wn}=Y(h,S,K);if(!Oe)return Yn(h);const tn=this.applyRedirectCommands(pt,S.redirectTo,wn);return S.redirectTo.startsWith("/")?On(tn):this.lineralizeSegments(S,tn).pipe((0,ve.zg)(In=>this.expandSegment(d,h,M,In.concat(K.slice(Ht)),de,!1)))}matchSegmentAgainstRoute(d,h,M,S,K){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,q.of)(M._loadedConfig):this.configLoader.load(d.injector,M)).pipe((0,le.U)(In=>(M._loadedConfig=In,new qt(S,{})))):(0,q.of)(new qt(S,{}));const{matched:de,consumedSegments:Oe,lastChild:pt}=Y(h,M,S);if(!de)return Yn(h);const Ht=S.slice(pt);return this.getChildConfig(d,M,S).pipe((0,ve.zg)(tn=>{const In=tn.module,Hn=tn.routes,{segmentGroup:co,slicedSegments:lo}=w(h,Oe,Ht,Hn),Ui=new qt(co.segments,co.children);if(0===lo.length&&Ui.hasChildren())return this.expandChildren(In,Hn,Ui).pipe((0,le.U)(eo=>new qt(Oe,eo)));if(0===Hn.length&&0===lo.length)return(0,q.of)(new qt(Oe,{}));const uo=yi(M)===K;return this.expandSegment(In,Ui,Hn,lo,uo?P:K,!0).pipe((0,le.U)(Ai=>new qt(Oe.concat(Ai.segments),Ai.children)))}))}getChildConfig(d,h,M){return h.children?(0,q.of)(new ro(h.children,d)):h.loadChildren?void 0!==h._loadedConfig?(0,q.of)(h._loadedConfig):this.runCanLoadGuards(d.injector,h,M).pipe((0,ve.zg)(S=>S?this.configLoader.load(d.injector,h).pipe((0,le.U)(K=>(h._loadedConfig=K,K))):function Eo(m){return new I.y(d=>d.error(He(`Cannot load children because the guard of the route "path: '${m.path}'" returned false`)))}(h))):(0,q.of)(new ro([],d))}runCanLoadGuards(d,h,M){const S=h.canLoad;if(!S||0===S.length)return(0,q.of)(!0);const K=S.map(de=>{const Oe=d.get(de);let pt;if(function bo(m){return m&&oi(m.canLoad)}(Oe))pt=Oe.canLoad(h,M);else{if(!oi(Oe))throw new Error("Invalid CanLoad guard");pt=Oe(h,M)}return E(pt)});return(0,q.of)(K).pipe(Vi(),(0,mt.b)(de=>{if(!Di(de))return;const Oe=He(`Redirecting to "${this.urlSerializer.serialize(de)}"`);throw Oe.url=de,Oe}),(0,le.U)(de=>!0===de))}lineralizeSegments(d,h){let M=[],S=h.root;for(;;){if(M=M.concat(S.segments),0===S.numberOfChildren)return(0,q.of)(M);if(S.numberOfChildren>1||!S.children[P])return Yt(d.redirectTo);S=S.children[P]}}applyRedirectCommands(d,h,M){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),d,M)}applyRedirectCreatreUrlTree(d,h,M,S){const K=this.createSegmentGroup(d,h.root,M,S);return new jn(K,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(d,h){const M={};return L(d,(S,K)=>{if("string"==typeof S&&S.startsWith(":")){const Oe=S.substring(1);M[K]=h[Oe]}else M[K]=S}),M}createSegmentGroup(d,h,M,S){const K=this.createSegments(d,h.segments,M,S);let de={};return L(h.children,(Oe,pt)=>{de[pt]=this.createSegmentGroup(d,Oe,M,S)}),new qt(K,de)}createSegments(d,h,M,S){return h.map(K=>K.path.startsWith(":")?this.findPosParam(d,K,S):this.findOrReturn(K,M))}findPosParam(d,h,M){const S=M[h.path.substring(1)];if(!S)throw new Error(`Cannot redirect to '${d}'. Cannot find '${h.path}'.`);return S}findOrReturn(d,h){let M=0;for(const S of h){if(S.path===d.path)return h.splice(M),S;M++}return d}}function U(m){const d={};for(const M of Object.keys(m.children)){const K=U(m.children[M]);(K.segments.length>0||K.hasChildren())&&(d[M]=K)}return function y(m){if(1===m.numberOfChildren&&m.children[P]){const d=m.children[P];return new qt(m.segments.concat(d.segments),d.children)}return m}(new qt(m.segments,d))}class Nt{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class lt{constructor(d,h){this.component=d,this.route=h}}function O(m,d,h){const M=m._root;return F(M,d?d._root:null,h,[M.value])}function l(m,d,h){const M=function g(m){if(!m)return null;for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(d);return(M?M.module.injector:h).get(m)}function F(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=Rn(d);return m.children.forEach(de=>{(function ne(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=m.value,de=d?d.value:null,Oe=h?h.getContext(m.value.outlet):null;if(de&&K.routeConfig===de.routeConfig){const pt=function ge(m,d,h){if("function"==typeof h)return h(m,d);switch(h){case"pathParamsChange":return!ae(m.url,d.url);case"pathParamsOrQueryParamsChange":return!ae(m.url,d.url)||!V(m.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ai(m,d)||!V(m.queryParams,d.queryParams);default:return!ai(m,d)}}(de,K,K.routeConfig.runGuardsAndResolvers);pt?S.canActivateChecks.push(new Nt(M)):(K.data=de.data,K._resolvedData=de._resolvedData),F(m,d,K.component?Oe?Oe.children:null:h,M,S),pt&&Oe&&Oe.outlet&&Oe.outlet.isActivated&&S.canDeactivateChecks.push(new lt(Oe.outlet.component,de))}else de&&Ce(d,Oe,S),S.canActivateChecks.push(new Nt(M)),F(m,null,K.component?Oe?Oe.children:null:h,M,S)})(de,K[de.value.outlet],h,M.concat([de.value]),S),delete K[de.value.outlet]}),L(K,(de,Oe)=>Ce(de,h.getContext(Oe),S)),S}function Ce(m,d,h){const M=Rn(m),S=m.value;L(M,(K,de)=>{Ce(K,S.component?d?d.children.getContext(de):null:d,h)}),h.canDeactivateChecks.push(new lt(S.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,S))}class pn{}function Jn(m){return new I.y(d=>d.error(m))}class _i{constructor(d,h,M,S,K,de){this.rootComponentType=d,this.config=h,this.urlTree=M,this.url=S,this.paramsInheritanceStrategy=K,this.relativeLinkResolution=de}recognize(){const d=w(this.urlTree.root,[],[],this.config.filter(de=>void 0===de.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,d,P);if(null===h)return null;const M=new Ct([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},P,this.rootComponentType,null,this.urlTree.root,-1,{}),S=new Nn(M,h),K=new Ot(this.url,S);return this.inheritParamsAndData(K._root),K}inheritParamsAndData(d){const h=d.value,M=Ee(h,this.paramsInheritanceStrategy);h.params=Object.freeze(M.params),h.data=Object.freeze(M.data),d.children.forEach(S=>this.inheritParamsAndData(S))}processSegmentGroup(d,h,M){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,h):this.processSegment(d,h,h.segments,M)}processChildren(d,h){const M=[];for(const K of Object.keys(h.children)){const de=h.children[K],Oe=Wn(d,K),pt=this.processSegmentGroup(Oe,de,K);if(null===pt)return null;M.push(...pt)}const S=fi(M);return function di(m){m.sort((d,h)=>d.value.outlet===P?-1:h.value.outlet===P?1:d.value.outlet.localeCompare(h.value.outlet))}(S),S}processSegment(d,h,M,S){for(const K of d){const de=this.processSegmentAgainstRoute(K,h,M,S);if(null!==de)return de}return Tn(h,M,S)?[]:null}processSegmentAgainstRoute(d,h,M,S){if(d.redirectTo||!Fn(d,h,M,S))return null;let K,de=[],Oe=[];if("**"===d.path){const Hn=M.length>0?ce(M).parameters:{};K=new Ct(M,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+M.length,zo(d))}else{const Hn=Y(h,d,M);if(!Hn.matched)return null;de=Hn.consumedSegments,Oe=M.slice(Hn.lastChild),K=new Ct(de,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+de.length,zo(d))}const pt=function qi(m){return m.children?m.children:m.loadChildren?m._loadedConfig.routes:[]}(d),{segmentGroup:Ht,slicedSegments:wn}=w(h,de,Oe,pt.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===wn.length&&Ht.hasChildren()){const Hn=this.processChildren(pt,Ht);return null===Hn?null:[new Nn(K,Hn)]}if(0===pt.length&&0===wn.length)return[new Nn(K,[])];const tn=yi(d)===S,In=this.processSegment(pt,Ht,wn,tn?P:S);return null===In?null:[new Nn(K,In)]}}function Oi(m){const d=m.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function fi(m){const d=[],h=new Set;for(const M of m){if(!Oi(M)){d.push(M);continue}const S=d.find(K=>M.value.routeConfig===K.value.routeConfig);void 0!==S?(S.children.push(...M.children),h.add(S)):d.push(M)}for(const M of h){const S=fi(M.children);d.push(new Nn(M.value,S))}return d.filter(M=>!h.has(M))}function Yi(m){let d=m;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Li(m){let d=m,h=d._segmentIndexShift?d._segmentIndexShift:0;for(;d._sourceSegment;)d=d._sourceSegment,h+=d._segmentIndexShift?d._segmentIndexShift:0;return h-1}function Ho(m){return m.data||{}}function zo(m){return m.resolve||{}}function en(m){return(0,ie.w)(d=>{const h=m(d);return h?(0,oe.D)(h).pipe((0,le.U)(()=>d)):(0,q.of)(d)})}class xn extends class Gn{shouldDetach(d){return!1}store(d,h){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,h){return d.routeConfig===h.routeConfig}}{}const pi=new a.OlP("ROUTES");class Ji{constructor(d,h,M,S){this.injector=d,this.compiler=h,this.onLoadStartListener=M,this.onLoadEndListener=S}load(d,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const S=this.loadModuleFactory(h.loadChildren).pipe((0,le.U)(K=>{this.onLoadEndListener&&this.onLoadEndListener(h);const de=K.create(d);return new ro(nt(de.injector.get(pi,void 0,a.XFs.Self|a.XFs.Optional)).map(Pi),de)}),(0,tt.K)(K=>{throw h._loader$=void 0,K}));return h._loader$=new ee.c(S,()=>new ye.xQ).pipe((0,Qe.x)()),h._loader$}loadModuleFactory(d){return E(d()).pipe((0,ve.zg)(h=>h instanceof a.YKP?(0,q.of)(h):(0,oe.D)(this.compiler.compileModuleAsync(h))))}}class mr{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,h){return d}}function ts(m){throw m}function Ci(m,d,h){return d.parse("/")}function Hi(m,d){return(0,q.of)(null)}const Ni={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ji={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class m{constructor(h,M,S,K,de,Oe,pt){this.rootComponentType=h,this.urlSerializer=M,this.rootContexts=S,this.location=K,this.config=pt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=ts,this.malformedUriErrorHandler=Ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hi,afterPreactivation:Hi},this.urlHandlingStrategy=new mr,this.routeReuseStrategy=new xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=de.get(a.h0i),this.console=de.get(a.c2e);const tn=de.get(a.R0b);this.isNgZoneEnabled=tn instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(pt),this.currentUrlTree=function $(){return new jn(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ji(de,Oe,In=>this.triggerEvent(new Dt(In)),In=>this.triggerEvent(new Sn(In))),this.routerState=X(this.currentUrlTree,this.rootComponentType),this.transitions=new _.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const M=this.events;return h.pipe((0,Ye.h)(S=>0!==S.id),(0,le.U)(S=>Object.assign(Object.assign({},S),{extractedUrl:this.urlHandlingStrategy.extract(S.rawUrl)})),(0,ie.w)(S=>{let K=!1,de=!1;return(0,q.of)(S).pipe((0,mt.b)(Oe=>{this.currentNavigation={id:Oe.id,initialUrl:Oe.currentRawUrl,extractedUrl:Oe.extractedUrl,trigger:Oe.source,extras:Oe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ie.w)(Oe=>{const pt=this.browserUrlTree.toString(),Ht=!this.navigated||Oe.extractedUrl.toString()!==pt||pt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ht)&&this.urlHandlingStrategy.shouldProcessUrl(Oe.rawUrl))return gr(Oe.source)&&(this.browserUrlTree=Oe.extractedUrl),(0,q.of)(Oe).pipe((0,ie.w)(tn=>{const In=this.transitions.getValue();return M.next(new ot(tn.id,this.serializeUrl(tn.extractedUrl),tn.source,tn.restoredState)),In!==this.transitions.getValue()?B.E:Promise.resolve(tn)}),function at(m,d,h,M){return(0,ie.w)(S=>function D(m,d,h,M,S){return new C(m,d,h,M,S).apply()}(m,d,h,S.extractedUrl,M).pipe((0,le.U)(K=>Object.assign(Object.assign({},S),{urlAfterRedirects:K}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mt.b)(tn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:tn.urlAfterRedirects})}),function ao(m,d,h,M,S){return(0,ve.zg)(K=>function ti(m,d,h,M,S="emptyOnly",K="legacy"){try{const de=new _i(m,d,h,M,S,K).recognize();return null===de?Jn(new pn):(0,q.of)(de)}catch(de){return Jn(de)}}(m,d,K.urlAfterRedirects,h(K.urlAfterRedirects),M,S).pipe((0,le.U)(de=>Object.assign(Object.assign({},K),{targetSnapshot:de}))))}(this.rootComponentType,this.config,tn=>this.serializeUrl(tn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mt.b)(tn=>{if("eager"===this.urlUpdateStrategy){if(!tn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(tn.urlAfterRedirects,tn.rawUrl);this.setBrowserUrl(Hn,tn)}this.browserUrlTree=tn.urlAfterRedirects}const In=new vn(tn.id,this.serializeUrl(tn.extractedUrl),this.serializeUrl(tn.urlAfterRedirects),tn.targetSnapshot);M.next(In)}));if(Ht&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:In,extractedUrl:Hn,source:co,restoredState:lo,extras:Ui}=Oe,uo=new ot(In,this.serializeUrl(Hn),co,lo);M.next(uo);const So=X(Hn,this.rootComponentType).snapshot;return(0,q.of)(Object.assign(Object.assign({},Oe),{targetSnapshot:So,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},Ui),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Oe.rawUrl,Oe.resolve(null),B.E}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.beforePreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,mt.b)(Oe=>{const pt=new Ut(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot);this.triggerEvent(pt)}),(0,le.U)(Oe=>Object.assign(Object.assign({},Oe),{guards:O(Oe.targetSnapshot,Oe.currentSnapshot,this.rootContexts)})),function Ke(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,currentSnapshot:S,guards:{canActivateChecks:K,canDeactivateChecks:de}}=h;return 0===de.length&&0===K.length?(0,q.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function ft(m,d,h,M){return(0,oe.D)(m).pipe((0,ve.zg)(S=>function Jt(m,d,h,M,S){const K=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!K||0===K.length)return(0,q.of)(!0);const de=K.map(Oe=>{const pt=l(Oe,d,S);let Ht;if(function wo(m){return m&&oi(m.canDeactivate)}(pt))Ht=E(pt.canDeactivate(m,d,h,M));else{if(!oi(pt))throw new Error("Invalid CanDeactivate guard");Ht=E(pt(m,d,h,M))}return Ht.pipe(te())});return(0,q.of)(de).pipe(Vi())}(S.component,S.route,h,d,M)),te(S=>!0!==S,!0))}(de,M,S,m).pipe((0,ve.zg)(Oe=>Oe&&function Zi(m){return"boolean"==typeof m}(Oe)?function Pt(m,d,h,M){return(0,oe.D)(d).pipe((0,ke.b)(S=>(0,R.z)(function Gt(m,d){return null!==m&&d&&d(new cn(m)),(0,q.of)(!0)}(S.route.parent,M),function Bt(m,d){return null!==m&&d&&d(new qe(m)),(0,q.of)(!0)}(S.route,M),function Kt(m,d,h){const M=d[d.length-1],K=d.slice(0,d.length-1).reverse().map(de=>function c(m){const d=m.routeConfig?m.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:m,guards:d}:null}(de)).filter(de=>null!==de).map(de=>(0,H.P)(()=>{const Oe=de.guards.map(pt=>{const Ht=l(pt,de.node,h);let wn;if(function Lo(m){return m&&oi(m.canActivateChild)}(Ht))wn=E(Ht.canActivateChild(M,m));else{if(!oi(Ht))throw new Error("Invalid CanActivateChild guard");wn=E(Ht(M,m))}return wn.pipe(te())});return(0,q.of)(Oe).pipe(Vi())}));return(0,q.of)(K).pipe(Vi())}(m,S.path,h),function ln(m,d,h){const M=d.routeConfig?d.routeConfig.canActivate:null;if(!M||0===M.length)return(0,q.of)(!0);const S=M.map(K=>(0,H.P)(()=>{const de=l(K,d,h);let Oe;if(function Vo(m){return m&&oi(m.canActivate)}(de))Oe=E(de.canActivate(d,m));else{if(!oi(de))throw new Error("Invalid CanActivate guard");Oe=E(de(d,m))}return Oe.pipe(te())}));return(0,q.of)(S).pipe(Vi())}(m,S.route,h))),te(S=>!0!==S,!0))}(M,K,m,d):(0,q.of)(Oe)),(0,le.U)(Oe=>Object.assign(Object.assign({},h),{guardsResult:Oe})))})}(this.ngModule.injector,Oe=>this.triggerEvent(Oe)),(0,mt.b)(Oe=>{if(Di(Oe.guardsResult)){const Ht=He(`Redirecting to "${this.serializeUrl(Oe.guardsResult)}"`);throw Ht.url=Oe.guardsResult,Ht}const pt=new un(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot,!!Oe.guardsResult);this.triggerEvent(pt)}),(0,Ye.h)(Oe=>!!Oe.guardsResult||(this.restoreHistory(Oe),this.cancelNavigationTransition(Oe,""),!1)),en(Oe=>{if(Oe.guards.canActivateChecks.length)return(0,q.of)(Oe).pipe((0,mt.b)(pt=>{const Ht=new _n(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}),(0,ie.w)(pt=>{let Ht=!1;return(0,q.of)(pt).pipe(function fr(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,guards:{canActivateChecks:S}}=h;if(!S.length)return(0,q.of)(h);let K=0;return(0,oe.D)(S).pipe((0,ke.b)(de=>function pr(m,d,h,M){return function Rt(m,d,h,M){const S=Object.keys(m);if(0===S.length)return(0,q.of)({});const K={};return(0,oe.D)(S).pipe((0,ve.zg)(de=>function Xt(m,d,h,M){const S=l(m,d,M);return E(S.resolve?S.resolve(d,h):S(d,h))}(m[de],d,h,M).pipe((0,mt.b)(Oe=>{K[de]=Oe}))),_e(1),(0,ve.zg)(()=>Object.keys(K).length===S.length?(0,q.of)(K):B.E))}(m._resolve,m,d,M).pipe((0,le.U)(K=>(m._resolvedData=K,m.data=Object.assign(Object.assign({},m.data),Ee(m,h).resolve),null)))}(de.route,M,m,d)),(0,mt.b)(()=>K++),_e(1),(0,ve.zg)(de=>K===S.length?(0,q.of)(h):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mt.b)({next:()=>Ht=!0,complete:()=>{Ht||(this.restoreHistory(pt),this.cancelNavigationTransition(pt,"At least one route resolver didn't emit any value."))}}))}),(0,mt.b)(pt=>{const Ht=new Cn(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}))}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.afterPreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,le.U)(Oe=>{const pt=function kn(m,d,h){const M=bi(m,d._root,h?h._root:void 0);return new qn(M,d)}(this.routeReuseStrategy,Oe.targetSnapshot,Oe.currentRouterState);return Object.assign(Object.assign({},Oe),{targetRouterState:pt})}),(0,mt.b)(Oe=>{this.currentUrlTree=Oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Oe.urlAfterRedirects,Oe.rawUrl),this.routerState=Oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Oe),this.browserUrlTree=Oe.urlAfterRedirects)}),((m,d,h)=>(0,le.U)(M=>(new qo(d,M.targetRouterState,M.currentRouterState,h).activate(m),M)))(this.rootContexts,this.routeReuseStrategy,Oe=>this.triggerEvent(Oe)),(0,mt.b)({next(){K=!0},complete(){K=!0}}),(0,dt.x)(()=>{var Oe;K||de||this.cancelNavigationTransition(S,`Navigation ID ${S.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id)===S.id&&(this.currentNavigation=null)}),(0,tt.K)(Oe=>{if(de=!0,function Ge(m){return m&&m[me]}(Oe)){const pt=Di(Oe.url);pt||(this.navigated=!0,this.restoreHistory(S,!0));const Ht=new Zt(S.id,this.serializeUrl(S.extractedUrl),Oe.message);M.next(Ht),pt?setTimeout(()=>{const wn=this.urlHandlingStrategy.merge(Oe.url,this.rawUrlTree),tn={skipLocationChange:S.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gr(S.source)};this.scheduleNavigation(wn,"imperative",null,tn,{resolve:S.resolve,reject:S.reject,promise:S.promise})},0):S.resolve(!1)}else{this.restoreHistory(S,!0);const pt=new mn(S.id,this.serializeUrl(S.extractedUrl),Oe);M.next(pt);try{S.resolve(this.errorHandler(Oe))}catch(Ht){S.reject(Ht)}}return B.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const M="popstate"===h.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{var S;const K={replaceUrl:!0},de=(null===(S=h.state)||void 0===S?void 0:S.navigationId)?h.state:null;if(de){const pt=Object.assign({},de);delete pt.navigationId,delete pt.\u0275routerPageId,0!==Object.keys(pt).length&&(K.state=pt)}const Oe=this.parseUrl(h.url);this.scheduleNavigation(Oe,M,de,K)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Qi(h),this.config=h.map(Pi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,M={}){const{relativeTo:S,queryParams:K,fragment:de,queryParamsHandling:Oe,preserveFragment:pt}=M,Ht=S||this.routerState.root,wn=pt?this.currentUrlTree.fragment:de;let tn=null;switch(Oe){case"merge":tn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),K);break;case"preserve":tn=this.currentUrlTree.queryParams;break;default:tn=K||null}return null!==tn&&(tn=this.removeEmptyProps(tn)),function vi(m,d,h,M,S){if(0===h.length)return ko(d.root,d.root,d,M,S);const K=function Zo(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new vo(!0,0,m);let d=0,h=!1;const M=m.reduce((S,K,de)=>{if("object"==typeof K&&null!=K){if(K.outlets){const Oe={};return L(K.outlets,(pt,Ht)=>{Oe[Ht]="string"==typeof pt?pt.split("/"):pt}),[...S,{outlets:Oe}]}if(K.segmentPath)return[...S,K.segmentPath]}return"string"!=typeof K?[...S,K]:0===de?(K.split("/").forEach((Oe,pt)=>{0==pt&&"."===Oe||(0==pt&&""===Oe?h=!0:".."===Oe?d++:""!=Oe&&S.push(Oe))}),S):[...S,K]},[]);return new vo(h,d,M)}(h);if(K.toRoot())return ko(d.root,new qt([],{}),d,M,S);const de=function yo(m,d,h){if(m.isAbsolute)return new Wi(d.root,!0,0);if(-1===h.snapshot._lastPathIndex){const K=h.snapshot._urlSegment;return new Wi(K,K===d.root,0)}const M=ui(m.commands[0])?0:1;return function _o(m,d,h){let M=m,S=d,K=h;for(;K>S;){if(K-=S,M=M.parent,!M)throw new Error("Invalid number of '../'");S=M.segments.length}return new Wi(M,!1,S-K)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+M,m.numberOfDoubleDots)}(K,d,m),Oe=de.processChildren?Co(de.segmentGroup,de.index,K.commands):Ii(de.segmentGroup,de.index,K.commands);return ko(de.segmentGroup,Oe,d,M,S)}(Ht,this.currentUrlTree,h,tn,null!=wn?wn:null)}navigateByUrl(h,M={skipLocationChange:!1}){const S=Di(h)?h:this.parseUrl(h),K=this.urlHandlingStrategy.merge(S,this.rawUrlTree);return this.scheduleNavigation(K,"imperative",null,M)}navigate(h,M={skipLocationChange:!1}){return function Fs(m){for(let d=0;d{const K=h[S];return null!=K&&(M[S]=K),M},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Et(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,M,S,K,de){var Oe,pt,Ht;if(this.disposed)return Promise.resolve(!1);const wn=this.transitions.value,tn=gr(M)&&wn&&!gr(wn.source),In=wn.rawUrl.toString()===h.toString(),Hn=wn.id===(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id);if(tn&&In&&Hn)return Promise.resolve(!0);let lo,Ui,uo;de?(lo=de.resolve,Ui=de.reject,uo=de.promise):uo=new Promise((eo,Bs)=>{lo=eo,Ui=Bs});const So=++this.navigationId;let Ai;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(S=this.location.getState()),Ai=S&&S.\u0275routerPageId?S.\u0275routerPageId:K.replaceUrl||K.skipLocationChange?null!==(pt=this.browserPageId)&&void 0!==pt?pt:0:(null!==(Ht=this.browserPageId)&&void 0!==Ht?Ht:0)+1):Ai=0,this.setTransition({id:So,targetPageId:Ai,source:M,restoredState:S,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:K,resolve:lo,reject:Ui,promise:uo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),uo.catch(eo=>Promise.reject(eo))}setBrowserUrl(h,M){const S=this.urlSerializer.serialize(h),K=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(S)||M.extras.replaceUrl?this.location.replaceState(S,"",K):this.location.go(S,"",K)}restoreHistory(h,M=!1){var S,K;if("computed"===this.canceledNavigationResolution){const de=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(S=this.currentNavigation)||void 0===S?void 0:S.finalUrl)||0===de?this.currentUrlTree===(null===(K=this.currentNavigation)||void 0===K?void 0:K.finalUrl)&&0===de&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(de)}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,M){const S=new Zt(h.id,this.serializeUrl(h.extractedUrl),M);this.triggerEvent(S),h.resolve(!1)}generateNgRouterState(h,M){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:M}:{navigationId:h}}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function gr(m){return"imperative"!==m}let Xi=(()=>{class m{constructor(h,M,S,K,de){this.router=h,this.route=M,this.tabIndexAttribute=S,this.renderer=K,this.el=de,this.commands=null,this.onChanges=new ye.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const M=this.renderer,S=this.el.nativeElement;null!==h?M.setAttribute(S,"tabindex",h):M.removeAttribute(S,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq))},m.\u0275dir=a.lG2({type:m,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,M){1&h&&a.NdJ("click",function(){return M.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})(),No=(()=>{class m{constructor(h,M,S){this.router=h,this.route=M,this.locationStrategy=S,this.commands=null,this.href=null,this.onChanges=new ye.xQ,this.subscription=h.events.subscribe(K=>{K instanceof Et&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,M,S,K,de){if(0!==h||M||S||K||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Oe={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.Y36(it.S$))},m.\u0275dir=a.lG2({type:m,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,M){1&h&&a.NdJ("click",function(K){return M.onClick(K.button,K.ctrlKey,K.shiftKey,K.altKey,K.metaKey)}),2&h&&a.uIk("target",M.target)("href",M.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})();function ar(m){return""===m||!!m}class Er{}class Is{preload(d,h){return h().pipe((0,tt.K)(()=>(0,q.of)(null)))}}class Vs{preload(d,h){return(0,q.of)(null)}}let wa=(()=>{class m{constructor(h,M,S,K){this.router=h,this.injector=S,this.preloadingStrategy=K,this.loader=new Ji(S,M,pt=>h.triggerEvent(new Dt(pt)),pt=>h.triggerEvent(new Sn(pt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ye.h)(h=>h instanceof Et),(0,ke.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(a.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,M){const S=[];for(const K of M)if(K.loadChildren&&!K.canLoad&&K._loadedConfig){const de=K._loadedConfig;S.push(this.processRoutes(de.module,de.routes))}else K.loadChildren&&!K.canLoad?S.push(this.preloadConfig(h,K)):K.children&&S.push(this.processRoutes(h,K.children));return(0,oe.D)(S).pipe((0,_t.J)(),(0,le.U)(K=>{}))}preloadConfig(h,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,q.of)(M._loadedConfig):this.loader.load(h.injector,M)).pipe((0,ve.zg)(K=>(M._loadedConfig=K,this.processRoutes(K.module,K.routes)))))}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(ci),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(Er))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})(),ns=(()=>{class m{constructor(h,M,S={}){this.router=h,this.viewportScroller=M,this.options=S,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},S.scrollPositionRestoration=S.scrollPositionRestoration||"disabled",S.anchorScrolling=S.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Et&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof z&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,M){this.router.triggerEvent(new z(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();const Ro=new a.OlP("ROUTER_CONFIGURATION"),zr=new a.OlP("ROUTER_FORROOT_GUARD"),Sr=[it.Ye,{provide:ht,useClass:It},{provide:ci,useFactory:function Tr(m,d,h,M,S,K,de={},Oe,pt){const Ht=new ci(null,m,d,h,M,S,nt(K));return Oe&&(Ht.urlHandlingStrategy=Oe),pt&&(Ht.routeReuseStrategy=pt),function ec(m,d){m.errorHandler&&(d.errorHandler=m.errorHandler),m.malformedUriErrorHandler&&(d.malformedUriErrorHandler=m.malformedUriErrorHandler),m.onSameUrlNavigation&&(d.onSameUrlNavigation=m.onSameUrlNavigation),m.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=m.paramsInheritanceStrategy),m.relativeLinkResolution&&(d.relativeLinkResolution=m.relativeLinkResolution),m.urlUpdateStrategy&&(d.urlUpdateStrategy=m.urlUpdateStrategy),m.canceledNavigationResolution&&(d.canceledNavigationResolution=m.canceledNavigationResolution)}(de,Ht),de.enableTracing&&Ht.events.subscribe(wn=>{var tn,In;null===(tn=console.group)||void 0===tn||tn.call(console,`Router Event: ${wn.constructor.name}`),console.log(wn.toString()),console.log(wn),null===(In=console.groupEnd)||void 0===In||In.call(console)}),Ht},deps:[ht,Ei,it.Ye,a.zs3,a.Sil,pi,Ro,[class Xn{},new a.FiY],[class sn{},new a.FiY]]},Ei,{provide:k,useFactory:function Ns(m){return m.routerState.root},deps:[ci]},wa,Vs,Is,{provide:Ro,useValue:{enableTracing:!1}}];function Ls(){return new a.PXZ("Router",ci)}let Hs=(()=>{class m{constructor(h,M){}static forRoot(h,M){return{ngModule:m,providers:[Sr,yr(h),{provide:zr,useFactory:lr,deps:[[ci,new a.FiY,new a.tp0]]},{provide:Ro,useValue:M||{}},{provide:it.S$,useFactory:Da,deps:[it.lw,[new a.tBr(it.mr),new a.FiY],Ro]},{provide:ns,useFactory:cr,deps:[ci,it.EM,Ro]},{provide:Er,useExisting:M&&M.preloadingStrategy?M.preloadingStrategy:Vs},{provide:a.PXZ,multi:!0,useFactory:Ls},[xr,{provide:a.ip1,multi:!0,useFactory:Ea,deps:[xr]},{provide:ur,useFactory:za,deps:[xr]},{provide:a.tb,multi:!0,useExisting:ur}]]}}static forChild(h){return{ngModule:m,providers:[yr(h)]}}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(zr,8),a.LFG(ci,8))},m.\u0275mod=a.oAB({type:m}),m.\u0275inj=a.cJS({}),m})();function cr(m,d,h){return h.scrollOffset&&d.setOffset(h.scrollOffset),new ns(m,d,h)}function Da(m,d,h={}){return h.useHash?new it.Do(m,d):new it.b0(m,d)}function lr(m){return"guarded"}function yr(m){return[{provide:a.deG,multi:!0,useValue:m},{provide:pi,multi:!0,useValue:m}]}let xr=(()=>{class m{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ye.xQ}appInitializer(){return this.injector.get(it.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const S=new Promise(Oe=>M=Oe),K=this.injector.get(ci),de=this.injector.get(Ro);return"disabled"===de.initialNavigation?(K.setUpLocationChangeListener(),M(!0)):"enabled"===de.initialNavigation||"enabledBlocking"===de.initialNavigation?(K.hooks.afterPreactivation=()=>this.initNavigation?(0,q.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),K.initialNavigation()):M(!0),S})}bootstrapListener(h){const M=this.injector.get(Ro),S=this.injector.get(wa),K=this.injector.get(ns),de=this.injector.get(ci),Oe=this.injector.get(a.z2F);h===Oe.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&de.initialNavigation(),S.setUpPreloading(),K.init(),de.resetRootComponentType(Oe.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(a.zs3))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function Ea(m){return m.appInitializer.bind(m)}function za(m){return m.bootstrapListener.bind(m)}const ur=new a.OlP("Router Initializer")},9193:(yt,be,p)=>{p.d(be,{V65:()=>mn,ud1:()=>qt,Hkd:()=>jt,XuQ:()=>Pn,bBn:()=>ei,BOg:()=>st,Rfq:()=>Ot,yQU:()=>rn,U2Q:()=>Wt,UKj:()=>kn,BXH:()=>k,OYp:()=>bi,eLU:()=>ai,x0x:()=>Vi,Ej7:()=>Yn,VWu:()=>qi,rMt:()=>Jt,vEg:()=>mr,RIp:()=>ns,RU0:()=>pi,M8e:()=>gr,ssy:()=>m,Z5F:()=>yr,iUK:()=>Ht,LJh:()=>Ui,NFG:()=>To,WH2:()=>Us,UTl:()=>vc,nrZ:()=>Vr,gvV:()=>Fc,d2H:()=>Tc,LBP:()=>qs,_ry:()=>Ic,eFY:()=>Qc,sZJ:()=>e1,np6:()=>ml,UY$:()=>v8,w1L:()=>Nr,rHg:()=>Il,v6v:()=>v1,cN2:()=>Cs,FsU:()=>Zl,s_U:()=>p6,TSL:()=>P1,uIz:()=>wr,d_$:()=>Dr});const mn={name:"bars",theme:"outline",icon:''},qt={name:"calendar",theme:"outline",icon:''},jt={name:"caret-down",theme:"fill",icon:''},Pn={name:"caret-down",theme:"outline",icon:''},ei={name:"caret-up",theme:"fill",icon:''},rn={name:"check-circle",theme:"outline",icon:''},Wt={name:"check",theme:"outline",icon:''},k={name:"close-circle",theme:"fill",icon:''},st={name:"caret-up",theme:"outline",icon:''},Ot={name:"check-circle",theme:"fill",icon:''},ai={name:"close",theme:"outline",icon:''},kn={name:"clock-circle",theme:"outline",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Vi={name:"copy",theme:"outline",icon:''},Yn={name:"dashboard",theme:"outline",icon:''},Jt={name:"double-right",theme:"outline",icon:''},qi={name:"double-left",theme:"outline",icon:''},pi={name:"ellipsis",theme:"outline",icon:''},mr={name:"down",theme:"outline",icon:''},gr={name:"exclamation-circle",theme:"fill",icon:''},ns={name:"edit",theme:"outline",icon:''},yr={name:"eye",theme:"outline",icon:''},m={name:"exclamation-circle",theme:"outline",icon:''},Ht={name:"file",theme:"fill",icon:''},Ui={name:"file",theme:"outline",icon:''},To={name:"filter",theme:"fill",icon:''},Us={name:"form",theme:"outline",icon:''},vc={name:"info-circle",theme:"fill",icon:''},Vr={name:"info-circle",theme:"outline",icon:''},Tc={name:"loading",theme:"outline",icon:''},Fc={name:"left",theme:"outline",icon:''},Ic={name:"menu-unfold",theme:"outline",icon:''},qs={name:"menu-fold",theme:"outline",icon:''},Qc={name:"paper-clip",theme:"outline",icon:''},e1={name:"question-circle",theme:"outline",icon:''},ml={name:"right",theme:"outline",icon:''},v8={name:"rotate-left",theme:"outline",icon:''},Nr={name:"rotate-right",theme:"outline",icon:''},v1={name:"star",theme:"fill",icon:''},Il={name:"search",theme:"outline",icon:''},Cs={name:"swap-right",theme:"outline",icon:''},Zl={name:"up",theme:"outline",icon:''},p6={name:"upload",theme:"outline",icon:''},P1={name:"vertical-align-top",theme:"outline",icon:''},wr={name:"zoom-in",theme:"outline",icon:''},Dr={name:"zoom-out",theme:"outline",icon:''}},8076:(yt,be,p)=>{p.d(be,{J_:()=>oe,c8:()=>W,YK:()=>I,LU:()=>R,Rq:()=>ye,mF:()=>ee,$C:()=>Ye});var a=p(1777);let s=(()=>{class ze{}return ze.SLOW="0.3s",ze.BASE="0.2s",ze.FAST="0.1s",ze})(),G=(()=>{class ze{}return ze.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",ze.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",ze.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",ze.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",ze.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",ze.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",ze.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",ze.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",ze.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",ze.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",ze.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",ze.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",ze.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",ze.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",ze})();const oe=(0,a.X$)("collapseMotion",[(0,a.SB)("expanded",(0,a.oB)({height:"*"})),(0,a.SB)("collapsed",(0,a.oB)({height:0,overflow:"hidden"})),(0,a.SB)("hidden",(0,a.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,a.eR)("expanded => collapsed",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("expanded => hidden",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("collapsed => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("hidden => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`))]),W=((0,a.X$)("treeCollapseMotion",[(0,a.eR)("* => *",[(0,a.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,a.oB)({overflow:"hidden"}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,a.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,a.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,a.X$)("fadeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:1}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:0}))])]),(0,a.X$)("helpMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"translateY(-5px)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:1,transform:"translateY(0)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"translateY(0)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:0,transform:"translateY(-5px)"}))])])),I=(0,a.X$)("moveUpMotion",[(0,a.eR)("* => enter",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,a.eR)("* => leave",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),R=(0,a.X$)("notificationMotion",[(0,a.SB)("enterRight",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterRight",[(0,a.oB)({opacity:0,transform:"translateX(5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("enterLeft",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterLeft",[(0,a.oB)({opacity:0,transform:"translateX(-5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("leave",(0,a.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,a.eR)("* => leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)("100ms linear")])]),H=`${s.BASE} ${G.EASE_OUT_QUINT}`,B=`${s.BASE} ${G.EASE_IN_QUINT}`,ee=(0,a.X$)("slideMotion",[(0,a.SB)("void",(0,a.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,a.SB)("enter",(0,a.oB)({opacity:1,transform:"scaleY(1)"})),(0,a.eR)("void => *",[(0,a.jt)(H)]),(0,a.eR)("* => void",[(0,a.jt)(B)])]),ye=(0,a.X$)("slideAlertMotion",[(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Ye=(0,a.X$)("zoomBigMotion",[(0,a.eR)("void => active",[(0,a.oB)({opacity:0,transform:"scale(0.8)"}),(0,a.jt)(`${s.BASE} ${G.EASE_OUT_CIRC}`,(0,a.oB)({opacity:1,transform:"scale(1)"}))]),(0,a.eR)("active => void",[(0,a.oB)({opacity:1,transform:"scale(1)"}),(0,a.jt)(`${s.BASE} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scale(0.8)"}))])]);(0,a.X$)("zoomBadgeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_OUT_BACK}`,(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_BACK}`,(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(yt,be,p)=>{p.d(be,{o2:()=>G,M8:()=>oe,uf:()=>s,Bh:()=>a});const a=["success","processing","error","default","warning"],s=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function G(q){return-1!==s.indexOf(q)}function oe(q){return-1!==a.indexOf(q)}},9439:(yt,be,p)=>{p.d(be,{jY:()=>W,oS:()=>I});var a=p(5e3),s=p(8929),G=p(2198),oe=p(7604);const q=new a.OlP("nz-config"),_=function(R){return void 0!==R};let W=(()=>{class R{constructor(B){this.configUpdated$=new s.xQ,this.config=B||{}}getConfig(){return this.config}getConfigForComponent(B){return this.config[B]}getConfigChangeEventForComponent(B){return this.configUpdated$.pipe((0,G.h)(ee=>ee===B),(0,oe.h)(void 0))}set(B,ee){this.config[B]=Object.assign(Object.assign({},this.config[B]),ee),this.configUpdated$.next(B)}}return R.\u0275fac=function(B){return new(B||R)(a.LFG(q,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function I(){return function(H,B,ee){const ye=`$$__zorroConfigDecorator__${B}`;return Object.defineProperty(H,ye,{configurable:!0,writable:!0,enumerable:!1}),{get(){var Ye,Fe;const ze=(null==ee?void 0:ee.get)?ee.get.bind(this)():this[ye],_e=((null===(Ye=this.propertyAssignCounter)||void 0===Ye?void 0:Ye[B])||0)>1,vt=null===(Fe=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===Fe?void 0:Fe[B];return _e&&_(ze)?ze:_(vt)?vt:ze},set(Ye){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[B]=(this.propertyAssignCounter[B]||0)+1,(null==ee?void 0:ee.set)?ee.set.bind(this)(Ye):this[ye]=Ye},configurable:!0,enumerable:!0}}}},4351:(yt,be,p)=>{p.d(be,{N:()=>a});const a={isTestMode:!1}},6947:(yt,be,p)=>{p.d(be,{Bq:()=>oe,ZK:()=>W});var a=p(5e3),s=p(4351);const G={},oe="[NG-ZORRO]:";const W=(...H)=>function _(H,...B){(s.N.isTestMode||(0,a.X6Q)()&&function q(...H){const B=H.reduce((ee,ye)=>ee+ye.toString(),"");return!G[B]&&(G[B]=!0,!0)}(...B))&&H(...B)}((...B)=>console.warn(oe,...B),...H)},4832:(yt,be,p)=>{p.d(be,{P:()=>I,g:()=>R});var a=p(9808),s=p(5e3),G=p(655),oe=p(3191),q=p(6360),_=p(1721);const W="nz-animate-disabled";let I=(()=>{class H{constructor(ee,ye,Ye){this.element=ee,this.renderer=ye,this.animationType=Ye,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const ee=(0,oe.fI)(this.element);!ee||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(ee,W):this.renderer.removeClass(ee,W))}}return H.\u0275fac=function(ee){return new(ee||H)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(q.Qb,8))},H.\u0275dir=s.lG2({type:H,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[s.TTD]}),(0,G.gn)([(0,_.yF)()],H.prototype,"nzNoAnimation",void 0),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=s.oAB({type:H}),H.\u0275inj=s.cJS({imports:[[a.ez]]}),H})()},969:(yt,be,p)=>{p.d(be,{T:()=>q,f:()=>G});var a=p(9808),s=p(5e3);let G=(()=>{class _{constructor(I,R){this.viewContainer=I,this.templateRef=R,this.embeddedViewRef=null,this.context=new oe,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(I,R){return!0}recreateView(){this.viewContainer.clear();const I=this.nzStringTemplateOutlet instanceof s.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(I?this.nzStringTemplateOutlet:this.templateRef,I?this.nzStringTemplateOutletContext:this.context)}updateContext(){const R=this.nzStringTemplateOutlet instanceof s.Rgc?this.nzStringTemplateOutletContext:this.context,H=this.embeddedViewRef.context;if(R)for(const B of Object.keys(R))H[B]=R[B]}ngOnChanges(I){const{nzStringTemplateOutletContext:R,nzStringTemplateOutlet:H}=I;H&&(this.context.$implicit=H.currentValue),(()=>{let ye=!1;if(H)if(H.firstChange)ye=!0;else{const _e=H.currentValue instanceof s.Rgc;ye=H.previousValue instanceof s.Rgc||_e}return R&&(ze=>{const _e=Object.keys(ze.previousValue||{}),vt=Object.keys(ze.currentValue||{});if(_e.length===vt.length){for(const Je of vt)if(-1===_e.indexOf(Je))return!0;return!1}return!0})(R)||ye})()?this.recreateView():this.updateContext()}}return _.\u0275fac=function(I){return new(I||_)(s.Y36(s.s_b),s.Y36(s.Rgc))},_.\u0275dir=s.lG2({type:_,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[s.TTD]}),_})();class oe{}let q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[a.ez]]}),_})()},6950:(yt,be,p)=>{p.d(be,{Ek:()=>I,hQ:()=>ye,e4:()=>Ye,yW:()=>W,d_:()=>ee});var a=p(655),s=p(2845),G=p(5e3),oe=p(7625),q=p(4090),_=p(1721);const W={top:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new s.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new s.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new s.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new s.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new s.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new s.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new s.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new s.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},I=[W.top,W.right,W.bottom,W.left];function ee(Fe){for(const ze in W)if(Fe.connectionPair.originX===W[ze].originX&&Fe.connectionPair.originY===W[ze].originY&&Fe.connectionPair.overlayX===W[ze].overlayX&&Fe.connectionPair.overlayY===W[ze].overlayY)return ze}new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"});let ye=(()=>{class Fe{constructor(_e,vt){this.cdkConnectedOverlay=_e,this.nzDestroyService=vt,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,oe.R)(this.nzDestroyService)).subscribe(Je=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(Je)})}updateArrowPosition(_e){const vt=this.getOriginRect(),Je=ee(_e);let zt=0,ut=0;"topLeft"===Je||"bottomLeft"===Je?zt=vt.width/2-14:"topRight"===Je||"bottomRight"===Je?zt=-(vt.width/2-14):"leftTop"===Je||"rightTop"===Je?ut=vt.height/2-10:("leftBottom"===Je||"rightBottom"===Je)&&(ut=-(vt.height/2-10)),(this.cdkConnectedOverlay.offsetX!==zt||this.cdkConnectedOverlay.offsetY!==ut)&&(this.cdkConnectedOverlay.offsetY=ut,this.cdkConnectedOverlay.offsetX=zt,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof s.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const _e=this.getFlexibleConnectedPositionStrategyOrigin();if(_e instanceof G.SBq)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const vt=_e.width||0,Je=_e.height||0;return{top:_e.y,bottom:_e.y+Je,left:_e.x,right:_e.x+vt,height:Je,width:vt}}}return Fe.\u0275fac=function(_e){return new(_e||Fe)(G.Y36(s.pI),G.Y36(q.kn))},Fe.\u0275dir=G.lG2({type:Fe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[G._Bn([q.kn])]}),(0,a.gn)([(0,_.yF)()],Fe.prototype,"nzArrowPointAtCenter",void 0),Fe})(),Ye=(()=>{class Fe{}return Fe.\u0275fac=function(_e){return new(_e||Fe)},Fe.\u0275mod=G.oAB({type:Fe}),Fe.\u0275inj=G.cJS({}),Fe})()},4090:(yt,be,p)=>{p.d(be,{G_:()=>Je,r3:()=>Ie,kn:()=>$e,rI:()=>ee,KV:()=>Ye,WV:()=>zt,ow:()=>ut});var a=p(5e3),s=p(8929),G=p(7138),oe=p(537),q=p(7625),_=p(4850),W=p(1059),I=p(5778),R=p(4351),H=p(5113);const B=()=>{};let ee=(()=>{class Se{constructor(J,fe){this.ngZone=J,this.rendererFactory2=fe,this.resizeSource$=new s.xQ,this.listeners=0,this.disposeHandle=B,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=B}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,G.e)(16),(0,oe.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=B)}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(a.R0b),a.LFG(a.FYo))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ye=new Map;let Ye=(()=>{class Se{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return R.N.isTestMode?ye:this._singletonRegistry}registerSingletonWithKey(J,fe){const he=this.singletonRegistry.has(J),te=he?this.singletonRegistry.get(J):this.withNewTarget(fe);he||this.singletonRegistry.set(J,te)}getSingletonWithKey(J){return this.singletonRegistry.has(J)?this.singletonRegistry.get(J).target:null}withNewTarget(J){return{target:J}}}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();var Je=(()=>{return(Se=Je||(Je={})).xxl="xxl",Se.xl="xl",Se.lg="lg",Se.md="md",Se.sm="sm",Se.xs="xs",Je;var Se})();const zt={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ut={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let Ie=(()=>{class Se{constructor(J,fe){this.resizeService=J,this.mediaMatcher=fe,this.destroy$=new s.xQ,this.resizeService.subscribe().pipe((0,q.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(J,fe){if(fe){const he=()=>this.matchMedia(J,!0);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)((te,le)=>te[0]===le[0]),(0,_.U)(te=>te[1]))}{const he=()=>this.matchMedia(J);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)())}}matchMedia(J,fe){let he=Je.md;const te={};return Object.keys(J).map(le=>{const ie=le,Ue=this.mediaMatcher.matchMedia(zt[ie]).matches;te[le]=Ue,Ue&&(he=ie)}),fe?[he,te]:he}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(ee),a.LFG(H.vx))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),$e=(()=>{class Se extends s.xQ{ngOnDestroy(){this.next(),this.complete()}}return Se.\u0275fac=function(){let Xe;return function(fe){return(Xe||(Xe=a.n5z(Se)))(fe||Se)}}(),Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac}),Se})()},1721:(yt,be,p)=>{p.d(be,{yF:()=>vt,Rn:()=>zt,cO:()=>_,pW:()=>Ie,ov:()=>P,kK:()=>R,DX:()=>I,ui:()=>je,tI:()=>te,D8:()=>x,Sm:()=>ke,sw:()=>ye,WX:()=>Fe,YM:()=>tt,He:()=>Ye});var a=p(3191),s=p(6947),G=p(8929),oe=p(2986);function _(j,me){if(!j||!me||j.length!==me.length)return!1;const He=j.length;for(let Ge=0;GeYe(me,j))}function Ie(j){if(!j.getClientRects().length)return{top:0,left:0};const me=j.getBoundingClientRect(),He=j.ownerDocument.defaultView;return{top:me.top+He.pageYOffset,left:me.left+He.pageXOffset}}function te(j){return!!j&&"function"==typeof j.then&&"function"==typeof j.catch}function je(j){return"number"==typeof j&&isFinite(j)}function tt(j,me){return Math.round(j*Math.pow(10,me))/Math.pow(10,me)}function ke(j,me=0){return j.reduce((He,Ge)=>He+Ge,me)}let cn,Mn;"undefined"!=typeof window&&window;const qe={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function x(j="vertical",me="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const He="vertical"===j;if(He&&cn)return cn;if(!He&&Mn)return Mn;const Ge=document.createElement("div");Object.keys(qe).forEach(Me=>{Ge.style[Me]=qe[Me]}),Ge.className=`${me}-hide-scrollbar scroll-div-append-to-body`,He?Ge.style.overflowY="scroll":Ge.style.overflowX="scroll",document.body.appendChild(Ge);let Le=0;return He?(Le=Ge.offsetWidth-Ge.clientWidth,cn=Le):(Le=Ge.offsetHeight-Ge.clientHeight,Mn=Le),document.body.removeChild(Ge),Le}function P(){const j=new G.xQ;return Promise.resolve().then(()=>j.next()),j.pipe((0,oe.q)(1))}},4147:(yt,be,p)=>{p.d(be,{Vz:()=>ve,SQ:()=>Ue,BL:()=>Qe});var a=p(655),s=p(1159),G=p(2845),oe=p(7429),q=p(9808),_=p(5e3),W=p(8929),I=p(7625),R=p(9439),H=p(1721),B=p(5664),ee=p(226),ye=p(4832),Ye=p(969),Fe=p(647);const ze=["drawerTemplate"];function _e(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"div",11),_.NdJ("click",function(){return _.CHM(ot),_.oxw(2).maskClick()}),_.qZA()}if(2&it){const ot=_.oxw(2);_.Q6J("ngStyle",ot.nzMaskStyle)}}function vt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"i",18),_.BQk()),2&it){const ot=St.$implicit;_.xp6(1),_.Q6J("nzType",ot)}}function Je(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(ot),_.oxw(3).closeClick()}),_.YNc(1,vt,2,1,"ng-container",17),_.qZA()}if(2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzCloseIcon)}}function zt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(4);_.xp6(1),_.Q6J("innerHTML",ot.nzTitle,_.oJD)}}function ut(it,St){if(1&it&&(_.TgZ(0,"div",19),_.YNc(1,zt,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzTitle)}}function Ie(it,St){if(1&it&&(_.TgZ(0,"div",12),_.TgZ(1,"div",13),_.YNc(2,Je,2,1,"button",14),_.YNc(3,ut,2,1,"div",15),_.qZA(),_.qZA()),2&it){const ot=_.oxw(2);_.ekj("ant-drawer-header-close-only",!ot.nzTitle),_.xp6(2),_.Q6J("ngIf",ot.nzClosable),_.xp6(1),_.Q6J("ngIf",ot.nzTitle)}}function $e(it,St){}function et(it,St){1&it&&_.GkF(0)}function Se(it,St){if(1&it&&(_.ynx(0),_.YNc(1,et,1,0,"ng-container",22),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.nzContent)("ngTemplateOutletContext",ot.templateContext)}}function Xe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,Se,2,2,"ng-container",21),_.BQk()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("ngIf",ot.isTemplateRef(ot.nzContent))}}function J(it,St){}function fe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,J,0,0,"ng-template",23),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.contentFromContentChild)}}function he(it,St){if(1&it&&_.YNc(0,fe,2,1,"ng-container",21),2&it){const ot=_.oxw(2);_.Q6J("ngIf",ot.contentFromContentChild&&(ot.isOpen||ot.inAnimation))}}function te(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("innerHTML",ot.nzFooter,_.oJD)}}function le(it,St){if(1&it&&(_.TgZ(0,"div",24),_.YNc(1,te,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzFooter)}}function ie(it,St){if(1&it&&(_.TgZ(0,"div",1),_.YNc(1,_e,1,1,"div",2),_.TgZ(2,"div"),_.TgZ(3,"div",3),_.TgZ(4,"div",4),_.YNc(5,Ie,4,4,"div",5),_.TgZ(6,"div",6),_.YNc(7,$e,0,0,"ng-template",7),_.YNc(8,Xe,2,1,"ng-container",8),_.YNc(9,he,1,1,"ng-template",null,9,_.W1O),_.qZA(),_.YNc(11,le,2,1,"div",10),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&it){const ot=_.MAs(10),Et=_.oxw();_.Udp("transform",Et.offsetTransform)("transition",Et.placementChanging?"none":null)("z-index",Et.nzZIndex),_.ekj("ant-drawer-rtl","rtl"===Et.dir)("ant-drawer-open",Et.isOpen)("no-mask",!Et.nzMask)("ant-drawer-top","top"===Et.nzPlacement)("ant-drawer-bottom","bottom"===Et.nzPlacement)("ant-drawer-right","right"===Et.nzPlacement)("ant-drawer-left","left"===Et.nzPlacement),_.Q6J("nzNoAnimation",Et.nzNoAnimation),_.xp6(1),_.Q6J("ngIf",Et.nzMask),_.xp6(1),_.Gre("ant-drawer-content-wrapper ",Et.nzWrapClassName,""),_.Udp("width",Et.width)("height",Et.height)("transform",Et.transform)("transition",Et.placementChanging?"none":null),_.xp6(2),_.Udp("height",Et.isLeftOrRight?"100%":null),_.xp6(1),_.Q6J("ngIf",Et.nzTitle||Et.nzClosable),_.xp6(1),_.Q6J("ngStyle",Et.nzBodyStyle),_.xp6(2),_.Q6J("ngIf",Et.nzContent)("ngIfElse",ot),_.xp6(3),_.Q6J("ngIf",Et.nzFooter)}}let Ue=(()=>{class it{constructor(ot){this.templateRef=ot}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.Rgc))},it.\u0275dir=_.lG2({type:it,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),it})();class je{}let ve=(()=>{class it extends je{constructor(ot,Et,Zt,mn,vn,Ut,un,_n,Cn,Dt,Sn){super(),this.cdr=ot,this.document=Et,this.nzConfigService=Zt,this.renderer=mn,this.overlay=vn,this.injector=Ut,this.changeDetectorRef=un,this.focusTrapFactory=_n,this.viewContainerRef=Cn,this.overlayKeyboardDispatcher=Dt,this.directionality=Sn,this._nzModuleName="drawer",this.nzCloseIcon="close",this.nzClosable=!0,this.nzMaskClosable=!0,this.nzMask=!0,this.nzCloseOnNavigation=!0,this.nzNoAnimation=!1,this.nzKeyboard=!0,this.nzPlacement="right",this.nzMaskStyle={},this.nzBodyStyle={},this.nzWidth=256,this.nzHeight=256,this.nzZIndex=1e3,this.nzOffsetX=0,this.nzOffsetY=0,this.componentInstance=null,this.nzOnViewInit=new _.vpe,this.nzOnClose=new _.vpe,this.nzVisibleChange=new _.vpe,this.destroy$=new W.xQ,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new W.xQ,this.nzAfterClose=new W.xQ,this.nzDirection=void 0,this.dir="ltr"}set nzVisible(ot){this.isOpen=ot}get nzVisible(){return this.isOpen}get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){return this.isLeftOrRight?(0,H.WX)(this.nzWidth):null}get height(){return this.isLeftOrRight?null:(0,H.WX)(this.nzHeight)}get isLeftOrRight(){return"left"===this.nzPlacement||"right"===this.nzPlacement}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}isTemplateRef(ot){return ot instanceof _.Rgc}ngOnInit(){var ot;null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,I.R)(this.destroy$)).subscribe(Et=>{this.dir=Et,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(ot){const{nzPlacement:Et,nzVisible:Zt}=ot;Zt&&(ot.nzVisible.currentValue?this.open():this.close()),Et&&!Et.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()}getAnimationDuration(){return this.nzNoAnimation?0:300}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(ot){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(ot),this.nzAfterClose.complete(),this.componentInstance=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof _.DyG){const ot=_.zs3.create({parent:this.injector,providers:[{provide:je,useValue:this}]}),Et=new oe.C5(this.nzContent,null,ot),Zt=this.bodyPortalOutlet.attachComponentPortal(Et);this.componentInstance=Zt.instance,Object.assign(Zt.instance,this.nzContentParams),Zt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new oe.UE(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe((0,I.R)(this.destroy$)).subscribe(ot=>{ot.keyCode===s.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){var ot;null===(ot=this.overlayRef)||void 0===ot||ot.dispose(),this.overlayRef=null}getOverlayConfig(){return new G.X_({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.sBO),_.Y36(q.K0,8),_.Y36(R.jY),_.Y36(_.Qsj),_.Y36(G.aV),_.Y36(_.zs3),_.Y36(_.sBO),_.Y36(B.qV),_.Y36(_.s_b),_.Y36(G.Vs),_.Y36(ee.Is,8))},it.\u0275cmp=_.Xpm({type:it,selectors:[["nz-drawer"]],contentQueries:function(ot,Et,Zt){if(1&ot&&_.Suo(Zt,Ue,7,_.Rgc),2&ot){let mn;_.iGM(mn=_.CRH())&&(Et.contentFromContentChild=mn.first)}},viewQuery:function(ot,Et){if(1&ot&&(_.Gf(ze,7),_.Gf(oe.Pl,5)),2&ot){let Zt;_.iGM(Zt=_.CRH())&&(Et.drawerTemplate=Zt.first),_.iGM(Zt=_.CRH())&&(Et.bodyPortalOutlet=Zt.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:"nzVisible"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[_.qOj,_.TTD],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],["class","ant-drawer-header",3,"ant-drawer-header-close-only",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf","ngIfElse"],["contentElseTemp",""],["class","ant-drawer-footer",4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],["class","ant-drawer-title",4,"ngIf"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],[1,"ant-drawer-title"],[3,"innerHTML"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],[1,"ant-drawer-footer"]],template:function(ot,Et){1&ot&&_.YNc(0,ie,12,40,"ng-template",null,0,_.W1O)},directives:[ye.P,q.O5,q.PC,Ye.f,Fe.Ls,oe.Pl,q.tP],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,H.yF)()],it.prototype,"nzClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMaskClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMask",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzCloseOnNavigation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzNoAnimation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzKeyboard",void 0),(0,a.gn)([(0,R.oS)()],it.prototype,"nzDirection",void 0),it})(),mt=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({}),it})(),Qe=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({imports:[[ee.vT,q.ez,G.U8,oe.eL,Fe.PV,Ye.T,ye.g,mt]]}),it})()},4170:(yt,be,p)=>{p.d(be,{u7:()=>_,YI:()=>H,wi:()=>I,bF:()=>q});var a=p(5e3),s=p(591),G=p(6947),oe={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},q={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const _=new a.OlP("nz-i18n"),W=new a.OlP("nz-date-locale");let I=(()=>{class ${constructor(Ae,wt){this._change=new s.X(this._locale),this.setLocale(Ae||q),this.setDateLocale(wt||null)}get localeChange(){return this._change.asObservable()}translate(Ae,wt){let At=this._getObjectPath(this._locale,Ae);return"string"==typeof At?(wt&&Object.keys(wt).forEach(Qt=>At=At.replace(new RegExp(`%${Qt}%`,"g"),wt[Qt])),At):Ae}setLocale(Ae){this._locale&&this._locale.locale===Ae.locale||(this._locale=Ae,this._change.next(Ae))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Ae){this.dateLocale=Ae}getDateLocale(){return this.dateLocale}getLocaleData(Ae,wt){const At=Ae?this._getObjectPath(this._locale,Ae):this._locale;return!At&&!wt&&(0,G.ZK)(`Missing translations for "${Ae}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),At||wt||this._getObjectPath(oe,Ae)||{}}_getObjectPath(Ae,wt){let At=Ae;const Qt=wt.split("."),gn=Qt.length;let Vn=0;for(;At&&Vn{class ${}return $.\u0275fac=function(Ae){return new(Ae||$)},$.\u0275mod=a.oAB({type:$}),$.\u0275inj=a.cJS({}),$})();new a.OlP("date-config")},647:(yt,be,p)=>{p.d(be,{sV:()=>Wt,Ls:()=>Rn,PV:()=>qn});var a=p(925),s=p(5e3),G=p(655),oe=p(8929),q=p(5254),_=p(7625),W=p(9808);function I(X,se){(function H(X){return"string"==typeof X&&-1!==X.indexOf(".")&&1===parseFloat(X)})(X)&&(X="100%");var k=function B(X){return"string"==typeof X&&-1!==X.indexOf("%")}(X);return X=360===se?X:Math.min(se,Math.max(0,parseFloat(X))),k&&(X=parseInt(String(X*se),10)/100),Math.abs(X-se)<1e-6?1:X=360===se?(X<0?X%se+se:X%se)/parseFloat(String(se)):X%se/parseFloat(String(se))}function R(X){return Math.min(1,Math.max(0,X))}function ee(X){return X=parseFloat(X),(isNaN(X)||X<0||X>1)&&(X=1),X}function ye(X){return X<=1?100*Number(X)+"%":X}function Ye(X){return 1===X.length?"0"+X:String(X)}function ze(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=0,Vt=(Ee+st)/2;if(Ee===st)Ot=0,Ct=0;else{var hn=Ee-st;switch(Ot=Vt>.5?hn/(2-Ee-st):hn/(Ee+st),Ee){case X:Ct=(se-k)/hn+(se1&&(k-=1),k<1/6?X+6*k*(se-X):k<.5?se:k<2/3?X+(se-X)*(2/3-k)*6:X}function Je(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=Ee,Vt=Ee-st,hn=0===Ee?0:Vt/Ee;if(Ee===st)Ct=0;else{switch(Ee){case X:Ct=(se-k)/Vt+(se>16,g:(65280&X)>>8,b:255&X}}(se)),this.originalInput=se;var st=function he(X){var se={r:0,g:0,b:0},k=1,Ee=null,st=null,Ct=null,Ot=!1,Vt=!1;return"string"==typeof X&&(X=function ke(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var se=!1;if(fe[X])X=fe[X],se=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var k=tt.rgb.exec(X);return k?{r:k[1],g:k[2],b:k[3]}:(k=tt.rgba.exec(X))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=tt.hsl.exec(X))?{h:k[1],s:k[2],l:k[3]}:(k=tt.hsla.exec(X))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=tt.hsv.exec(X))?{h:k[1],s:k[2],v:k[3]}:(k=tt.hsva.exec(X))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=tt.hex8.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),a:Se(k[4]),format:se?"name":"hex8"}:(k=tt.hex6.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),format:se?"name":"hex"}:(k=tt.hex4.exec(X))?{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),a:Se(k[4]+k[4]),format:se?"name":"hex8"}:!!(k=tt.hex3.exec(X))&&{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),format:se?"name":"hex"}}(X)),"object"==typeof X&&(ve(X.r)&&ve(X.g)&&ve(X.b)?(se=function Fe(X,se,k){return{r:255*I(X,255),g:255*I(se,255),b:255*I(k,255)}}(X.r,X.g,X.b),Ot=!0,Vt="%"===String(X.r).substr(-1)?"prgb":"rgb"):ve(X.h)&&ve(X.s)&&ve(X.v)?(Ee=ye(X.s),st=ye(X.v),se=function zt(X,se,k){X=6*I(X,360),se=I(se,100),k=I(k,100);var Ee=Math.floor(X),st=X-Ee,Ct=k*(1-se),Ot=k*(1-st*se),Vt=k*(1-(1-st)*se),hn=Ee%6;return{r:255*[k,Ot,Ct,Ct,Vt,k][hn],g:255*[Vt,k,k,Ot,Ct,Ct][hn],b:255*[Ct,Ct,Vt,k,k,Ot][hn]}}(X.h,Ee,st),Ot=!0,Vt="hsv"):ve(X.h)&&ve(X.s)&&ve(X.l)&&(Ee=ye(X.s),Ct=ye(X.l),se=function vt(X,se,k){var Ee,st,Ct;if(X=I(X,360),se=I(se,100),k=I(k,100),0===se)st=k,Ct=k,Ee=k;else{var Ot=k<.5?k*(1+se):k+se-k*se,Vt=2*k-Ot;Ee=_e(Vt,Ot,X+1/3),st=_e(Vt,Ot,X),Ct=_e(Vt,Ot,X-1/3)}return{r:255*Ee,g:255*st,b:255*Ct}}(X.h,Ee,Ct),Ot=!0,Vt="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(k=X.a)),k=ee(k),{ok:Ot,format:X.format||Vt,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:k}}(se);this.originalInput=se,this.r=st.r,this.g=st.g,this.b=st.b,this.a=st.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Ee=k.format)&&void 0!==Ee?Ee:st.format,this.gradientType=k.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=st.ok}return X.prototype.isDark=function(){return this.getBrightness()<128},X.prototype.isLight=function(){return!this.isDark()},X.prototype.getBrightness=function(){var se=this.toRgb();return(299*se.r+587*se.g+114*se.b)/1e3},X.prototype.getLuminance=function(){var se=this.toRgb(),Ct=se.r/255,Ot=se.g/255,Vt=se.b/255;return.2126*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.7152*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))+.0722*(Vt<=.03928?Vt/12.92:Math.pow((Vt+.055)/1.055,2.4))},X.prototype.getAlpha=function(){return this.a},X.prototype.setAlpha=function(se){return this.a=ee(se),this.roundA=Math.round(100*this.a)/100,this},X.prototype.toHsv=function(){var se=Je(this.r,this.g,this.b);return{h:360*se.h,s:se.s,v:se.v,a:this.a}},X.prototype.toHsvString=function(){var se=Je(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.v);return 1===this.a?"hsv("+k+", "+Ee+"%, "+st+"%)":"hsva("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHsl=function(){var se=ze(this.r,this.g,this.b);return{h:360*se.h,s:se.s,l:se.l,a:this.a}},X.prototype.toHslString=function(){var se=ze(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.l);return 1===this.a?"hsl("+k+", "+Ee+"%, "+st+"%)":"hsla("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHex=function(se){return void 0===se&&(se=!1),ut(this.r,this.g,this.b,se)},X.prototype.toHexString=function(se){return void 0===se&&(se=!1),"#"+this.toHex(se)},X.prototype.toHex8=function(se){return void 0===se&&(se=!1),function Ie(X,se,k,Ee,st){var Ct=[Ye(Math.round(X).toString(16)),Ye(Math.round(se).toString(16)),Ye(Math.round(k).toString(16)),Ye(et(Ee))];return st&&Ct[0].startsWith(Ct[0].charAt(1))&&Ct[1].startsWith(Ct[1].charAt(1))&&Ct[2].startsWith(Ct[2].charAt(1))&&Ct[3].startsWith(Ct[3].charAt(1))?Ct[0].charAt(0)+Ct[1].charAt(0)+Ct[2].charAt(0)+Ct[3].charAt(0):Ct.join("")}(this.r,this.g,this.b,this.a,se)},X.prototype.toHex8String=function(se){return void 0===se&&(se=!1),"#"+this.toHex8(se)},X.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},X.prototype.toRgbString=function(){var se=Math.round(this.r),k=Math.round(this.g),Ee=Math.round(this.b);return 1===this.a?"rgb("+se+", "+k+", "+Ee+")":"rgba("+se+", "+k+", "+Ee+", "+this.roundA+")"},X.prototype.toPercentageRgb=function(){var se=function(k){return Math.round(100*I(k,255))+"%"};return{r:se(this.r),g:se(this.g),b:se(this.b),a:this.a}},X.prototype.toPercentageRgbString=function(){var se=function(k){return Math.round(100*I(k,255))};return 1===this.a?"rgb("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%)":"rgba("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%, "+this.roundA+")"},X.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var se="#"+ut(this.r,this.g,this.b,!1),k=0,Ee=Object.entries(fe);k=0&&(se.startsWith("hex")||"name"===se)?"name"===se&&0===this.a?this.toName():this.toRgbString():("rgb"===se&&(Ee=this.toRgbString()),"prgb"===se&&(Ee=this.toPercentageRgbString()),("hex"===se||"hex6"===se)&&(Ee=this.toHexString()),"hex3"===se&&(Ee=this.toHexString(!0)),"hex4"===se&&(Ee=this.toHex8String(!0)),"hex8"===se&&(Ee=this.toHex8String()),"name"===se&&(Ee=this.toName()),"hsl"===se&&(Ee=this.toHslString()),"hsv"===se&&(Ee=this.toHsvString()),Ee||this.toHexString())},X.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},X.prototype.clone=function(){return new X(this.toString())},X.prototype.lighten=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l+=se/100,k.l=R(k.l),new X(k)},X.prototype.brighten=function(se){void 0===se&&(se=10);var k=this.toRgb();return k.r=Math.max(0,Math.min(255,k.r-Math.round(-se/100*255))),k.g=Math.max(0,Math.min(255,k.g-Math.round(-se/100*255))),k.b=Math.max(0,Math.min(255,k.b-Math.round(-se/100*255))),new X(k)},X.prototype.darken=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l-=se/100,k.l=R(k.l),new X(k)},X.prototype.tint=function(se){return void 0===se&&(se=10),this.mix("white",se)},X.prototype.shade=function(se){return void 0===se&&(se=10),this.mix("black",se)},X.prototype.desaturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s-=se/100,k.s=R(k.s),new X(k)},X.prototype.saturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s+=se/100,k.s=R(k.s),new X(k)},X.prototype.greyscale=function(){return this.desaturate(100)},X.prototype.spin=function(se){var k=this.toHsl(),Ee=(k.h+se)%360;return k.h=Ee<0?360+Ee:Ee,new X(k)},X.prototype.mix=function(se,k){void 0===k&&(k=50);var Ee=this.toRgb(),st=new X(se).toRgb(),Ct=k/100;return new X({r:(st.r-Ee.r)*Ct+Ee.r,g:(st.g-Ee.g)*Ct+Ee.g,b:(st.b-Ee.b)*Ct+Ee.b,a:(st.a-Ee.a)*Ct+Ee.a})},X.prototype.analogous=function(se,k){void 0===se&&(se=6),void 0===k&&(k=30);var Ee=this.toHsl(),st=360/k,Ct=[this];for(Ee.h=(Ee.h-(st*se>>1)+720)%360;--se;)Ee.h=(Ee.h+st)%360,Ct.push(new X(Ee));return Ct},X.prototype.complement=function(){var se=this.toHsl();return se.h=(se.h+180)%360,new X(se)},X.prototype.monochromatic=function(se){void 0===se&&(se=6);for(var k=this.toHsv(),Ee=k.h,st=k.s,Ct=k.v,Ot=[],Vt=1/se;se--;)Ot.push(new X({h:Ee,s:st,v:Ct})),Ct=(Ct+Vt)%1;return Ot},X.prototype.splitcomplement=function(){var se=this.toHsl(),k=se.h;return[this,new X({h:(k+72)%360,s:se.s,l:se.l}),new X({h:(k+216)%360,s:se.s,l:se.l})]},X.prototype.onBackground=function(se){var k=this.toRgb(),Ee=new X(se).toRgb();return new X({r:Ee.r+(k.r-Ee.r)*k.a,g:Ee.g+(k.g-Ee.g)*k.a,b:Ee.b+(k.b-Ee.b)*k.a})},X.prototype.triad=function(){return this.polyad(3)},X.prototype.tetrad=function(){return this.polyad(4)},X.prototype.polyad=function(se){for(var k=this.toHsl(),Ee=k.h,st=[this],Ct=360/se,Ot=1;Ot=60&&Math.round(X.h)<=240?k?Math.round(X.h)-2*se:Math.round(X.h)+2*se:k?Math.round(X.h)+2*se:Math.round(X.h)-2*se)<0?Ee+=360:Ee>=360&&(Ee-=360),Ee}function Ut(X,se,k){return 0===X.h&&0===X.s?X.s:((Ee=k?X.s-.16*se:4===se?X.s+.16:X.s+.05*se)>1&&(Ee=1),k&&5===se&&Ee>.1&&(Ee=.1),Ee<.06&&(Ee=.06),Number(Ee.toFixed(2)));var Ee}function un(X,se,k){var Ee;return(Ee=k?X.v+.05*se:X.v-.15*se)>1&&(Ee=1),Number(Ee.toFixed(2))}function _n(X){for(var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},k=[],Ee=new mt(X),st=5;st>0;st-=1){var Ct=Ee.toHsv(),Ot=new mt({h:vn(Ct,st,!0),s:Ut(Ct,st,!0),v:un(Ct,st,!0)}).toHexString();k.push(Ot)}k.push(Ee.toHexString());for(var Vt=1;Vt<=4;Vt+=1){var hn=Ee.toHsv(),ni=new mt({h:vn(hn,Vt),s:Ut(hn,Vt),v:un(hn,Vt)}).toHexString();k.push(ni)}return"dark"===se.theme?mn.map(function(ai){var kn=ai.index,bi=ai.opacity;return new mt(se.backgroundColor||"#141414").mix(k[kn],100*bi).toHexString()}):k}var Cn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Dt={},Sn={};Object.keys(Cn).forEach(function(X){Dt[X]=_n(Cn[X]),Dt[X].primary=Dt[X][5],Sn[X]=_n(Cn[X],{theme:"dark",backgroundColor:"#141414"}),Sn[X].primary=Sn[X][5]});var V=p(520),Be=p(1086),nt=p(6498),ce=p(4850),Ne=p(2994),L=p(537),E=p(7221),$=p(8117),ue=p(2198),Ae=p(2986),wt=p(2313);const At="[@ant-design/icons-angular]:";function gn(X){(0,s.X6Q)()&&console.warn(`${At} ${X}.`)}function Vn(X){return _n(X)[0]}function An(X,se){switch(se){case"fill":return`${X}-fill`;case"outline":return`${X}-o`;case"twotone":return`${X}-twotone`;case void 0:return X;default:throw new Error(`${At}Theme "${se}" is not a recognized theme!`)}}function Re(X){return"object"==typeof X&&"string"==typeof X.name&&("string"==typeof X.theme||void 0===X.theme)&&"string"==typeof X.icon}function ht(X){const se=X.split(":");switch(se.length){case 1:return[X,""];case 2:return[se[1],se[0]];default:throw new Error(`${At}The icon type ${X} is not valid!`)}}function Zn(){return new Error(`${At} tag not found.`)}let ei=(()=>{class X{constructor(k,Ee,st,Ct){this._rendererFactory=k,this._handler=Ee,this._document=st,this.sanitizer=Ct,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new oe.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new V.eN(this._handler))}set twoToneColor({primaryColor:k,secondaryColor:Ee}){this._twoToneColorPalette.primaryColor=k,this._twoToneColorPalette.secondaryColor=Ee||Vn(k)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?gn("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=k=>{this._jsonpIconLoad$.next(k)})}changeAssetsSource(k){this._assetsUrlRoot=k.endsWith("/")?k:k+"/"}addIcon(...k){k.forEach(Ee=>{this._svgDefinitions.set(An(Ee.name,Ee.theme),Ee)})}addIconLiteral(k,Ee){const[st,Ct]=ht(k);if(!Ct)throw function jt(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:k,icon:Ee})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(k,Ee){const st=Re(k)?k:this._svgDefinitions.get(k)||null;return(st?(0,Be.of)(st):this._loadIconDynamically(k)).pipe((0,ce.U)(Ot=>{if(!Ot)throw function fn(X){return new Error(`${At}the icon ${X} does not exist or is not registered.`)}(k);return this._loadSVGFromCacheOrCreateNew(Ot,Ee)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(k){if(!this._http&&!this._enableJsonpLoading)return(0,Be.of)(function Pn(){return function Qt(X){console.error(`${At} ${X}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let Ee=this._inProgressFetches.get(k);if(!Ee){const[st,Ct]=ht(k),Ot=Ct?{name:k,icon:""}:function we(X){const se=X.split("-"),k=function jn(X){return"o"===X?"outline":X}(se.splice(se.length-1,1)[0]);return{name:se.join("-"),theme:k,icon:""}}(st),hn=(Ct?`${this._assetsUrlRoot}assets/${Ct}/${st}`:`${this._assetsUrlRoot}assets/${Ot.theme}/${Ot.name}`)+(this._enableJsonpLoading?".js":".svg"),ni=this.sanitizer.sanitize(s.q3G.URL,hn);if(!ni)throw function si(X){return new Error(`${At}The url "${X}" is unsafe.`)}(hn);Ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(Ot,ni):this._http.get(ni,{responseType:"text"}).pipe((0,ce.U)(kn=>Object.assign(Object.assign({},Ot),{icon:kn})))).pipe((0,Ne.b)(kn=>this.addIcon(kn)),(0,L.x)(()=>this._inProgressFetches.delete(k)),(0,E.K)(()=>(0,Be.of)(null)),(0,$.B)()),this._inProgressFetches.set(k,Ee)}return Ee}_loadIconDynamicallyWithJsonp(k,Ee){return new nt.y(st=>{const Ct=this._document.createElement("script"),Ot=setTimeout(()=>{Vt(),st.error(function ii(){return new Error(`${At}Importing timeout error.`)}())},6e3);function Vt(){Ct.parentNode.removeChild(Ct),clearTimeout(Ot)}Ct.src=Ee,this._document.body.appendChild(Ct),this._jsonpIconLoad$.pipe((0,ue.h)(hn=>hn.name===k.name&&hn.theme===k.theme),(0,Ae.q)(1)).subscribe(hn=>{st.next(hn),Vt()})})}_loadSVGFromCacheOrCreateNew(k,Ee){let st;const Ct=Ee||this._twoToneColorPalette.primaryColor,Ot=Vn(Ct)||this._twoToneColorPalette.secondaryColor,Vt="twotone"===k.theme?function ri(X,se,k,Ee){return`${An(X,se)}-${k}-${Ee}`}(k.name,k.theme,Ct,Ot):void 0===k.theme?k.name:An(k.name,k.theme),hn=this._svgRenderedDefinitions.get(Vt);return hn?st=hn.icon:(st=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function It(X){return""!==ht(X)[1]}(k.name)?k.icon:function Ve(X){return X.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(k.icon)),"twotone"===k.theme,Ct,Ot)),this._svgRenderedDefinitions.set(Vt,Object.assign(Object.assign({},k),{icon:st}))),function ae(X){return X.cloneNode(!0)}(st)}_createSVGElementFromString(k){const Ee=this._document.createElement("div");Ee.innerHTML=k;const st=Ee.querySelector("svg");if(!st)throw Zn;return st}_setSVGAttribute(k){return this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em"),k}_colorizeSVGIcon(k,Ee,st,Ct){if(Ee){const Ot=k.childNodes,Vt=Ot.length;for(let hn=0;hn{class X{constructor(k,Ee,st){this._iconService=k,this._elementRef=Ee,this._renderer=st}ngOnChanges(k){(k.type||k.theme||k.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(k=>{if(this.type){const Ee=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(st=>{!function Ln(X,se){return X.type===se.type&&X.theme===se.theme&&X.twoToneColor===se.twoToneColor}(Ee,this._getSelfRenderMeta())?k(null):(this._setSVGElement(st),k(st))})}else this._clearSVGElement(),k(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(k,Ee){if(Re(k))return k;{const[st,Ct]=ht(k);return Ct?k:function qt(X){return X.endsWith("-fill")||X.endsWith("-o")||X.endsWith("-twotone")}(st)?(Ee&&gn(`'type' ${st} already gets a theme inside so 'theme' ${Ee} would be ignored`),st):An(st,Ee||this._iconService.defaultTheme)}}_setSVGElement(k){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,k)}_clearSVGElement(){var k;const Ee=this._elementRef.nativeElement,st=Ee.childNodes;for(let Ot=st.length-1;Ot>=0;Ot--){const Vt=st[Ot];"svg"===(null===(k=Vt.tagName)||void 0===k?void 0:k.toLowerCase())&&this._renderer.removeChild(Ee,Vt)}}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(ei),s.Y36(s.SBq),s.Y36(s.Qsj))},X.\u0275dir=s.lG2({type:X,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[s.TTD]}),X})();var Qn=p(1721),Te=p(6947),Ze=p(9193),De=p(9439);const rt=[Ze.V65,Ze.ud1,Ze.bBn,Ze.BOg,Ze.Hkd,Ze.XuQ,Ze.Rfq,Ze.yQU,Ze.U2Q,Ze.UKj,Ze.OYp,Ze.BXH,Ze.eLU,Ze.x0x,Ze.VWu,Ze.rMt,Ze.vEg,Ze.RIp,Ze.RU0,Ze.M8e,Ze.ssy,Ze.Z5F,Ze.iUK,Ze.LJh,Ze.NFG,Ze.UTl,Ze.nrZ,Ze.gvV,Ze.d2H,Ze.eFY,Ze.sZJ,Ze.np6,Ze.w1L,Ze.UY$,Ze.v6v,Ze.rHg,Ze.v6v,Ze.s_U,Ze.TSL,Ze.FsU,Ze.cN2,Ze.uIz,Ze.d_$],Wt=new s.OlP("nz_icons"),Lt=(new s.OlP("nz_icon_default_twotone_color"),"#1890ff");let Un=(()=>{class X extends ei{constructor(k,Ee,st,Ct,Ot,Vt){super(k,Ct,Ot,Ee),this.nzConfigService=st,this.configUpdated$=new oe.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...rt,...Vt||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(k){k.getAttribute("viewBox")||this._renderer.setAttribute(k,"viewBox","0 0 1024 1024"),(!k.getAttribute("width")||!k.getAttribute("height"))&&(this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em")),k.getAttribute("fill")||this._renderer.setAttribute(k,"fill","currentColor")}fetchFromIconfont(k){const{scriptUrl:Ee}=k;if(this._document&&!this.iconfontCache.has(Ee)){const st=this._renderer.createElement("script");this._renderer.setAttribute(st,"src",Ee),this._renderer.setAttribute(st,"data-namespace",Ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,st),this.iconfontCache.add(Ee)}}createIconfontIcon(k){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const k=this.getConfig();this.defaultTheme=k.nzTheme||"outline"}configDefaultTwotoneColor(){const Ee=this.getConfig().nzTwotoneColor||Lt;let st=Lt;Ee&&(Ee.startsWith("#")?st=Ee:(0,Te.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:st}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return X.\u0275fac=function(k){return new(k||X)(s.LFG(s.FYo),s.LFG(wt.H7),s.LFG(De.jY),s.LFG(V.jN,8),s.LFG(W.K0,8),s.LFG(Wt,8))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const $n=new s.OlP("nz_icons_patch");let Nn=(()=>{class X{constructor(k,Ee){this.extraIcons=k,this.rootIconService=Ee,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(k=>this.rootIconService.addIcon(k)),this.patched=!0)}}return X.\u0275fac=function(k){return new(k||X)(s.LFG($n,2),s.LFG(Un))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac}),X})(),Rn=(()=>{class X extends Tt{constructor(k,Ee,st,Ct,Ot,Vt){super(Ct,st,Ot),this.ngZone=k,this.changeDetectorRef=Ee,this.iconService=Ct,this.renderer=Ot,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new oe.xQ,Vt&&Vt.doPatch(),this.el=st.nativeElement}set nzSpin(k){this.spin=k}set nzType(k){this.type=k}set nzTheme(k){this.theme=k}set nzTwotoneColor(k){this.twoToneColor=k}set nzIconfont(k){this.iconfont=k}ngOnChanges(k){const{nzType:Ee,nzTwotoneColor:st,nzSpin:Ct,nzTheme:Ot,nzRotate:Vt}=k;Ee||st||Ct||Ot?this.changeIcon2():Vt?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const k=this.el.children;let Ee=k.length;if(!this.type&&k.length)for(;Ee--;){const st=k[Ee];"svg"===st.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(st)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,q.D)(this._changeIcon()).pipe((0,_.R)(this.destroy$)).subscribe(k=>{this.changeDetectorRef.detectChanges(),k&&(this.setSVGData(k),this.handleSpin(k),this.handleRotate(k))})})}handleSpin(k){this.spin||"loading"===this.type?this.renderer.addClass(k,"anticon-spin"):this.renderer.removeClass(k,"anticon-spin")}handleRotate(k){this.nzRotate?this.renderer.setAttribute(k,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(k,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(k){this.renderer.setAttribute(k,"data-icon",this.type),this.renderer.setAttribute(k,"aria-hidden","true")}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(Un),s.Y36(s.Qsj),s.Y36(Nn,8))},X.\u0275dir=s.lG2({type:X,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(k,Ee){2&k&&s.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[s.qOj,s.TTD]}),(0,G.gn)([(0,Qn.yF)()],X.prototype,"nzSpin",null),X})(),qn=(()=>{class X{static forRoot(k){return{ngModule:X,providers:[{provide:Wt,useValue:k}]}}static forChild(k){return{ngModule:X,providers:[Nn,{provide:$n,useValue:k}]}}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=s.oAB({type:X}),X.\u0275inj=s.cJS({imports:[[a.ud]]}),X})()},4219:(yt,be,p)=>{p.d(be,{hl:()=>cn,Cc:()=>Dt,wO:()=>Le,YV:()=>Be,r9:()=>qe,ip:()=>nt});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(6787),_=p(6053),W=p(4850),I=p(1709),R=p(2198),H=p(7604),B=p(7138),ee=p(5778),ye=p(7625),Ye=p(1059),Fe=p(7545),ze=p(1721),_e=p(2302),vt=p(226),Je=p(2845),zt=p(6950),ut=p(925),Ie=p(4832),$e=p(9808),et=p(647),Se=p(969),Xe=p(8076);const J=["nz-submenu-title",""];function fe(ce,Ne){if(1&ce&&s._UZ(0,"i",4),2&ce){const L=s.oxw();s.Q6J("nzType",L.nzIcon)}}function he(ce,Ne){if(1&ce&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2),s.qZA(),s.BQk()),2&ce){const L=s.oxw();s.xp6(2),s.Oqu(L.nzTitle)}}function te(ce,Ne){1&ce&&s._UZ(0,"i",8)}function le(ce,Ne){1&ce&&s._UZ(0,"i",9)}function ie(ce,Ne){if(1&ce&&(s.TgZ(0,"span",5),s.YNc(1,te,1,0,"i",6),s.YNc(2,le,1,0,"i",7),s.qZA()),2&ce){const L=s.oxw();s.Q6J("ngSwitch",L.dir),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ue(ce,Ne){1&ce&&s._UZ(0,"i",10)}const je=["*"],tt=["nz-submenu-inline-child",""];function ke(ce,Ne){}const ve=["nz-submenu-none-inline-child",""];function mt(ce,Ne){}const Qe=["nz-submenu",""];function dt(ce,Ne){1&ce&&s.Hsn(0,0,["*ngIf","!nzTitle"])}function _t(ce,Ne){if(1&ce&&s._UZ(0,"div",6),2&ce){const L=s.oxw(),E=s.MAs(7);s.Q6J("mode",L.mode)("nzOpen",L.nzOpen)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("menuClass",L.nzMenuClassName)("templateOutlet",E)}}function it(ce,Ne){if(1&ce){const L=s.EpF();s.TgZ(0,"div",8),s.NdJ("subMenuMouseState",function($){return s.CHM(L),s.oxw(2).setMouseEnterState($)}),s.qZA()}if(2&ce){const L=s.oxw(2),E=s.MAs(7);s.Q6J("theme",L.theme)("mode",L.mode)("nzOpen",L.nzOpen)("position",L.position)("nzDisabled",L.nzDisabled)("isMenuInsideDropDown",L.isMenuInsideDropDown)("templateOutlet",E)("menuClass",L.nzMenuClassName)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)}}function St(ce,Ne){if(1&ce){const L=s.EpF();s.YNc(0,it,1,10,"ng-template",7),s.NdJ("positionChange",function($){return s.CHM(L),s.oxw().onPositionChange($)})}if(2&ce){const L=s.oxw(),E=s.MAs(1);s.Q6J("cdkConnectedOverlayPositions",L.overlayPositions)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayWidth",L.triggerWidth)("cdkConnectedOverlayOpen",L.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function ot(ce,Ne){1&ce&&s.Hsn(0,1)}const Et=[[["","title",""]],"*"],Zt=["[title]","*"],Dt=new s.OlP("NzIsInDropDownMenuToken"),Sn=new s.OlP("NzMenuServiceLocalToken");let cn=(()=>{class ce{constructor(){this.descendantMenuItemClick$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.theme$=new oe.X("light"),this.mode$=new oe.X("vertical"),this.inlineIndent$=new oe.X(24),this.isChildSubMenuOpen$=new oe.X(!1)}onDescendantMenuItemClick(L){this.descendantMenuItemClick$.next(L)}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setMode(L){this.mode$.next(L)}setTheme(L){this.theme$.next(L)}setInlineIndent(L){this.inlineIndent$.next(L)}}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),Mn=(()=>{class ce{constructor(L,E,$){this.nzHostSubmenuService=L,this.nzMenuService=E,this.isMenuInsideDropDown=$,this.mode$=this.nzMenuService.mode$.pipe((0,W.U)(At=>"inline"===At?"inline":"vertical"===At||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new oe.X(!1),this.isChildSubMenuOpen$=new oe.X(!1),this.isMouseEnterTitleOrOverlay$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.destroy$=new G.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ue=this.childMenuItemClick$.pipe((0,I.zg)(()=>this.mode$),(0,R.h)(At=>"inline"!==At||this.isMenuInsideDropDown),(0,H.h)(!1)),Ae=(0,q.T)(this.isMouseEnterTitleOrOverlay$,ue);(0,_.aj)([this.isChildSubMenuOpen$,Ae]).pipe((0,W.U)(([At,Qt])=>At||Qt),(0,B.e)(150),(0,ee.x)(),(0,ye.R)(this.destroy$)).pipe((0,ee.x)()).subscribe(At=>{this.setOpenStateWithoutDebounce(At),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(At):this.nzMenuService.isChildSubMenuOpen$.next(At)})}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setOpenStateWithoutDebounce(L){this.isCurrentSubMenuOpen$.next(L)}setMouseEnterTitleOrOverlayState(L){this.isMouseEnterTitleOrOverlay$.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.LFG(ce,12),s.LFG(cn),s.LFG(Dt))},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),qe=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At,Qt){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.isMenuInsideDropDown=ue,this.directionality=Ae,this.routerLink=wt,this.routerLinkWithHref=At,this.router=Qt,this.destroy$=new G.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new G.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Qt&&this.router.events.pipe((0,ye.R)(this.destroy$),(0,R.h)(gn=>gn instanceof _e.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(L){this.nzDisabled?(L.preventDefault(),L.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(L){this.nzSelected=L,this.selected$.next(L)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const L=this.hasActiveLinks();this.nzSelected!==L&&(this.nzSelected=L,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const L=this.isLinkActive(this.router);return this.routerLink&&L(this.routerLink)||this.routerLinkWithHref&&L(this.routerLinkWithHref)||this.listOfRouterLink.some(L)||this.listOfRouterLinkWithHref.some(L)}isLinkActive(L){return E=>L.isActive(E.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var L;(0,_.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(L){L.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn,8),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(_e.rH,8),s.Y36(_e.yS,8),s.Y36(_e.F0,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-item",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,_e.rH,5),s.Suo($,_e.yS,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfRouterLink=ue),s.iGM(ue=s.CRH())&&(E.listOfRouterLinkWithHref=ue)}},hostVars:20,hostBindings:function(L,E){1&L&&s.NdJ("click",function(ue){return E.clickMenuItem(ue)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.nzPaddingLeft||E.inlinePaddingLeft,"px")("padding-right","rtl"===E.dir?E.nzPaddingLeft||E.inlinePaddingLeft:null,"px"),s.ekj("ant-dropdown-menu-item",E.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",E.isMenuInsideDropDown&&E.nzSelected)("ant-dropdown-menu-item-danger",E.isMenuInsideDropDown&&E.nzDanger)("ant-dropdown-menu-item-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-item",!E.isMenuInsideDropDown)("ant-menu-item-selected",!E.isMenuInsideDropDown&&E.nzSelected)("ant-menu-item-danger",!E.isMenuInsideDropDown&&E.nzDanger)("ant-menu-item-disabled",!E.isMenuInsideDropDown&&E.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelected",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDanger",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouterExact",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouter",void 0),ce})(),x=(()=>{class ce{constructor(L,E){this.cdr=L,this.directionality=E,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new s.vpe,this.subMenuMouseState=new s.vpe,this.dir="ltr",this.destroy$=new G.xQ}ngOnInit(){var L;this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(L,E){1&L&&s.NdJ("click",function(){return E.clickTitle()})("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.paddingLeft,"px")("padding-right","rtl"===E.dir?E.paddingLeft:null,"px"),s.ekj("ant-dropdown-menu-submenu-title",E.isMenuInsideDropDown)("ant-menu-submenu-title",!E.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:J,ngContentSelectors:je,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(L,E){if(1&L&&(s.F$t(),s.YNc(0,fe,1,1,"i",0),s.YNc(1,he,3,1,"ng-container",1),s.Hsn(2),s.YNc(3,ie,3,2,"span",2),s.YNc(4,Ue,1,0,"ng-template",null,3,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("ngIf",E.nzIcon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",E.nzTitle),s.xp6(2),s.Q6J("ngIf",E.isMenuInsideDropDown)("ngIfElse",$)}},directives:[$e.O5,et.Ls,Se.f,$e.RF,$e.n9,$e.ED],encapsulation:2,changeDetection:0}),ce})(),z=(()=>{class ce{constructor(L,E,$){this.elementRef=L,this.renderer=E,this.directionality=$,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$,menuClass:ue}=L;(E||$)&&this.calcMotionState(),ue&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.removeClass(this.elementRef.nativeElement,Ae)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.addClass(this.elementRef.nativeElement,Ae)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(L,E){2&L&&(s.d8E("@collapseMotion",E.expandState),s.ekj("ant-menu-rtl","rtl"===E.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[s.TTD],attrs:tt,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&s.YNc(0,ke,0,0,"ng-template",0),2&L&&s.Q6J("ngTemplateOutlet",E.templateOutlet)},directives:[$e.tP],encapsulation:2,data:{animation:[Xe.J_]},changeDetection:0}),ce})(),P=(()=>{class ce{constructor(L){this.directionality=L,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new s.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$}=L;(E||$)&&this.calcMotionState()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(L,E){1&L&&s.NdJ("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.d8E("@slideMotion",E.expandState)("@zoomBigMotion",E.expandState),s.ekj("ant-menu-light","light"===E.theme)("ant-menu-dark","dark"===E.theme)("ant-menu-submenu-placement-bottom","horizontal"===E.mode)("ant-menu-submenu-placement-right","vertical"===E.mode&&"right"===E.position)("ant-menu-submenu-placement-left","vertical"===E.mode&&"left"===E.position)("ant-menu-submenu-rtl","rtl"===E.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[s.TTD],attrs:ve,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&(s.TgZ(0,"div",0),s.YNc(1,mt,0,0,"ng-template",1),s.qZA()),2&L&&(s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-menu",!E.isMenuInsideDropDown)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown)("ant-menu-vertical",!E.isMenuInsideDropDown)("ant-dropdown-menu-sub",E.isMenuInsideDropDown)("ant-menu-sub",!E.isMenuInsideDropDown)("ant-menu-rtl","rtl"===E.dir),s.Q6J("ngClass",E.menuClass),s.xp6(1),s.Q6J("ngTemplateOutlet",E.templateOutlet))},directives:[$e.mk,$e.tP],encapsulation:2,data:{animation:[Xe.$C,Xe.mF]},changeDetection:0}),ce})();const pe=[zt.yW.rightTop,zt.yW.right,zt.yW.rightBottom,zt.yW.leftTop,zt.yW.left,zt.yW.leftBottom],j=[zt.yW.bottomLeft];let me=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.platform=ue,this.isMenuInsideDropDown=Ae,this.directionality=wt,this.noAnimation=At,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new s.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new G.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=pe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(L){this.nzSubmenuService.setOpenStateWithoutDebounce(L)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(L){this.isActive=L,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(L)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(L){const E=(0,zt.d_)(L);"rightTop"===E||"rightBottom"===E||"right"===E?this.position="right":("leftTop"===E||"leftBottom"===E||"left"===E)&&(this.position="left")}ngOnInit(){var L;this.nzMenuService.theme$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.theme=E,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.mode=E,"horizontal"===E?this.overlayPositions=j:"vertical"===E&&(this.overlayPositions=pe),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.isActive=E,E!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=E,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const L=this.listOfNzMenuItemDirective,E=L.changes,$=(0,q.T)(E,...L.map(ue=>ue.selected$));E.pipe((0,Ye.O)(L),(0,Fe.w)(()=>$),(0,Ye.O)(!0),(0,W.U)(()=>L.some(ue=>ue.nzSelected)),(0,ye.R)(this.destroy$)).subscribe(ue=>{this.isSelected=ue,this.cdr.markForCheck()})}ngOnChanges(L){const{nzOpen:E}=L;E&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn),s.Y36(ut.t4),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(Ie.P,9))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,ce,5),s.Suo($,qe,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue),s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue)}},viewQuery:function(L,E){if(1&L&&s.Gf(Je.xu,7,s.SBq),2&L){let $;s.iGM($=s.CRH())&&(E.cdkOverlayOrigin=$.first)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu-submenu",E.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-dropdown-menu-submenu-open",E.isMenuInsideDropDown&&E.nzOpen)("ant-dropdown-menu-submenu-selected",E.isMenuInsideDropDown&&E.isSelected)("ant-dropdown-menu-submenu-vertical",E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-dropdown-menu-submenu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-dropdown-menu-submenu-inline",E.isMenuInsideDropDown&&"inline"===E.mode)("ant-dropdown-menu-submenu-active",E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu",!E.isMenuInsideDropDown)("ant-menu-submenu-disabled",!E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-submenu-open",!E.isMenuInsideDropDown&&E.nzOpen)("ant-menu-submenu-selected",!E.isMenuInsideDropDown&&E.isSelected)("ant-menu-submenu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-menu-submenu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-menu-submenu-inline",!E.isMenuInsideDropDown&&"inline"===E.mode)("ant-menu-submenu-active",!E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu-rtl","rtl"===E.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[s._Bn([Mn]),s.TTD],attrs:Qe,ngContentSelectors:Zt,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(L,E){if(1&L&&(s.F$t(Et),s.TgZ(0,"div",0,1),s.NdJ("subMenuMouseState",function(ue){return E.setMouseEnterState(ue)})("toggleSubMenu",function(){return E.toggleSubMenu()}),s.YNc(2,dt,1,0,"ng-content",2),s.qZA(),s.YNc(3,_t,1,6,"div",3),s.YNc(4,St,1,5,"ng-template",null,4,s.W1O),s.YNc(6,ot,1,0,"ng-template",null,5,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("nzIcon",E.nzIcon)("nzTitle",E.nzTitle)("mode",E.mode)("nzDisabled",E.nzDisabled)("isMenuInsideDropDown",E.isMenuInsideDropDown)("paddingLeft",E.nzPaddingLeft||E.inlinePaddingLeft),s.xp6(2),s.Q6J("ngIf",!E.nzTitle),s.xp6(1),s.Q6J("ngIf","inline"===E.mode)("ngIfElse",$)}},directives:[x,z,P,Je.xu,$e.O5,Ie.P,Je.pI],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzOpen",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),ce})();function He(ce,Ne){return ce||Ne}function Ge(ce){return ce||!1}let Le=(()=>{class ce{constructor(L,E,$,ue){this.nzMenuService=L,this.isMenuInsideDropDown=E,this.cdr=$,this.directionality=ue,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new s.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new oe.X(this.nzInlineCollapsed),this.mode$=new oe.X(this.nzMode),this.destroy$=new G.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(L){this.nzInlineCollapsed=L,this.inlineCollapsed$.next(L)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(L=>L.nzOpen),this.listOfNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var L;(0,_.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.actualMode=E?"vertical":$,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.nzClick.emit(E),this.nzSelectable&&!E.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach($=>$.setSelectedState($===E))}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,ye.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(L){const{nzInlineCollapsed:E,nzInlineIndent:$,nzTheme:ue,nzMode:Ae}=L;E&&this.inlineCollapsed$.next(this.nzInlineCollapsed),$&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ue&&this.nzMenuService.setTheme(this.nzTheme),Ae&&(this.mode$.next(this.nzMode),!L.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(wt=>wt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(Dt),s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,qe,5),s.Suo($,me,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue),s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-dropdown-menu-root",E.isMenuInsideDropDown)("ant-dropdown-menu-light",E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-dropdown-menu-dark",E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-dropdown-menu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-dropdown-menu-inline",E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-dropdown-menu-inline-collapsed",E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu",!E.isMenuInsideDropDown)("ant-menu-root",!E.isMenuInsideDropDown)("ant-menu-light",!E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-menu-dark",!E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-menu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-menu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-menu-inline",!E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-menu-inline-collapsed",!E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu-rtl","rtl"===E.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[s._Bn([{provide:Sn,useClass:cn},{provide:cn,useFactory:He,deps:[[new s.tp0,new s.FiY,cn],Sn]},{provide:Dt,useFactory:Ge,deps:[[new s.tp0,new s.FiY,Dt]]}]),s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzInlineCollapsed",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelectable",void 0),ce})(),Be=(()=>{class ce{constructor(L,E){this.elementRef=L,this.renderer=E,this.renderer.addClass(L.nativeElement,"ant-dropdown-menu-item-divider")}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),ce})(),nt=(()=>{class ce{}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275mod=s.oAB({type:ce}),ce.\u0275inj=s.cJS({imports:[[vt.vT,$e.ez,ut.ud,Je.U8,et.PV,Ie.g,Se.T]]}),ce})()},9727:(yt,be,p)=>{p.d(be,{Ay:()=>Xe,Gm:()=>Se,XJ:()=>et,gR:()=>Ue,dD:()=>ie});var a=p(7429),s=p(5e3),G=p(8929),oe=p(2198),q=p(2986),_=p(7625),W=p(9439),I=p(1721),R=p(8076),H=p(9808),B=p(647),ee=p(969),ye=p(4090),Ye=p(2845),Fe=p(226);function ze(je,tt){1&je&&s._UZ(0,"i",10)}function _e(je,tt){1&je&&s._UZ(0,"i",11)}function vt(je,tt){1&je&&s._UZ(0,"i",12)}function Je(je,tt){1&je&&s._UZ(0,"i",13)}function zt(je,tt){1&je&&s._UZ(0,"i",14)}function ut(je,tt){if(1&je&&(s.ynx(0),s._UZ(1,"span",15),s.BQk()),2&je){const ke=s.oxw();s.xp6(1),s.Q6J("innerHTML",ke.instance.content,s.oJD)}}function Ie(je,tt){if(1&je){const ke=s.EpF();s.TgZ(0,"nz-message",2),s.NdJ("destroyed",function(mt){return s.CHM(ke),s.oxw().remove(mt.id,mt.userAction)}),s.qZA()}2&je&&s.Q6J("instance",tt.$implicit)}let $e=0;class et{constructor(tt,ke,ve){this.nzSingletonService=tt,this.overlay=ke,this.injector=ve}remove(tt){this.container&&(tt?this.container.remove(tt):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${$e++}`}withContainer(tt){let ke=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(ke)return ke;const ve=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),mt=new a.C5(tt,null,this.injector),Qe=ve.attach(mt);return ve.overlayElement.style.zIndex="1010",ke||(this.container=ke=Qe.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,ke)),ke}}let Se=(()=>{class je{constructor(ke,ve){this.cdr=ke,this.nzConfigService=ve,this.instances=[],this.destroy$=new G.xQ,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(ke){const ve=this.onCreate(ke);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ve],this.readyInstances(),ve}remove(ke,ve=!1){this.instances.some((mt,Qe)=>mt.messageId===ke&&(this.instances.splice(Qe,1),this.instances=[...this.instances],this.onRemove(mt,ve),this.readyInstances(),!0))}removeAll(){this.instances.forEach(ke=>this.onRemove(ke,!1)),this.instances=[],this.readyInstances()}onCreate(ke){return ke.options=this.mergeOptions(ke.options),ke.onClose=new G.xQ,ke}onRemove(ke,ve){ke.onClose.next(ve),ke.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(ke){const{nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe}=this.config;return Object.assign({nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe},ke)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275dir=s.lG2({type:je}),je})(),Xe=(()=>{class je{constructor(ke){this.cdr=ke,this.destroyed=new s.vpe,this.animationStateChanged=new G.xQ,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe((0,oe.h)(ke=>"done"===ke.phaseName&&"leave"===ke.toState),(0,q.q)(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(ke=!1){this.userAction=ke,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:ke})},200)):this.destroyed.next({id:this.instance.messageId,userAction:ke})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){null!==this.eraseTimer&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275dir=s.lG2({type:je}),je})(),J=(()=>{class je extends Xe{constructor(ke){super(ke),this.destroyed=new s.vpe}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[s.qOj],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.NdJ("@moveUpMotion.done",function(Qe){return ve.animationStateChanged.next(Qe)})("mouseenter",function(){return ve.onEnter()})("mouseleave",function(){return ve.onLeave()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.ynx(3,3),s.YNc(4,ze,1,0,"i",4),s.YNc(5,_e,1,0,"i",5),s.YNc(6,vt,1,0,"i",6),s.YNc(7,Je,1,0,"i",7),s.YNc(8,zt,1,0,"i",8),s.BQk(),s.YNc(9,ut,2,1,"ng-container",9),s.qZA(),s.qZA(),s.qZA()),2&ke&&(s.Q6J("@moveUpMotion",ve.instance.state),s.xp6(2),s.Q6J("ngClass","ant-message-"+ve.instance.type),s.xp6(1),s.Q6J("ngSwitch",ve.instance.type),s.xp6(1),s.Q6J("ngSwitchCase","success"),s.xp6(1),s.Q6J("ngSwitchCase","info"),s.xp6(1),s.Q6J("ngSwitchCase","warning"),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","loading"),s.xp6(1),s.Q6J("nzStringTemplateOutlet",ve.instance.content))},directives:[H.mk,H.RF,H.n9,B.Ls,ee.f],encapsulation:2,data:{animation:[R.YK]},changeDetection:0}),je})();const fe="message",he={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let te=(()=>{class je extends Se{constructor(ke,ve){super(ke,ve),this.dir="ltr";const mt=this.nzConfigService.getConfigForComponent(fe);this.dir=(null==mt?void 0:mt.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(fe).pipe((0,_.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const ke=this.nzConfigService.getConfigForComponent(fe);if(ke){const{nzDirection:ve}=ke;this.dir=ve||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},he),this.config),this.nzConfigService.getConfigForComponent(fe)),this.top=(0,I.WX)(this.config.nzTop),this.cdr.markForCheck()}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[s.qOj],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.YNc(1,Ie,1,1,"nz-message",1),s.qZA()),2&ke&&(s.Udp("top",ve.top),s.ekj("ant-message-rtl","rtl"===ve.dir),s.xp6(1),s.Q6J("ngForOf",ve.instances))},directives:[J,H.sg],encapsulation:2,changeDetection:0}),je})(),le=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({}),je})(),ie=(()=>{class je extends et{constructor(ke,ve,mt){super(ke,ve,mt),this.componentPrefix="message-"}success(ke,ve){return this.createInstance({type:"success",content:ke},ve)}error(ke,ve){return this.createInstance({type:"error",content:ke},ve)}info(ke,ve){return this.createInstance({type:"info",content:ke},ve)}warning(ke,ve){return this.createInstance({type:"warning",content:ke},ve)}loading(ke,ve){return this.createInstance({type:"loading",content:ke},ve)}create(ke,ve,mt){return this.createInstance({type:ke,content:ve},mt)}createInstance(ke,ve){return this.container=this.withContainer(te),this.container.create(Object.assign(Object.assign({},ke),{createdAt:new Date,messageId:this.getInstanceId(),options:ve}))}}return je.\u0275fac=function(ke){return new(ke||je)(s.LFG(ye.KV),s.LFG(Ye.aV),s.LFG(s.zs3))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac,providedIn:le}),je})(),Ue=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({imports:[[Fe.vT,H.ez,Ye.U8,B.PV,ee.T,le]]}),je})()},5278:(yt,be,p)=>{p.d(be,{L8:()=>je,zb:()=>ke});var a=p(5e3),s=p(8076),G=p(9727),oe=p(9808),q=p(647),_=p(969),W=p(226),I=p(2845),R=p(8929),H=p(7625),B=p(1721),ee=p(9439),ye=p(4090);function Ye(ve,mt){1&ve&&a._UZ(0,"i",16)}function Fe(ve,mt){1&ve&&a._UZ(0,"i",17)}function ze(ve,mt){1&ve&&a._UZ(0,"i",18)}function _e(ve,mt){1&ve&&a._UZ(0,"i",19)}const vt=function(ve){return{"ant-notification-notice-with-icon":ve}};function Je(ve,mt){if(1&ve&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a.TgZ(2,"div"),a.ynx(3,9),a.YNc(4,Ye,1,0,"i",10),a.YNc(5,Fe,1,0,"i",11),a.YNc(6,ze,1,0,"i",12),a.YNc(7,_e,1,0,"i",13),a.BQk(),a._UZ(8,"div",14),a._UZ(9,"div",15),a.qZA(),a.qZA(),a.qZA()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("ngClass",a.VKq(10,vt,"blank"!==Qe.instance.type)),a.xp6(1),a.ekj("ant-notification-notice-with-icon","blank"!==Qe.instance.type),a.xp6(1),a.Q6J("ngSwitch",Qe.instance.type),a.xp6(1),a.Q6J("ngSwitchCase","success"),a.xp6(1),a.Q6J("ngSwitchCase","info"),a.xp6(1),a.Q6J("ngSwitchCase","warning"),a.xp6(1),a.Q6J("ngSwitchCase","error"),a.xp6(1),a.Q6J("innerHTML",Qe.instance.title,a.oJD),a.xp6(1),a.Q6J("innerHTML",Qe.instance.content,a.oJD)}}function zt(ve,mt){}function ut(ve,mt){if(1&ve&&(a.ynx(0),a._UZ(1,"i",21),a.BQk()),2&ve){const Qe=mt.$implicit;a.xp6(1),a.Q6J("nzType",Qe)}}function Ie(ve,mt){if(1&ve&&(a.ynx(0),a.YNc(1,ut,2,1,"ng-container",20),a.BQk()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",null==Qe.instance.options?null:Qe.instance.options.nzCloseIcon)}}function $e(ve,mt){1&ve&&a._UZ(0,"i",22)}const et=function(ve,mt){return{$implicit:ve,data:mt}};function Se(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function Xe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function J(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function fe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}let he=(()=>{class ve extends G.Ay{constructor(Qe){super(Qe),this.destroyed=new a.vpe}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(Qe){this.instance.onClick.next(Qe)}close(){this.destroy(!0)}get state(){return"enter"===this.instance.state?"topLeft"===this.placement||"bottomLeft"===this.placement?"enterLeft":"enterRight":this.instance.state}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification"]],inputs:{instance:"instance",index:"index",placement:"placement"},outputs:{destroyed:"destroyed"},exportAs:["nzNotification"],features:[a.qOj],decls:8,vars:12,consts:[[1,"ant-notification-notice","ant-notification-notice-closable",3,"ngStyle","ngClass","click","mouseenter","mouseleave"],["class","ant-notification-notice-content",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",1,"ant-notification-notice-close",3,"click"],[1,"ant-notification-notice-close-x"],[4,"ngIf","ngIfElse"],["iconTpl",""],[1,"ant-notification-notice-content"],[1,"ant-notification-notice-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle","class","ant-notification-notice-icon ant-notification-notice-icon-success",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle","class","ant-notification-notice-icon ant-notification-notice-icon-info",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle","class","ant-notification-notice-icon ant-notification-notice-icon-warning",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle","class","ant-notification-notice-icon ant-notification-notice-icon-error",4,"ngSwitchCase"],[1,"ant-notification-notice-message",3,"innerHTML"],[1,"ant-notification-notice-description",3,"innerHTML"],["nz-icon","","nzType","check-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-success"],["nz-icon","","nzType","info-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-info"],["nz-icon","","nzType","exclamation-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-warning"],["nz-icon","","nzType","close-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-error"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","close",1,"ant-notification-close-icon"]],template:function(Qe,dt){if(1&Qe&&(a.TgZ(0,"div",0),a.NdJ("@notificationMotion.done",function(it){return dt.animationStateChanged.next(it)})("click",function(it){return dt.onClick(it)})("mouseenter",function(){return dt.onEnter()})("mouseleave",function(){return dt.onLeave()}),a.YNc(1,Je,10,12,"div",1),a.YNc(2,zt,0,0,"ng-template",2),a.TgZ(3,"a",3),a.NdJ("click",function(){return dt.close()}),a.TgZ(4,"span",4),a.YNc(5,Ie,2,1,"ng-container",5),a.YNc(6,$e,1,0,"ng-template",null,6,a.W1O),a.qZA(),a.qZA(),a.qZA()),2&Qe){const _t=a.MAs(7);a.Q6J("ngStyle",(null==dt.instance.options?null:dt.instance.options.nzStyle)||null)("ngClass",(null==dt.instance.options?null:dt.instance.options.nzClass)||"")("@notificationMotion",dt.state),a.xp6(1),a.Q6J("ngIf",!dt.instance.template),a.xp6(1),a.Q6J("ngIf",dt.instance.template)("ngTemplateOutlet",dt.instance.template)("ngTemplateOutletContext",a.WLB(9,et,dt,null==dt.instance.options?null:dt.instance.options.nzData)),a.xp6(3),a.Q6J("ngIf",null==dt.instance.options?null:dt.instance.options.nzCloseIcon)("ngIfElse",_t)}},directives:[oe.PC,oe.mk,oe.O5,oe.RF,oe.n9,q.Ls,oe.tP,_.f],encapsulation:2,data:{animation:[s.LU]}}),ve})();const te="notification",le={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"};let ie=(()=>{class ve extends G.Gm{constructor(Qe,dt){super(Qe,dt),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[];const _t=this.nzConfigService.getConfigForComponent(te);this.dir=(null==_t?void 0:_t.nzDirection)||"ltr"}create(Qe){const dt=this.onCreate(Qe),_t=dt.options.nzKey,it=this.instances.find(St=>St.options.nzKey===Qe.options.nzKey);return _t&&it?this.replaceNotification(it,dt):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,dt]),this.readyInstances(),dt}onCreate(Qe){return Qe.options=this.mergeOptions(Qe.options),Qe.onClose=new R.xQ,Qe.onClick=new R.xQ,Qe}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(te).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const Qe=this.nzConfigService.getConfigForComponent(te);if(Qe){const{nzDirection:dt}=Qe;this.dir=dt||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},le),this.config),this.nzConfigService.getConfigForComponent(te)),this.top=(0,B.WX)(this.config.nzTop),this.bottom=(0,B.WX)(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(Qe,dt){Qe.title=dt.title,Qe.content=dt.content,Qe.template=dt.template,Qe.type=dt.type,Qe.options=dt.options}readyInstances(){this.topLeftInstances=this.instances.filter(Qe=>"topLeft"===Qe.options.nzPlacement),this.topRightInstances=this.instances.filter(Qe=>"topRight"===Qe.options.nzPlacement||!Qe.options.nzPlacement),this.bottomLeftInstances=this.instances.filter(Qe=>"bottomLeft"===Qe.options.nzPlacement),this.bottomRightInstances=this.instances.filter(Qe=>"bottomRight"===Qe.options.nzPlacement),this.cdr.detectChanges()}mergeOptions(Qe){const{nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St}=this.config;return Object.assign({nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St},Qe)}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO),a.Y36(ee.jY))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification-container"]],exportAs:["nzNotificationContainer"],features:[a.qOj],decls:8,vars:28,consts:[[1,"ant-notification","ant-notification-topLeft"],[3,"instance","placement","destroyed",4,"ngFor","ngForOf"],[1,"ant-notification","ant-notification-topRight"],[1,"ant-notification","ant-notification-bottomLeft"],[1,"ant-notification","ant-notification-bottomRight"],[3,"instance","placement","destroyed"]],template:function(Qe,dt){1&Qe&&(a.TgZ(0,"div",0),a.YNc(1,Se,1,2,"nz-notification",1),a.qZA(),a.TgZ(2,"div",2),a.YNc(3,Xe,1,2,"nz-notification",1),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,J,1,2,"nz-notification",1),a.qZA(),a.TgZ(6,"div",4),a.YNc(7,fe,1,2,"nz-notification",1),a.qZA()),2&Qe&&(a.Udp("top",dt.top)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topLeftInstances),a.xp6(1),a.Udp("top",dt.top)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topRightInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomLeftInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomRightInstances))},directives:[he,oe.sg],encapsulation:2,changeDetection:0}),ve})(),Ue=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({}),ve})(),je=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[W.vT,oe.ez,I.U8,q.PV,_.T,Ue]]}),ve})(),tt=0,ke=(()=>{class ve extends G.XJ{constructor(Qe,dt,_t){super(Qe,dt,_t),this.componentPrefix="notification-"}success(Qe,dt,_t){return this.createInstance({type:"success",title:Qe,content:dt},_t)}error(Qe,dt,_t){return this.createInstance({type:"error",title:Qe,content:dt},_t)}info(Qe,dt,_t){return this.createInstance({type:"info",title:Qe,content:dt},_t)}warning(Qe,dt,_t){return this.createInstance({type:"warning",title:Qe,content:dt},_t)}blank(Qe,dt,_t){return this.createInstance({type:"blank",title:Qe,content:dt},_t)}create(Qe,dt,_t,it){return this.createInstance({type:Qe,title:dt,content:_t},it)}template(Qe,dt){return this.createInstance({template:Qe},dt)}generateMessageId(){return`${this.componentPrefix}-${tt++}`}createInstance(Qe,dt){return this.container=this.withContainer(ie),this.container.create(Object.assign(Object.assign({},Qe),{createdAt:new Date,messageId:this.generateMessageId(),options:dt}))}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.LFG(ye.KV),a.LFG(I.aV),a.LFG(a.zs3))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac,providedIn:Ue}),ve})()},7525:(yt,be,p)=>{p.d(be,{W:()=>J,j:()=>fe});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(5647),_=p(8723),W=p(1177);class R{constructor(te){this.durationSelector=te}call(te,le){return le.subscribe(new H(te,this.durationSelector))}}class H extends W.Ds{constructor(te,le){super(te),this.durationSelector=le,this.hasValue=!1}_next(te){try{const le=this.durationSelector.call(this,te);le&&this._tryNext(te,le)}catch(le){this.destination.error(le)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(te,le){let ie=this.durationSubscription;this.value=te,this.hasValue=!0,ie&&(ie.unsubscribe(),this.remove(ie)),ie=(0,W.ft)(le,new W.IY(this)),ie&&!ie.closed&&this.add(this.durationSubscription=ie)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const te=this.value,le=this.durationSubscription;le&&(this.durationSubscription=void 0,le.unsubscribe(),this.remove(le)),this.value=void 0,this.hasValue=!1,super._next(te)}}}var B=p(1059),ee=p(5778),ye=p(7545),Ye=p(7625),Fe=p(9439),ze=p(1721),_e=p(226),vt=p(9808),Je=p(7144);function zt(he,te){1&he&&(s.TgZ(0,"span",3),s._UZ(1,"i",4),s._UZ(2,"i",4),s._UZ(3,"i",4),s._UZ(4,"i",4),s.qZA())}function ut(he,te){}function Ie(he,te){if(1&he&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&he){const le=s.oxw(2);s.xp6(1),s.Oqu(le.nzTip)}}function $e(he,te){if(1&he&&(s.TgZ(0,"div"),s.TgZ(1,"div",5),s.YNc(2,ut,0,0,"ng-template",6),s.YNc(3,Ie,2,1,"div",7),s.qZA(),s.qZA()),2&he){const le=s.oxw(),ie=s.MAs(1);s.xp6(1),s.ekj("ant-spin-rtl","rtl"===le.dir)("ant-spin-spinning",le.isLoading)("ant-spin-lg","large"===le.nzSize)("ant-spin-sm","small"===le.nzSize)("ant-spin-show-text",le.nzTip),s.xp6(1),s.Q6J("ngTemplateOutlet",le.nzIndicator||ie),s.xp6(1),s.Q6J("ngIf",le.nzTip)}}function et(he,te){if(1&he&&(s.TgZ(0,"div",9),s.Hsn(1),s.qZA()),2&he){const le=s.oxw();s.ekj("ant-spin-blur",le.isLoading)}}const Se=["*"];let J=(()=>{class he{constructor(le,ie,Ue){this.nzConfigService=le,this.cdr=ie,this.directionality=Ue,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new G.xQ,this.spinning$=new oe.X(this.nzSpinning),this.delay$=new q.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var le;this.delay$.pipe((0,B.O)(this.nzDelay),(0,ee.x)(),(0,ye.w)(Ue=>0===Ue?this.spinning$:this.spinning$.pipe(function I(he){return te=>te.lift(new R(he))}(je=>(0,_.H)(je?Ue:0)))),(0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.isLoading=Ue,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,Ye.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(le=this.directionality.change)||void 0===le||le.pipe((0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(le){const{nzSpinning:ie,nzDelay:Ue}=le;ie&&this.spinning$.next(this.nzSpinning),Ue&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return he.\u0275fac=function(le){return new(le||he)(s.Y36(Fe.jY),s.Y36(s.sBO),s.Y36(_e.Is,8))},he.\u0275cmp=s.Xpm({type:he,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(le,ie){2&le&&s.ekj("ant-spin-nested-loading",!ie.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[s.TTD],ngContentSelectors:Se,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(le,ie){1&le&&(s.F$t(),s.YNc(0,zt,5,0,"ng-template",null,0,s.W1O),s.YNc(2,$e,4,12,"div",1),s.YNc(3,et,2,2,"div",2)),2&le&&(s.xp6(2),s.Q6J("ngIf",ie.isLoading),s.xp6(1),s.Q6J("ngIf",!ie.nzSimple))},directives:[vt.O5,vt.tP],encapsulation:2}),(0,a.gn)([(0,Fe.oS)()],he.prototype,"nzIndicator",void 0),(0,a.gn)([(0,ze.Rn)()],he.prototype,"nzDelay",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSimple",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSpinning",void 0),he})(),fe=(()=>{class he{}return he.\u0275fac=function(le){return new(le||he)},he.\u0275mod=s.oAB({type:he}),he.\u0275inj=s.cJS({imports:[[_e.vT,vt.ez,Je.Q8]]}),he})()},404:(yt,be,p)=>{p.d(be,{cg:()=>et,SY:()=>Ie});var a=p(655),s=p(5e3),G=p(8076),oe=p(8693),q=p(1721),_=p(8929),W=p(5778),I=p(7625),R=p(6950),H=p(4832),B=p(9439),ee=p(226),ye=p(2845),Ye=p(9808),Fe=p(969);const ze=["overlay"];function _e(Se,Xe){if(1&Se&&(s.ynx(0),s._uU(1),s.BQk()),2&Se){const J=s.oxw(2);s.xp6(1),s.Oqu(J.nzTitle)}}function vt(Se,Xe){if(1&Se&&(s.TgZ(0,"div",2),s.TgZ(1,"div",3),s.TgZ(2,"div",4),s._UZ(3,"span",5),s.qZA(),s.TgZ(4,"div",6),s.YNc(5,_e,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA()),2&Se){const J=s.oxw();s.ekj("ant-tooltip-rtl","rtl"===J.dir),s.Q6J("ngClass",J._classMap)("ngStyle",J.nzOverlayStyle)("@.disabled",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("nzNoAnimation",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),s.xp6(3),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("nzStringTemplateOutlet",J.nzTitle)("nzStringTemplateOutletContext",J.nzTitleContext)}}let Je=(()=>{class Se{constructor(J,fe,he,te,le,ie){this.elementRef=J,this.hostView=fe,this.resolver=he,this.renderer=te,this.noAnimation=le,this.nzConfigService=ie,this.visibleChange=new s.vpe,this.internalVisible=!1,this.destroy$=new _.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const J=this.placement;return Array.isArray(J)&&J.length>0?J:"string"==typeof J&&J?[J]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(J){const{trigger:fe}=J;fe&&!fe.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(J)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var J;null===(J=this.component)||void 0===J||J.show()}hide(){var J;null===(J=this.component)||void 0===J||J.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const J=this.componentRef;this.component=J.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),J.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,W.x)(),(0,I.R)(this.destroy$)).subscribe(fe=>{this.internalVisible=fe,this.visibleChange.emit(fe)})}registerTriggers(){const J=this.elementRef.nativeElement,fe=this.trigger;if(this.removeTriggerListeners(),"hover"===fe){let he;this.triggerDisposables.push(this.renderer.listen(J,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(J,"mouseleave",()=>{var te;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(te=this.component)||void 0===te?void 0:te.overlay.overlayRef)&&!he&&(he=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(he,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(he,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===fe?(this.triggerDisposables.push(this.renderer.listen(J,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(J,"focusout",()=>this.hide()))):"click"===fe&&this.triggerDisposables.push(this.renderer.listen(J,"click",he=>{he.preventDefault(),this.show()}))}updatePropertiesByChanges(J){this.updatePropertiesByKeys(Object.keys(J))}updatePropertiesByKeys(J){var fe;const he=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(J||Object.keys(he).filter(te=>!te.startsWith("directive"))).forEach(te=>{if(he[te]){const[le,ie]=he[te];this.updateComponentValue(le,ie())}}),null===(fe=this.component)||void 0===fe||fe.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(J,fe){void 0!==fe&&(this.component[J]=fe)}delayEnterLeave(J,fe,he=-1){this.delayTimer?this.clearTogglingTimer():he>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,fe?this.show():this.hide()},1e3*he):fe&&J?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(J=>J()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P),s.Y36(B.jY))},Se.\u0275dir=s.lG2({type:Se,features:[s.TTD]}),Se})(),zt=(()=>{class Se{constructor(J,fe,he){this.cdr=J,this.directionality=fe,this.noAnimation=he,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new _.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...R.Ek],this.destroy$=new _.xQ}set nzVisible(J){const fe=(0,q.sw)(J);this._visible!==fe&&(this._visible=fe,this.nzVisibleChange.next(fe))}get nzVisible(){return this._visible}set nzTrigger(J){this._trigger=J}get nzTrigger(){return this._trigger}set nzPlacement(J){const fe=J.map(he=>R.yW[he]);this._positions=[...fe,...R.Ek]}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,I.R)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(J){this.preferredPlacement=(0,R.d_)(J),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(J){this.origin=J,this.cdr.markForCheck()}onClickOutside(J){!this.origin.nativeElement.contains(J.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P))},Se.\u0275dir=s.lG2({type:Se,viewQuery:function(J,fe){if(1&J&&s.Gf(ze,5),2&J){let he;s.iGM(he=s.CRH())&&(fe.overlay=he.first)}}}),Se})(),Ie=(()=>{class Se extends Je{constructor(J,fe,he,te,le){super(J,fe,he,te,le),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new s.vpe,this.componentRef=this.hostView.createComponent($e)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P,9))},Se.\u0275dir=s.lG2({type:Se,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(J,fe){2&J&&s.ekj("ant-tooltip-open",fe.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[s.qOj]}),(0,a.gn)([(0,q.yF)()],Se.prototype,"arrowPointAtCenter",void 0),Se})(),$e=(()=>{class Se extends zt{constructor(J,fe,he){super(J,fe,he),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return function ut(Se){return!(Se instanceof s.Rgc||""!==Se&&(0,q.DX)(Se))}(this.nzTitle)}updateStyles(){const J=this.nzColor&&(0,oe.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:J},this._contentStyleMap={backgroundColor:this.nzColor&&!J?this.nzColor:null}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P,9))},Se.\u0275cmp=s.Xpm({type:Se,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[s.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(J,fe){1&J&&(s.YNc(0,vt,6,11,"ng-template",0,1,s.W1O),s.NdJ("overlayOutsideClick",function(te){return fe.onClickOutside(te)})("detach",function(){return fe.hide()})("positionChange",function(te){return fe.onPositionChange(te)})),2&J&&s.Q6J("cdkConnectedOverlayOrigin",fe.origin)("cdkConnectedOverlayOpen",fe._visible)("cdkConnectedOverlayPositions",fe._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",fe.nzArrowPointAtCenter)},directives:[ye.pI,R.hQ,Ye.mk,Ye.PC,H.P,Fe.f],encapsulation:2,data:{animation:[G.$C]},changeDetection:0}),Se})(),et=(()=>{class Se{}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275mod=s.oAB({type:Se}),Se.\u0275inj=s.cJS({imports:[[ee.vT,Ye.ez,ye.U8,Fe.T,R.e4,H.g]]}),Se})()}},yt=>{yt(yt.s=434)}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/main.6da8ea192405b948.js b/src/blrec/data/webapp/main.6da8ea192405b948.js new file mode 100644 index 0000000..a1ac36b --- /dev/null +++ b/src/blrec/data/webapp/main.6da8ea192405b948.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[179],{4704:(yt,be,p)=>{p.d(be,{g:()=>a});var a=(()=>{return(s=a||(a={})).KEEP_POSITION="KEEP_POSITION",s.GO_TO_TOP="GO_TO_TOP",a;var s})()},2323:(yt,be,p)=>{p.d(be,{V:()=>s});var a=p(5e3);let s=(()=>{class G{constructor(){this.impl=localStorage}hasData(q){return null!==this.getData(q)}getData(q){return this.impl.getItem(q)}setData(q,_){this.impl.setItem(q,_)}removeData(q){this.impl.removeItem(q)}clearData(){this.impl.clear()}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})()},2340:(yt,be,p)=>{p.d(be,{N:()=>s});const s={production:!0,apiUrl:"",webSocketUrl:"",ngxLoggerLevel:p(2306)._z.DEBUG,traceRouterScrolling:!1}},434:(yt,be,p)=>{var a=p(2313),s=p(5e3),G=p(4182),oe=p(520),q=p(5113),_=p(6360),W=p(9808);const I=void 0,H=["zh",[["\u4e0a\u5348","\u4e0b\u5348"],I,I],I,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"]],I,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]],I,[["\u516c\u5143\u524d","\u516c\u5143"],I,I],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",I,"y\u5e74M\u6708d\u65e5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",I,I,I],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"CNY","\xa5","\u4eba\u6c11\u5e01",{AUD:["AU$","$"],CNY:["\xa5"],ILR:["ILS"],JPY:["JP\xa5","\xa5"],KRW:["\uffe6","\u20a9"],PHP:[I,"\u20b1"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function R(Te){return 5}];var B=p(8514),ee=p(1737),ye=p(3753),Ye=p(1086),Fe=p(1961),ze=p(8929),_e=p(6498),vt=p(7876);const Je=new _e.y(vt.Z);var ut=p(6787),Ie=p(4850),$e=p(2198),et=p(7545),Se=p(2536),J=p(2986),fe=p(2994),he=p(8583);const te="Service workers are disabled or not supported by this browser";class ie{constructor(Ze){if(this.serviceWorker=Ze,Ze){const rt=(0,ye.R)(Ze,"controllerchange").pipe((0,Ie.U)(()=>Ze.controller)),Wt=(0,B.P)(()=>(0,Ye.of)(Ze.controller)),on=(0,Fe.z)(Wt,rt);this.worker=on.pipe((0,$e.h)(Rn=>!!Rn)),this.registration=this.worker.pipe((0,et.w)(()=>Ze.getRegistration()));const Nn=(0,ye.R)(Ze,"message").pipe((0,Ie.U)(Rn=>Rn.data)).pipe((0,$e.h)(Rn=>Rn&&Rn.type)).pipe(function Xe(Te){return Te?(0,Se.O)(()=>new ze.xQ,Te):(0,Se.O)(new ze.xQ)}());Nn.connect(),this.events=Nn}else this.worker=this.events=this.registration=function le(Te){return(0,B.P)(()=>(0,ee._)(new Error(Te)))}(te)}postMessage(Ze,De){return this.worker.pipe((0,J.q)(1),(0,fe.b)(rt=>{rt.postMessage(Object.assign({action:Ze},De))})).toPromise().then(()=>{})}postMessageWithOperation(Ze,De,rt){const Wt=this.waitForOperationCompleted(rt),on=this.postMessage(Ze,De);return Promise.all([on,Wt]).then(([,Lt])=>Lt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ze){let De;return De="string"==typeof Ze?rt=>rt.type===Ze:rt=>Ze.includes(rt.type),this.events.pipe((0,$e.h)(De))}nextEventOfType(Ze){return this.eventsOfType(Ze).pipe((0,J.q)(1))}waitForOperationCompleted(Ze){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,$e.h)(De=>De.nonce===Ze),(0,J.q)(1),(0,Ie.U)(De=>{if(void 0!==De.result)return De.result;throw new Error(De.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ue=(()=>{class Te{constructor(De){if(this.sw=De,this.subscriptionChanges=new ze.xQ,!De.isEnabled)return this.messages=Je,this.notificationClicks=Je,void(this.subscription=Je);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Ie.U)(Wt=>Wt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Ie.U)(Wt=>Wt.data)),this.pushManager=this.sw.registration.pipe((0,Ie.U)(Wt=>Wt.pushManager));const rt=this.pushManager.pipe((0,et.w)(Wt=>Wt.getSubscription()));this.subscription=(0,ut.T)(rt,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(De){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const rt={userVisibleOnly:!0};let Wt=this.decodeBase64(De.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),on=new Uint8Array(new ArrayBuffer(Wt.length));for(let Lt=0;LtLt.subscribe(rt)),(0,J.q)(1)).toPromise().then(Lt=>(this.subscriptionChanges.next(Lt),Lt))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,J.q)(1),(0,et.w)(rt=>{if(null===rt)throw new Error("Not subscribed to push notifications.");return rt.unsubscribe().then(Wt=>{if(!Wt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(te))}decodeBase64(De){return atob(De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),je=(()=>{class Te{constructor(De){if(this.sw=De,!De.isEnabled)return this.versionUpdates=Je,this.available=Je,this.activated=Je,void(this.unrecoverable=Je);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,$e.h)(rt=>"VERSION_READY"===rt.type),(0,Ie.U)(rt=>({type:"UPDATE_AVAILABLE",current:rt.currentVersion,available:rt.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:De},De)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:De},De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class tt{}const ke=new s.OlP("NGSW_REGISTER_SCRIPT");function ve(Te,Ze,De,rt){return()=>{if(!(0,W.NF)(rt)||!("serviceWorker"in navigator)||!1===De.enabled)return;let on;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof De.registrationStrategy)on=De.registrationStrategy();else{const[Un,...$n]=(De.registrationStrategy||"registerWhenStable:30000").split(":");switch(Un){case"registerImmediately":on=(0,Ye.of)(null);break;case"registerWithDelay":on=mt(+$n[0]||0);break;case"registerWhenStable":on=$n[0]?(0,ut.T)(Qe(Te),mt(+$n[0])):Qe(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${De.registrationStrategy}`)}}Te.get(s.R0b).runOutsideAngular(()=>on.pipe((0,J.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ze,{scope:De.scope}).catch(Un=>console.error("Service worker registration failed with:",Un))))}}function mt(Te){return(0,Ye.of)(null).pipe((0,he.g)(Te))}function Qe(Te){return Te.get(s.z2F).isStable.pipe((0,$e.h)(De=>De))}function dt(Te,Ze){return new ie((0,W.NF)(Ze)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Te{static register(De,rt={}){return{ngModule:Te,providers:[{provide:ke,useValue:De},{provide:tt,useValue:rt},{provide:ie,useFactory:dt,deps:[tt,s.Lbi]},{provide:s.ip1,useFactory:ve,deps:[s.zs3,ke,tt,s.Lbi],multi:!0}]}}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[Ue,je]}),Te})();var it=p(2306),St=p(4170),ot=p(7625),Et=p(655),Zt=p(4090),mn=p(1721),vn=p(4219),Ut=p(925),un=p(647),_n=p(226);const Cn=["*"],Dt=["nz-sider-trigger",""];function Sn(Te,Ze){}function cn(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Sn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzZeroTrigger||rt)}}function Mn(Te,Ze){}function qe(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Mn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(3);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzTrigger||rt)}}function x(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"right":"left")}}function z(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"left":"right")}}function P(Te,Ze){if(1&Te&&(s.YNc(0,x,1,1,"i",4),s.YNc(1,z,1,1,"i",4)),2&Te){const De=s.oxw();s.Q6J("ngIf",!De.nzReverseArrow),s.xp6(1),s.Q6J("ngIf",De.nzReverseArrow)}}function pe(Te,Ze){1&Te&&s._UZ(0,"i",6)}function j(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){s.CHM(De);const Wt=s.oxw();return Wt.setCollapsed(!Wt.nzCollapsed)}),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("matchBreakPoint",De.matchBreakPoint)("nzCollapsedWidth",De.nzCollapsedWidth)("nzCollapsed",De.nzCollapsed)("nzBreakpoint",De.nzBreakpoint)("nzReverseArrow",De.nzReverseArrow)("nzTrigger",De.nzTrigger)("nzZeroTrigger",De.nzZeroTrigger)("siderWidth",De.widthSetting)}}let me=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ge=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Le=(()=>{class Te{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(De,rt){2&De&&(s.Udp("width",rt.isNormalTrigger?rt.siderWidth:null),s.ekj("ant-layout-sider-trigger",rt.isNormalTrigger)("ant-layout-sider-zero-width-trigger",rt.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",rt.isZeroTrigger&&rt.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",rt.isZeroTrigger&&!rt.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[s.TTD],attrs:Dt,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(De,rt){1&De&&(s.YNc(0,cn,2,1,"ng-container",0),s.YNc(1,qe,2,1,"ng-container",0),s.YNc(2,P,2,2,"ng-template",null,1,s.W1O),s.YNc(4,pe,1,0,"ng-template",null,2,s.W1O)),2&De&&(s.Q6J("ngIf",rt.isZeroTrigger),s.xp6(1),s.Q6J("ngIf",rt.isNormalTrigger))},directives:[W.O5,W.tP,un.Ls],encapsulation:2,changeDetection:0}),Te})(),Me=(()=>{class Te{constructor(De,rt,Wt){this.platform=De,this.cdr=rt,this.breakpointService=Wt,this.destroy$=new ze.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new s.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,mn.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(De){De!==this.nzCollapsed&&(this.nzCollapsed=De,this.nzCollapsedChange.emit(De),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Zt.ow,!0).pipe((0,ot.R)(this.destroy$)).subscribe(De=>{const rt=this.nzBreakpoint;rt&&(0,mn.ov)().subscribe(()=>{this.matchBreakPoint=!De[rt],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(De){const{nzCollapsed:rt,nzCollapsedWidth:Wt,nzWidth:on}=De;(rt||Wt||on)&&this.updateStyleMap(),rt&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(Ut.t4),s.Y36(s.sBO),s.Y36(Zt.r3))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-sider"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,vn.wO,5),2&De){let on;s.iGM(on=s.CRH())&&(rt.nzMenuDirective=on.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(De,rt){2&De&&(s.Udp("flex",rt.flexSetting)("max-width",rt.widthSetting)("min-width",rt.widthSetting)("width",rt.widthSetting),s.ekj("ant-layout-sider-zero-width",rt.nzCollapsed&&0===rt.nzCollapsedWidth)("ant-layout-sider-light","light"===rt.nzTheme)("ant-layout-sider-dark","dark"===rt.nzTheme)("ant-layout-sider-collapsed",rt.nzCollapsed)("ant-layout-sider-has-trigger",rt.nzCollapsible&&null!==rt.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[s.TTD],ngContentSelectors:Cn,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(De,rt){1&De&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA(),s.YNc(2,j,1,8,"div",1)),2&De&&(s.xp6(2),s.Q6J("ngIf",rt.nzCollapsible&&null!==rt.nzTrigger))},directives:[Le,W.O5],encapsulation:2,changeDetection:0}),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzReverseArrow",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsible",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsed",void 0),Te})(),V=(()=>{class Te{constructor(De){this.directionality=De,this.dir="ltr",this.destroy$=new ze.xQ}ngOnInit(){var De;this.dir=this.directionality.value,null===(De=this.directionality.change)||void 0===De||De.pipe((0,ot.R)(this.destroy$)).subscribe(rt=>{this.dir=rt})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(_n.Is,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-layout"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,Me,4),2&De){let on;s.iGM(on=s.CRH())&&(rt.listOfNzSiderComponent=on)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(De,rt){2&De&&s.ekj("ant-layout-rtl","rtl"===rt.dir)("ant-layout-has-sider",rt.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Be=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,un.PV,q.xu,Ut.ud]]}),Te})();var nt=p(4147),ce=p(404);let Ae=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,Ut.ud,un.PV]]}),Te})();var wt=p(7525),At=p(9727),Qt=p(5278),gn=p(2302);let Vn=(()=>{class Te{constructor(){}ngOnInit(){}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-page-not-found"]],decls:5,vars:0,consts:[[1,"content"],["src","assets/images/bili-404.png","all","\u80a5\u80a0\u62b1\u6b49\uff0c\u4f60\u8981\u627e\u7684\u9875\u9762\u4e0d\u89c1\u4e86"],[1,"btn-wrapper"],["href","/",1,"goback-btn"]],template:function(De,rt){1&De&&(s.TgZ(0,"div",0),s._UZ(1,"img",1),s.TgZ(2,"div",2),s.TgZ(3,"a",3),s._uU(4,"\u8fd4\u56de\u9996\u9875"),s.qZA(),s.qZA(),s.qZA())},styles:[".content[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:980px}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]{display:inline-block;padding:0 20px;border-radius:4px;font-size:16px;line-height:40px;text-align:center;vertical-align:middle;color:#fff;background:#00a1d6;transition:.3s;cursor:pointer}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]:hover{background:#00b5e5}"],changeDetection:0}),Te})();const ri=[{path:"tasks",loadChildren:()=>Promise.all([p.e(146),p.e(91),p.e(183)]).then(p.bind(p,3183)).then(Te=>Te.TasksModule)},{path:"settings",loadChildren:()=>Promise.all([p.e(146),p.e(91),p.e(592),p.e(205)]).then(p.bind(p,9205)).then(Te=>Te.SettingsModule),data:{scrollBehavior:p(4704).g.KEEP_POSITION}},{path:"about",loadChildren:()=>Promise.all([p.e(146),p.e(592),p.e(103)]).then(p.bind(p,5103)).then(Te=>Te.AboutModule)},{path:"",pathMatch:"full",redirectTo:"/tasks"},{path:"**",component:Vn}];let jn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[gn.Bz.forRoot(ri,{preloadingStrategy:gn.wm})],gn.Bz]}),Te})();function qt(Te,Ze){if(1&Te&&s.GkF(0,11),2&Te){s.oxw();const De=s.MAs(3);s.Q6J("ngTemplateOutlet",De)}}function Re(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-sider",12),s.NdJ("nzCollapsedChange",function(Wt){return s.CHM(De),s.oxw().collapsed=Wt}),s.TgZ(1,"a",13),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s._UZ(4,"img",16),s.qZA(),s.TgZ(5,"h1",17),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s.TgZ(7,"nav",18),s.TgZ(8,"ul",19),s.TgZ(9,"li",20),s._UZ(10,"i",21),s.TgZ(11,"span"),s.TgZ(12,"a",22),s._uU(13,"\u4efb\u52a1"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(14,"li",20),s._UZ(15,"i",23),s.TgZ(16,"span"),s.TgZ(17,"a",24),s._uU(18,"\u8bbe\u7f6e"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(19,"li",20),s._UZ(20,"i",25),s.TgZ(21,"span"),s.TgZ(22,"a",26),s._uU(23,"\u5173\u4e8e"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzTheme",De.theme)("nzTrigger",null)("nzCollapsedWidth",57)("nzCollapsed",De.collapsed),s.xp6(2),s.ekj("collapsed",De.collapsed),s.xp6(4),s.Oqu(De.title),s.xp6(2),s.Q6J("nzTheme",De.theme)("nzInlineCollapsed",De.collapsed),s.xp6(1),s.Q6J("nzTooltipTitle",De.collapsed?"\u4efb\u52a1":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u8bbe\u7f6e":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u5173\u4e8e":"")}}function we(Te,Ze){if(1&Te&&s._UZ(0,"nz-spin",27),2&Te){const De=s.oxw();s.Q6J("nzSize","large")("nzSpinning",De.loading)}}function ae(Te,Ze){if(1&Te&&(s.ynx(0),s.TgZ(1,"nz-layout"),s.GkF(2,11),s.qZA(),s.BQk()),2&Te){s.oxw(2);const De=s.MAs(3);s.xp6(2),s.Q6J("ngTemplateOutlet",De)}}const Ve=function(){return{padding:"0",overflow:"hidden"}};function ht(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-drawer",28),s.NdJ("nzOnClose",function(){return s.CHM(De),s.oxw().collapsed=!0}),s.YNc(1,ae,3,1,"ng-container",29),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzBodyStyle",s.DdM(3,Ve))("nzClosable",!1)("nzVisible",!De.collapsed)}}let It=(()=>{class Te{constructor(De,rt,Wt){this.title="B \u7ad9\u76f4\u64ad\u5f55\u5236",this.theme="light",this.loading=!1,this.collapsed=!1,this.useDrawer=!1,this.destroyed=new ze.xQ,De.events.subscribe(on=>{on instanceof gn.OD?(this.loading=!0,this.useDrawer&&(this.collapsed=!0)):on instanceof gn.m2&&(this.loading=!1)}),Wt.observe(q.u3.XSmall).pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.useDrawer=on.matches,this.useDrawer&&(this.collapsed=!0),rt.markForCheck()}),Wt.observe("(max-width: 1036px)").pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.collapsed=on.matches,rt.markForCheck()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(gn.F0),s.Y36(s.sBO),s.Y36(q.Yg))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-root"]],decls:15,vars:4,consts:[[3,"ngTemplateOutlet",4,"ngIf"],["sider",""],[1,"app-header"],[1,"sidebar-trigger"],["nz-icon","",3,"nzType","click"],[1,"icon-actions"],["href","https://github.com/acgnhiki/blrec","title","GitHub","target","_blank",1,"external-link"],["nz-icon","","nzType","github"],[1,"main-content"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose",4,"ngIf"],[3,"ngTemplateOutlet"],["nzCollapsible","",1,"sidebar",3,"nzTheme","nzTrigger","nzCollapsedWidth","nzCollapsed","nzCollapsedChange"],["href","/","title","Home","alt","Home"],[1,"sidebar-header"],[1,"app-logo-container"],["alt","Logo","src","assets/images/logo.png",1,"app-logo"],[1,"app-title"],[1,"sidebar-menu"],["nz-menu","","nzMode","inline",3,"nzTheme","nzInlineCollapsed"],["nz-menu-item","","nzMatchRouter","true","nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipTitle"],["nz-icon","","nzType","unordered-list","nzTheme","outline"],["routerLink","/tasks"],["nz-icon","","nzType","setting","nzTheme","outline"],["routerLink","/settings"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["routerLink","/about"],[1,"spinner",3,"nzSize","nzSpinning"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose"],[4,"nzDrawerContent"]],template:function(De,rt){1&De&&(s.TgZ(0,"nz-layout"),s.YNc(1,qt,1,1,"ng-container",0),s.YNc(2,Re,24,12,"ng-template",null,1,s.W1O),s.TgZ(4,"nz-layout"),s.TgZ(5,"nz-header",2),s.TgZ(6,"div",3),s.TgZ(7,"i",4),s.NdJ("click",function(){return rt.collapsed=!rt.collapsed}),s.qZA(),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"a",6),s._UZ(10,"i",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"nz-content",8),s.YNc(12,we,1,2,"nz-spin",9),s._UZ(13,"router-outlet"),s.qZA(),s.qZA(),s.qZA(),s.YNc(14,ht,2,4,"nz-drawer",10)),2&De&&(s.xp6(1),s.Q6J("ngIf",!rt.useDrawer),s.xp6(6),s.Q6J("nzType",rt.collapsed?"menu-unfold":"menu-fold"),s.xp6(5),s.Q6J("ngIf",rt.loading),s.xp6(2),s.Q6J("ngIf",rt.useDrawer))},directives:[V,W.O5,W.tP,Me,vn.wO,vn.r9,ce.SY,un.Ls,gn.yS,Ge,me,wt.W,gn.lC,nt.Vz,nt.SQ],styles:[".spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] > nz-layout[_ngcontent-%COMP%]{height:100%;width:100%}.sidebar[_ngcontent-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;position:relative;z-index:10;min-height:100vh;border-right:1px solid #f0f0f0}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:var(--app-header-height);overflow:hidden}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%]{flex:none;width:var(--app-header-height);height:var(--app-header-height);display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:var(--app-logo-size);height:var(--app-logo-size)}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:1rem;font-weight:600;margin:0;overflow:hidden;white-space:nowrap;text-overflow:clip;opacity:1;transition-property:width,opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.645,.045,.355,1)}.sidebar[_ngcontent-%COMP%] .sidebar-header.collapsed[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{opacity:0}.sidebar[_ngcontent-%COMP%] .sidebar-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%}.app-header[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;width:100%;height:var(--app-header-height);margin:0;padding:0;z-index:2;background:#fff;box-shadow:0 1px 4px #00152914}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]{--icon-size: 20px;display:flex;align-items:center;justify-content:center;height:100%;width:var(--app-header-height);cursor:pointer;transition:all .3s,padding 0s}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]:hover{color:#1890ff}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%]{--icon-size: 24px;display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:calc((var(--app-header-height) - var(--icon-size)) / 2)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#000}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.main-content[_ngcontent-%COMP%]{overflow:hidden}"],changeDetection:0}),Te})(),jt=(()=>{class Te{constructor(De){if(De)throw new Error("You should import core module only in the root module")}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Te,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[W.ez]]}),Te})();var fn=p(9193);const Pn=[fn.LBP,fn._ry,fn.Ej7,fn.WH2];let si=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[{provide:un.sV,useValue:Pn}],imports:[[un.PV],un.PV]}),Te})();var Zn=p(2340),ii=p(7221),En=p(9973),ei=p(2323);const Ln="app-api-key";let Tt=(()=>{class Te{constructor(De){this.storage=De}hasApiKey(){return this.storage.hasData(Ln)}getApiKey(){var De;return null!==(De=this.storage.getData(Ln))&&void 0!==De?De:""}setApiKey(De){this.storage.setData(Ln,De)}removeApiKey(){this.storage.removeData(Ln)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ei.V))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const bn=[{provide:oe.TP,useClass:(()=>{class Te{constructor(De){this.auth=De}intercept(De,rt){return rt.handle(De.clone({setHeaders:{"X-API-KEY":this.auth.getApiKey()}})).pipe((0,ii.K)(Wt=>{var on;if(401===Wt.status){this.auth.hasApiKey()&&this.auth.removeApiKey();const Lt=null!==(on=window.prompt("API Key:"))&&void 0!==on?on:"";this.auth.setApiKey(Lt)}throw Wt}),(0,En.X)(3))}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Tt))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),multi:!0}];(0,W.qS)(H);let Qn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te,bootstrap:[It]}),Te.\u0275inj=s.cJS({providers:[{provide:St.u7,useValue:St.bF},bn],imports:[[a.b2,jn,G.u5,oe.JF,q.xu,_.PW,_t.register("ngsw-worker.js",{enabled:Zn.N.production,registrationStrategy:"registerWhenStable:30000"}),Be,nt.BL,vn.ip,ce.cg,Ae,wt.j,At.gR,Qt.L8,si,it.f9.forRoot({level:Zn.N.ngxLoggerLevel}),jt]]}),Te})();Zn.N.production&&(0,s.G48)(),a.q6().bootstrapModule(Qn).catch(Te=>console.error(Te))},2306:(yt,be,p)=>{p.d(be,{f9:()=>_e,Kf:()=>Xe,_z:()=>Je});var a=p(9808),s=p(5e3),G=p(520),oe=p(2198),q=p(4850),_=p(9973),W=p(5154),I=p(7221),R=p(7545),H={},B={};function ee(te){for(var le=[],ie=0,Ue=0,je=0;je>>=1,le.push(ve?0===Ue?-2147483648:-Ue:Ue),Ue=ie=0}}return le}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(te,le){H[te]=le,B[le]=te});var Fe=p(1086);class ze{}let _e=(()=>{class te{static forRoot(ie){return{ngModule:te,providers:[{provide:ze,useValue:ie||{}}]}}static forChild(){return{ngModule:te}}}return te.\u0275fac=function(ie){return new(ie||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[a.uU],imports:[[a.ez]]}),te})(),vt=(()=>{class te{constructor(ie){this.httpBackend=ie}logOnServer(ie,Ue,je){const tt=new G.aW("POST",ie,Ue,je||{});return this.httpBackend.handle(tt).pipe((0,oe.h)(ke=>ke instanceof G.Zn),(0,q.U)(ke=>ke.body))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();var Je=(()=>{return(te=Je||(Je={}))[te.TRACE=0]="TRACE",te[te.DEBUG=1]="DEBUG",te[te.INFO=2]="INFO",te[te.LOG=3]="LOG",te[te.WARN=4]="WARN",te[te.ERROR=5]="ERROR",te[te.FATAL=6]="FATAL",te[te.OFF=7]="OFF",Je;var te})();class zt{constructor(le){this.config=le,this._config=le}get level(){return this._config.level}get serverLogLevel(){return this._config.serverLogLevel}updateConfig(le){this._config=this._clone(le)}getConfig(){return this._clone(this._config)}_clone(le){const ie=new ze;return Object.keys(le).forEach(Ue=>{ie[Ue]=le[Ue]}),ie}}const ut=["purple","teal","gray","gray","red","red","red"];class Ie{static prepareMetaString(le,ie,Ue,je){return`${le} ${ie}${Ue?` [${Ue}:${je}]`:""}`}static getColor(le,ie){switch(le){case Je.TRACE:return this.getColorFromConfig(Je.TRACE,ie);case Je.DEBUG:return this.getColorFromConfig(Je.DEBUG,ie);case Je.INFO:return this.getColorFromConfig(Je.INFO,ie);case Je.LOG:return this.getColorFromConfig(Je.LOG,ie);case Je.WARN:return this.getColorFromConfig(Je.WARN,ie);case Je.ERROR:return this.getColorFromConfig(Je.ERROR,ie);case Je.FATAL:return this.getColorFromConfig(Je.FATAL,ie);default:return}}static getColorFromConfig(le,ie){return ie?ie[le]:ut[le]}static prepareMessage(le){try{"string"!=typeof le&&!(le instanceof Error)&&(le=JSON.stringify(le,null,2))}catch(ie){le='The provided "message" value could not be parsed with JSON.stringify().'}return le}static prepareAdditionalParameters(le){return null==le?null:le.map((ie,Ue)=>{try{return"object"==typeof ie&&JSON.stringify(ie),ie}catch(je){return`The additional[${Ue}] value could not be parsed using JSON.stringify().`}})}}class $e{constructor(le,ie,Ue){this.fileName=le,this.lineNumber=ie,this.columnNumber=Ue}toString(){return this.fileName+":"+this.lineNumber+":"+this.columnNumber}}let et=(()=>{class te{constructor(ie){this.httpBackend=ie,this.sourceMapCache=new Map,this.logPositionCache=new Map}static getStackLine(ie){const Ue=new Error;try{throw Ue}catch(je){try{let tt=4;return Ue.stack.split("\n")[0].includes(".js:")||(tt+=1),Ue.stack.split("\n")[tt+(ie||0)]}catch(tt){return null}}}static getPosition(ie){const Ue=ie.lastIndexOf("/");let je=ie.indexOf(")");je<0&&(je=void 0);const ke=ie.substring(Ue+1,je).split(":");return 3===ke.length?new $e(ke[0],+ke[1],+ke[2]):new $e("unknown",0,0)}static getTranspileLocation(ie){let Ue=ie.indexOf("(");Ue<0&&(Ue=ie.lastIndexOf("@"),Ue<0&&(Ue=ie.lastIndexOf(" ")));let je=ie.indexOf(")");return je<0&&(je=void 0),ie.substring(Ue+1,je)}static getMapFilePath(ie){const Ue=te.getTranspileLocation(ie),je=Ue.substring(0,Ue.lastIndexOf(":"));return je.substring(0,je.lastIndexOf(":"))+".map"}static getMapping(ie,Ue){let je=0,tt=0,ke=0;const ve=ie.mappings.split(";");for(let mt=0;mt=4&&(Qe+=it[0],je+=it[1],tt+=it[2],ke+=it[3]),mt===Ue.lineNumber){if(Qe===Ue.columnNumber)return new $e(ie.sources[je],tt,ke);if(_t+1===dt.length)return new $e(ie.sources[je],tt,0)}}}return new $e("unknown",0,0)}_getSourceMap(ie,Ue){const je=new G.aW("GET",ie),tt=Ue.toString();if(this.logPositionCache.has(tt))return this.logPositionCache.get(tt);this.sourceMapCache.has(ie)||this.sourceMapCache.set(ie,this.httpBackend.handle(je).pipe((0,oe.h)(ve=>ve instanceof G.Zn),(0,q.U)(ve=>ve.body),(0,_.X)(3),(0,W.d)(1)));const ke=this.sourceMapCache.get(ie).pipe((0,q.U)(ve=>te.getMapping(ve,Ue)),(0,I.K)(()=>(0,Fe.of)(Ue)),(0,W.d)(1));return this.logPositionCache.set(tt,ke),ke}getCallerDetails(ie,Ue){const je=te.getStackLine(Ue);return je?(0,Fe.of)([te.getPosition(je),te.getMapFilePath(je)]).pipe((0,R.w)(([tt,ke])=>ie?this._getSourceMap(ke,tt):(0,Fe.of)(tt))):(0,Fe.of)(new $e("",0,0))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();const Se=["TRACE","DEBUG","INFO","LOG","WARN","ERROR","FATAL","OFF"];let Xe=(()=>{class te{constructor(ie,Ue,je,tt,ke){this.mapperService=ie,this.httpService=Ue,this.platformId=tt,this.datePipe=ke,this._withCredentials=!1,this._isIE=(0,a.NF)(tt)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.config=new zt(je),this._logFunc=this._isIE?this._logIE.bind(this):this._logModern.bind(this)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}trace(ie,...Ue){this._log(Je.TRACE,ie,Ue)}debug(ie,...Ue){this._log(Je.DEBUG,ie,Ue)}info(ie,...Ue){this._log(Je.INFO,ie,Ue)}log(ie,...Ue){this._log(Je.LOG,ie,Ue)}warn(ie,...Ue){this._log(Je.WARN,ie,Ue)}error(ie,...Ue){this._log(Je.ERROR,ie,Ue)}fatal(ie,...Ue){this._log(Je.FATAL,ie,Ue)}setCustomHttpHeaders(ie){this._customHttpHeaders=ie}setCustomParams(ie){this._customParams=ie}setWithCredentialsOptionValue(ie){this._withCredentials=ie}registerMonitor(ie){this._loggerMonitor=ie}updateConfig(ie){this.config.updateConfig(ie)}getConfigSnapshot(){return this.config.getConfig()}_logIE(ie,Ue,je,tt){switch(tt=tt||[],ie){case Je.WARN:console.warn(`${Ue} `,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`${Ue} `,je,...tt);break;case Je.INFO:console.info(`${Ue} `,je,...tt);break;default:console.log(`${Ue} `,je,...tt)}}_logModern(ie,Ue,je,tt){const ke=this.getConfigSnapshot().colorScheme,ve=Ie.getColor(ie,ke);switch(tt=tt||[],ie){case Je.WARN:console.warn(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.INFO:console.info(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.DEBUG:console.debug(`%c${Ue}`,`color:${ve}`,je,...tt);break;default:console.log(`%c${Ue}`,`color:${ve}`,je,...tt)}}_log(ie,Ue,je=[],tt=!0){const ke=this.config.getConfig(),ve=tt&&ke.serverLoggingUrl&&ie>=ke.serverLogLevel,mt=ie>=ke.level;if(!Ue||!ve&&!mt)return;const Qe=Se[ie];Ue="function"==typeof Ue?Ue():Ue;const dt=Ie.prepareAdditionalParameters(je),_t=ke.timestampFormat?this.datePipe.transform(new Date,ke.timestampFormat):(new Date).toISOString();this.mapperService.getCallerDetails(ke.enableSourceMaps,ke.proxiedSteps).subscribe(it=>{const St={message:Ie.prepareMessage(Ue),additional:dt,level:ie,timestamp:_t,fileName:it.fileName,lineNumber:it.lineNumber.toString()};if(this._loggerMonitor&&mt&&this._loggerMonitor.onLog(St),ve){St.message=Ue instanceof Error?Ue.stack:Ue,St.message=Ie.prepareMessage(St.message);const ot=this._customHttpHeaders||new G.WM;ot.set("Content-Type","application/json");const Et={headers:ot,params:this._customParams||new G.LE,responseType:ke.httpResponseType||"json",withCredentials:this._withCredentials};this.httpService.logOnServer(ke.serverLoggingUrl,St,Et).subscribe(Zt=>{},Zt=>{this._log(Je.ERROR,`FAILED TO LOG ON SERVER: ${Ue}`,[Zt],!1)})}if(mt&&!ke.disableConsoleLogging){const ot=Ie.prepareMetaString(_t,Qe,ke.disableFileDetails?null:it.fileName,it.lineNumber.toString());return this._logFunc(ie,ot,Ue,je)}})}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(et),s.LFG(vt),s.LFG(ze),s.LFG(s.Lbi),s.LFG(a.uU))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(et),(0,s.LFG)(vt),(0,s.LFG)(ze),(0,s.LFG)(s.Lbi),(0,s.LFG)(a.uU))},token:te,providedIn:"root"}),te})()},591:(yt,be,p)=>{p.d(be,{X:()=>G});var a=p(8929),s=p(5279);class G extends a.xQ{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const _=super._subscribe(q);return _&&!_.closed&&q.next(this._value),_}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(q){super.next(this._value=q)}}},9312:(yt,be,p)=>{p.d(be,{P:()=>q});var a=p(8896),s=p(1086),G=p(1737);class q{constructor(W,I,R){this.kind=W,this.value=I,this.error=R,this.hasValue="N"===W}observe(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}}do(W,I,R){switch(this.kind){case"N":return W&&W(this.value);case"E":return I&&I(this.error);case"C":return R&&R()}}accept(W,I,R){return W&&"function"==typeof W.next?this.observe(W):this.do(W,I,R)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,G._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(W){return void 0!==W?new q("N",W):q.undefinedValueNotification}static createError(W){return new q("E",void 0,W)}static createComplete(){return q.completeNotification}}q.completeNotification=new q("C"),q.undefinedValueNotification=new q("N",void 0)},6498:(yt,be,p)=>{p.d(be,{y:()=>R});var a=p(3489),G=p(7668),oe=p(3292),_=p(3821),W=p(4843),I=p(2830);let R=(()=>{class B{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const Ye=new B;return Ye.source=this,Ye.operator=ye,Ye}subscribe(ye,Ye,Fe){const{operator:ze}=this,_e=function q(B,ee,ye){if(B){if(B instanceof a.L)return B;if(B[G.b])return B[G.b]()}return B||ee||ye?new a.L(B,ee,ye):new a.L(oe.c)}(ye,Ye,Fe);if(_e.add(ze?ze.call(_e,this.source):this.source||I.v.useDeprecatedSynchronousErrorHandling&&!_e.syncErrorThrowable?this._subscribe(_e):this._trySubscribe(_e)),I.v.useDeprecatedSynchronousErrorHandling&&_e.syncErrorThrowable&&(_e.syncErrorThrowable=!1,_e.syncErrorThrown))throw _e.syncErrorValue;return _e}_trySubscribe(ye){try{return this._subscribe(ye)}catch(Ye){I.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=Ye),function s(B){for(;B;){const{closed:ee,destination:ye,isStopped:Ye}=B;if(ee||Ye)return!1;B=ye&&ye instanceof a.L?ye:null}return!0}(ye)?ye.error(Ye):console.warn(Ye)}}forEach(ye,Ye){return new(Ye=H(Ye))((Fe,ze)=>{let _e;_e=this.subscribe(vt=>{try{ye(vt)}catch(Je){ze(Je),_e&&_e.unsubscribe()}},ze,Fe)})}_subscribe(ye){const{source:Ye}=this;return Ye&&Ye.subscribe(ye)}[_.L](){return this}pipe(...ye){return 0===ye.length?this:(0,W.U)(ye)(this)}toPromise(ye){return new(ye=H(ye))((Ye,Fe)=>{let ze;this.subscribe(_e=>ze=_e,_e=>Fe(_e),()=>Ye(ze))})}}return B.create=ee=>new B(ee),B})();function H(B){if(B||(B=I.v.Promise||Promise),!B)throw new Error("no Promise impl found");return B}},3292:(yt,be,p)=>{p.d(be,{c:()=>G});var a=p(2830),s=p(2782);const G={closed:!0,next(oe){},error(oe){if(a.v.useDeprecatedSynchronousErrorHandling)throw oe;(0,s.z)(oe)},complete(){}}},826:(yt,be,p)=>{p.d(be,{L:()=>s});var a=p(3489);class s extends a.L{notifyNext(oe,q,_,W,I){this.destination.next(q)}notifyError(oe,q){this.destination.error(oe)}notifyComplete(oe){this.destination.complete()}}},5647:(yt,be,p)=>{p.d(be,{t:()=>ee});var a=p(8929),s=p(6686),oe=p(2268);const W=new class q extends oe.v{}(class G extends s.o{constructor(Fe,ze){super(Fe,ze),this.scheduler=Fe,this.work=ze}schedule(Fe,ze=0){return ze>0?super.schedule(Fe,ze):(this.delay=ze,this.state=Fe,this.scheduler.flush(this),this)}execute(Fe,ze){return ze>0||this.closed?super.execute(Fe,ze):this._execute(Fe,ze)}requestAsyncId(Fe,ze,_e=0){return null!==_e&&_e>0||null===_e&&this.delay>0?super.requestAsyncId(Fe,ze,_e):Fe.flush(this)}});var I=p(2654),R=p(7770),H=p(5279),B=p(5283);class ee extends a.xQ{constructor(Fe=Number.POSITIVE_INFINITY,ze=Number.POSITIVE_INFINITY,_e){super(),this.scheduler=_e,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=Fe<1?1:Fe,this._windowTime=ze<1?1:ze,ze===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(Fe){if(!this.isStopped){const ze=this._events;ze.push(Fe),ze.length>this._bufferSize&&ze.shift()}super.next(Fe)}nextTimeWindow(Fe){this.isStopped||(this._events.push(new ye(this._getNow(),Fe)),this._trimBufferThenGetEvents()),super.next(Fe)}_subscribe(Fe){const ze=this._infiniteTimeWindow,_e=ze?this._events:this._trimBufferThenGetEvents(),vt=this.scheduler,Je=_e.length;let zt;if(this.closed)throw new H.N;if(this.isStopped||this.hasError?zt=I.w.EMPTY:(this.observers.push(Fe),zt=new B.W(this,Fe)),vt&&Fe.add(Fe=new R.ht(Fe,vt)),ze)for(let ut=0;utze&&(zt=Math.max(zt,Je-ze)),zt>0&&vt.splice(0,zt),vt}}class ye{constructor(Fe,ze){this.time=Fe,this.value=ze}}},8929:(yt,be,p)=>{p.d(be,{Yc:()=>W,xQ:()=>I});var a=p(6498),s=p(3489),G=p(2654),oe=p(5279),q=p(5283),_=p(7668);class W extends s.L{constructor(B){super(B),this.destination=B}}let I=(()=>{class H extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_.b](){return new W(this)}lift(ee){const ye=new R(this,this);return ye.operator=ee,ye}next(ee){if(this.closed)throw new oe.N;if(!this.isStopped){const{observers:ye}=this,Ye=ye.length,Fe=ye.slice();for(let ze=0;zenew R(B,ee),H})();class R extends I{constructor(B,ee){super(),this.destination=B,this.source=ee}next(B){const{destination:ee}=this;ee&&ee.next&&ee.next(B)}error(B){const{destination:ee}=this;ee&&ee.error&&this.destination.error(B)}complete(){const{destination:B}=this;B&&B.complete&&this.destination.complete()}_subscribe(B){const{source:ee}=this;return ee?this.source.subscribe(B):G.w.EMPTY}}},5283:(yt,be,p)=>{p.d(be,{W:()=>s});var a=p(2654);class s extends a.w{constructor(oe,q){super(),this.subject=oe,this.subscriber=q,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const oe=this.subject,q=oe.observers;if(this.subject=null,!q||0===q.length||oe.isStopped||oe.closed)return;const _=q.indexOf(this.subscriber);-1!==_&&q.splice(_,1)}}},3489:(yt,be,p)=>{p.d(be,{L:()=>W});var a=p(7043),s=p(3292),G=p(2654),oe=p(7668),q=p(2830),_=p(2782);class W extends G.w{constructor(H,B,ee){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!H){this.destination=s.c;break}if("object"==typeof H){H instanceof W?(this.syncErrorThrowable=H.syncErrorThrowable,this.destination=H,H.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,H));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,H,B,ee)}}[oe.b](){return this}static create(H,B,ee){const ye=new W(H,B,ee);return ye.syncErrorThrowable=!1,ye}next(H){this.isStopped||this._next(H)}error(H){this.isStopped||(this.isStopped=!0,this._error(H))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(H){this.destination.next(H)}_error(H){this.destination.error(H),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:H}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=H,this}}class I extends W{constructor(H,B,ee,ye){super(),this._parentSubscriber=H;let Ye,Fe=this;(0,a.m)(B)?Ye=B:B&&(Ye=B.next,ee=B.error,ye=B.complete,B!==s.c&&(Fe=Object.create(B),(0,a.m)(Fe.unsubscribe)&&this.add(Fe.unsubscribe.bind(Fe)),Fe.unsubscribe=this.unsubscribe.bind(this))),this._context=Fe,this._next=Ye,this._error=ee,this._complete=ye}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:B}=this;q.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?this.__tryOrSetError(B,this._next,H)&&this.unsubscribe():this.__tryOrUnsub(this._next,H)}}error(H){if(!this.isStopped){const{_parentSubscriber:B}=this,{useDeprecatedSynchronousErrorHandling:ee}=q.v;if(this._error)ee&&B.syncErrorThrowable?(this.__tryOrSetError(B,this._error,H),this.unsubscribe()):(this.__tryOrUnsub(this._error,H),this.unsubscribe());else if(B.syncErrorThrowable)ee?(B.syncErrorValue=H,B.syncErrorThrown=!0):(0,_.z)(H),this.unsubscribe();else{if(this.unsubscribe(),ee)throw H;(0,_.z)(H)}}}complete(){if(!this.isStopped){const{_parentSubscriber:H}=this;if(this._complete){const B=()=>this._complete.call(this._context);q.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?(this.__tryOrSetError(H,B),this.unsubscribe()):(this.__tryOrUnsub(B),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(H,B){try{H.call(this._context,B)}catch(ee){if(this.unsubscribe(),q.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,_.z)(ee)}}__tryOrSetError(H,B,ee){if(!q.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,ee)}catch(ye){return q.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=ye,H.syncErrorThrown=!0,!0):((0,_.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},2654:(yt,be,p)=>{p.d(be,{w:()=>_});var a=p(6688),s=p(7830),G=p(7043);const q=(()=>{function I(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((H,B)=>`${B+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return I.prototype=Object.create(Error.prototype),I})();class _{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:H,_ctorUnsubscribe:B,_unsubscribe:ee,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof _)H.remove(this);else if(null!==H)for(let Ye=0;YeR.concat(H instanceof q?H.errors:H),[])}_.EMPTY=((I=new _).closed=!0,I)},2830:(yt,be,p)=>{p.d(be,{v:()=>s});let a=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(G){if(G){const oe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+oe.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=G},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(yt,be,p)=>{p.d(be,{IY:()=>oe,Ds:()=>_,ft:()=>I});var a=p(3489),s=p(6498),G=p(9249);class oe extends a.L{constructor(H){super(),this.parent=H}_next(H){this.parent.notifyNext(H)}_error(H){this.parent.notifyError(H),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _ extends a.L{notifyNext(H){this.destination.next(H)}notifyError(H){this.destination.error(H)}notifyComplete(){this.destination.complete()}}function I(R,H){if(H.closed)return;if(R instanceof s.y)return R.subscribe(H);let B;try{B=(0,G.s)(R)(H)}catch(ee){H.error(ee)}return B}},1762:(yt,be,p)=>{p.d(be,{c:()=>q,N:()=>_});var a=p(8929),s=p(6498),G=p(2654),oe=p(4327);class q extends s.y{constructor(B,ee){super(),this.source=B,this.subjectFactory=ee,this._refCount=0,this._isComplete=!1}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let B=this._connection;return B||(this._isComplete=!1,B=this._connection=new G.w,B.add(this.source.subscribe(new W(this.getSubject(),this))),B.closed&&(this._connection=null,B=G.w.EMPTY)),B}refCount(){return(0,oe.x)()(this)}}const _=(()=>{const H=q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}}})();class W extends a.Yc{constructor(B,ee){super(B),this.connectable=ee}_error(B){this._unsubscribe(),super._error(B)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const B=this.connectable;if(B){this.connectable=null;const ee=B._connection;B._refCount=0,B._subject=null,B._connection=null,ee&&ee.unsubscribe()}}}},6053:(yt,be,p)=>{p.d(be,{aj:()=>W});var a=p(2866),s=p(6688),G=p(826),oe=p(448),q=p(3009);const _={};function W(...H){let B,ee;return(0,a.K)(H[H.length-1])&&(ee=H.pop()),"function"==typeof H[H.length-1]&&(B=H.pop()),1===H.length&&(0,s.k)(H[0])&&(H=H[0]),(0,q.n)(H,ee).lift(new I(B))}class I{constructor(B){this.resultSelector=B}call(B,ee){return ee.subscribe(new R(B,this.resultSelector))}}class R extends G.L{constructor(B,ee){super(B),this.resultSelector=ee,this.active=0,this.values=[],this.observables=[]}_next(B){this.values.push(_),this.observables.push(B)}_complete(){const B=this.observables,ee=B.length;if(0===ee)this.destination.complete();else{this.active=ee,this.toRespond=ee;for(let ye=0;ye{p.d(be,{z:()=>G});var a=p(1086),s=p(534);function G(...oe){return(0,s.u)()((0,a.of)(...oe))}},8514:(yt,be,p)=>{p.d(be,{P:()=>oe});var a=p(6498),s=p(5254),G=p(8896);function oe(q){return new a.y(_=>{let W;try{W=q()}catch(R){return void _.error(R)}return(W?(0,s.D)(W):(0,G.c)()).subscribe(_)})}},8896:(yt,be,p)=>{p.d(be,{E:()=>s,c:()=>G});var a=p(6498);const s=new a.y(q=>q.complete());function G(q){return q?function oe(q){return new a.y(_=>q.schedule(()=>_.complete()))}(q):s}},5254:(yt,be,p)=>{p.d(be,{D:()=>Fe});var a=p(6498),s=p(9249),G=p(2654),oe=p(3821),W=p(6454),I=p(5430),B=p(8955),ee=p(8515);function Fe(ze,_e){return _e?function Ye(ze,_e){if(null!=ze){if(function H(ze){return ze&&"function"==typeof ze[oe.L]}(ze))return function q(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>{const zt=ze[oe.L]();Je.add(zt.subscribe({next(ut){Je.add(_e.schedule(()=>vt.next(ut)))},error(ut){Je.add(_e.schedule(()=>vt.error(ut)))},complete(){Je.add(_e.schedule(()=>vt.complete()))}}))})),Je})}(ze,_e);if((0,B.t)(ze))return function _(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>ze.then(zt=>{Je.add(_e.schedule(()=>{vt.next(zt),Je.add(_e.schedule(()=>vt.complete()))}))},zt=>{Je.add(_e.schedule(()=>vt.error(zt)))}))),Je})}(ze,_e);if((0,ee.z)(ze))return(0,W.r)(ze,_e);if(function ye(ze){return ze&&"function"==typeof ze[I.hZ]}(ze)||"string"==typeof ze)return function R(ze,_e){if(!ze)throw new Error("Iterable cannot be null");return new a.y(vt=>{const Je=new G.w;let zt;return Je.add(()=>{zt&&"function"==typeof zt.return&&zt.return()}),Je.add(_e.schedule(()=>{zt=ze[I.hZ](),Je.add(_e.schedule(function(){if(vt.closed)return;let ut,Ie;try{const $e=zt.next();ut=$e.value,Ie=$e.done}catch($e){return void vt.error($e)}Ie?vt.complete():(vt.next(ut),this.schedule())}))})),Je})}(ze,_e)}throw new TypeError((null!==ze&&typeof ze||ze)+" is not observable")}(ze,_e):ze instanceof a.y?ze:new a.y((0,s.s)(ze))}},3009:(yt,be,p)=>{p.d(be,{n:()=>oe});var a=p(6498),s=p(3650),G=p(6454);function oe(q,_){return _?(0,G.r)(q,_):new a.y((0,s.V)(q))}},3753:(yt,be,p)=>{p.d(be,{R:()=>_});var a=p(6498),s=p(6688),G=p(7043),oe=p(4850);function _(B,ee,ye,Ye){return(0,G.m)(ye)&&(Ye=ye,ye=void 0),Ye?_(B,ee,ye).pipe((0,oe.U)(Fe=>(0,s.k)(Fe)?Ye(...Fe):Ye(Fe))):new a.y(Fe=>{W(B,ee,function ze(_e){Fe.next(arguments.length>1?Array.prototype.slice.call(arguments):_e)},Fe,ye)})}function W(B,ee,ye,Ye,Fe){let ze;if(function H(B){return B&&"function"==typeof B.addEventListener&&"function"==typeof B.removeEventListener}(B)){const _e=B;B.addEventListener(ee,ye,Fe),ze=()=>_e.removeEventListener(ee,ye,Fe)}else if(function R(B){return B&&"function"==typeof B.on&&"function"==typeof B.off}(B)){const _e=B;B.on(ee,ye),ze=()=>_e.off(ee,ye)}else if(function I(B){return B&&"function"==typeof B.addListener&&"function"==typeof B.removeListener}(B)){const _e=B;B.addListener(ee,ye),ze=()=>_e.removeListener(ee,ye)}else{if(!B||!B.length)throw new TypeError("Invalid event target");for(let _e=0,vt=B.length;_e{p.d(be,{T:()=>q});var a=p(6498),s=p(2866),G=p(9146),oe=p(3009);function q(..._){let W=Number.POSITIVE_INFINITY,I=null,R=_[_.length-1];return(0,s.K)(R)?(I=_.pop(),_.length>1&&"number"==typeof _[_.length-1]&&(W=_.pop())):"number"==typeof R&&(W=_.pop()),null===I&&1===_.length&&_[0]instanceof a.y?_[0]:(0,G.J)(W)((0,oe.n)(_,I))}},1086:(yt,be,p)=>{p.d(be,{of:()=>oe});var a=p(2866),s=p(3009),G=p(6454);function oe(...q){let _=q[q.length-1];return(0,a.K)(_)?(q.pop(),(0,G.r)(q,_)):(0,s.n)(q)}},1737:(yt,be,p)=>{p.d(be,{_:()=>s});var a=p(6498);function s(oe,q){return new a.y(q?_=>q.schedule(G,0,{error:oe,subscriber:_}):_=>_.error(oe))}function G({error:oe,subscriber:q}){q.error(oe)}},8723:(yt,be,p)=>{p.d(be,{H:()=>q});var a=p(6498),s=p(353),G=p(4241),oe=p(2866);function q(W=0,I,R){let H=-1;return(0,G.k)(I)?H=Number(I)<1?1:Number(I):(0,oe.K)(I)&&(R=I),(0,oe.K)(R)||(R=s.P),new a.y(B=>{const ee=(0,G.k)(W)?W:+W-R.now();return R.schedule(_,ee,{index:0,period:H,subscriber:B})})}function _(W){const{index:I,period:R,subscriber:H}=W;if(H.next(I),!H.closed){if(-1===R)return H.complete();W.index=I+1,this.schedule(W,R)}}},7138:(yt,be,p)=>{p.d(be,{e:()=>W});var a=p(353),s=p(1177);class oe{constructor(R){this.durationSelector=R}call(R,H){return H.subscribe(new q(R,this.durationSelector))}}class q extends s.Ds{constructor(R,H){super(R),this.durationSelector=H,this.hasValue=!1}_next(R){if(this.value=R,this.hasValue=!0,!this.throttled){let H;try{const{durationSelector:ee}=this;H=ee(R)}catch(ee){return this.destination.error(ee)}const B=(0,s.ft)(H,new s.IY(this));!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:R,hasValue:H,throttled:B}=this;B&&(this.remove(B),this.throttled=void 0,B.unsubscribe()),H&&(this.value=void 0,this.hasValue=!1,this.destination.next(R))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var _=p(8723);function W(I,R=a.P){return function G(I){return function(H){return H.lift(new oe(I))}}(()=>(0,_.H)(I,R))}},7221:(yt,be,p)=>{p.d(be,{K:()=>s});var a=p(1177);function s(q){return function(W){const I=new G(q),R=W.lift(I);return I.caught=R}}class G{constructor(_){this.selector=_}call(_,W){return W.subscribe(new oe(_,this.selector,this.caught))}}class oe extends a.Ds{constructor(_,W,I){super(_),this.selector=W,this.caught=I}error(_){if(!this.isStopped){let W;try{W=this.selector(_,this.caught)}catch(H){return void super.error(H)}this._unsubscribeAndRecycle();const I=new a.IY(this);this.add(I);const R=(0,a.ft)(W,I);R!==I&&this.add(R)}}}},534:(yt,be,p)=>{p.d(be,{u:()=>s});var a=p(9146);function s(){return(0,a.J)(1)}},1406:(yt,be,p)=>{p.d(be,{b:()=>s});var a=p(1709);function s(G,oe){return(0,a.zg)(G,oe,1)}},13:(yt,be,p)=>{p.d(be,{b:()=>G});var a=p(3489),s=p(353);function G(W,I=s.P){return R=>R.lift(new oe(W,I))}class oe{constructor(I,R){this.dueTime=I,this.scheduler=R}call(I,R){return R.subscribe(new q(I,this.dueTime,this.scheduler))}}class q extends a.L{constructor(I,R,H){super(I),this.dueTime=R,this.scheduler=H,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(I){this.clearDebounce(),this.lastValue=I,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:I}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(I)}}clearDebounce(){const I=this.debouncedSubscription;null!==I&&(this.remove(I),I.unsubscribe(),this.debouncedSubscription=null)}}function _(W){W.debouncedNext()}},8583:(yt,be,p)=>{p.d(be,{g:()=>q});var a=p(353),G=p(3489),oe=p(9312);function q(R,H=a.P){const ee=function s(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-H.now():Math.abs(R);return ye=>ye.lift(new _(ee,H))}class _{constructor(H,B){this.delay=H,this.scheduler=B}call(H,B){return B.subscribe(new W(H,this.delay,this.scheduler))}}class W extends G.L{constructor(H,B,ee){super(H),this.delay=B,this.scheduler=ee,this.queue=[],this.active=!1,this.errored=!1}static dispatch(H){const B=H.source,ee=B.queue,ye=H.scheduler,Ye=H.destination;for(;ee.length>0&&ee[0].time-ye.now()<=0;)ee.shift().notification.observe(Ye);if(ee.length>0){const Fe=Math.max(0,ee[0].time-ye.now());this.schedule(H,Fe)}else this.unsubscribe(),B.active=!1}_schedule(H){this.active=!0,this.destination.add(H.schedule(W.dispatch,this.delay,{source:this,destination:this.destination,scheduler:H}))}scheduleNotification(H){if(!0===this.errored)return;const B=this.scheduler,ee=new I(B.now()+this.delay,H);this.queue.push(ee),!1===this.active&&this._schedule(B)}_next(H){this.scheduleNotification(oe.P.createNext(H))}_error(H){this.errored=!0,this.queue=[],this.destination.error(H),this.unsubscribe()}_complete(){this.scheduleNotification(oe.P.createComplete()),this.unsubscribe()}}class I{constructor(H,B){this.time=H,this.notification=B}}},5778:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(q,_){return W=>W.lift(new G(q,_))}class G{constructor(_,W){this.compare=_,this.keySelector=W}call(_,W){return W.subscribe(new oe(_,this.compare,this.keySelector))}}class oe extends a.L{constructor(_,W,I){super(_),this.keySelector=I,this.hasKey=!1,"function"==typeof W&&(this.compare=W)}compare(_,W){return _===W}_next(_){let W;try{const{keySelector:R}=this;W=R?R(_):_}catch(R){return this.destination.error(R)}let I=!1;if(this.hasKey)try{const{compare:R}=this;I=R(this.key,W)}catch(R){return this.destination.error(R)}else this.hasKey=!0;I||(this.key=W,this.destination.next(_))}}},2198:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q,_){return function(I){return I.lift(new G(q,_))}}class G{constructor(_,W){this.predicate=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.predicate,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.predicate=W,this.thisArg=I,this.count=0}_next(_){let W;try{W=this.predicate.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}W&&this.destination.next(_)}}},537:(yt,be,p)=>{p.d(be,{x:()=>G});var a=p(3489),s=p(2654);function G(_){return W=>W.lift(new oe(_))}class oe{constructor(W){this.callback=W}call(W,I){return I.subscribe(new q(W,this.callback))}}class q extends a.L{constructor(W,I){super(W),this.add(new s.w(I))}}},4850:(yt,be,p)=>{p.d(be,{U:()=>s});var a=p(3489);function s(q,_){return function(I){if("function"!=typeof q)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return I.lift(new G(q,_))}}class G{constructor(_,W){this.project=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.project,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.project=W,this.count=0,this.thisArg=I||this}_next(_){let W;try{W=this.project.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}this.destination.next(W)}}},7604:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.value=_}call(_,W){return W.subscribe(new oe(_,this.value))}}class oe extends a.L{constructor(_,W){super(_),this.value=W}_next(_){this.destination.next(this.value)}}},9146:(yt,be,p)=>{p.d(be,{J:()=>G});var a=p(1709),s=p(5379);function G(oe=Number.POSITIVE_INFINITY){return(0,a.zg)(s.y,oe)}},1709:(yt,be,p)=>{p.d(be,{zg:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(I,R,H=Number.POSITIVE_INFINITY){return"function"==typeof R?B=>B.pipe(oe((ee,ye)=>(0,s.D)(I(ee,ye)).pipe((0,a.U)((Ye,Fe)=>R(ee,Ye,ye,Fe))),H)):("number"==typeof R&&(H=R),B=>B.lift(new q(I,H)))}class q{constructor(R,H=Number.POSITIVE_INFINITY){this.project=R,this.concurrent=H}call(R,H){return H.subscribe(new _(R,this.project,this.concurrent))}}class _ extends G.Ds{constructor(R,H,B=Number.POSITIVE_INFINITY){super(R),this.project=H,this.concurrent=B,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(R){this.active0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(yt,be,p)=>{p.d(be,{O:()=>s});var a=p(1762);function s(oe,q){return function(W){let I;if(I="function"==typeof oe?oe:function(){return oe},"function"==typeof q)return W.lift(new G(I,q));const R=Object.create(W,a.N);return R.source=W,R.subjectFactory=I,R}}class G{constructor(q,_){this.subjectFactory=q,this.selector=_}call(q,_){const{selector:W}=this,I=this.subjectFactory(),R=W(I).subscribe(q);return R.add(_.subscribe(I)),R}}},7770:(yt,be,p)=>{p.d(be,{QV:()=>G,ht:()=>q});var a=p(3489),s=p(9312);function G(W,I=0){return function(H){return H.lift(new oe(W,I))}}class oe{constructor(I,R=0){this.scheduler=I,this.delay=R}call(I,R){return R.subscribe(new q(I,this.scheduler,this.delay))}}class q extends a.L{constructor(I,R,H=0){super(I),this.scheduler=R,this.delay=H}static dispatch(I){const{notification:R,destination:H}=I;R.observe(H),this.unsubscribe()}scheduleMessage(I){this.destination.add(this.scheduler.schedule(q.dispatch,this.delay,new _(I,this.destination)))}_next(I){this.scheduleMessage(s.P.createNext(I))}_error(I){this.scheduleMessage(s.P.createError(I)),this.unsubscribe()}_complete(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()}}class _{constructor(I,R){this.notification=I,this.destination=R}}},4327:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(){return function(_){return _.lift(new G(_))}}class G{constructor(_){this.connectable=_}call(_,W){const{connectable:I}=this;I._refCount++;const R=new oe(_,I),H=W.subscribe(R);return R.closed||(R.connection=I.connect()),H}}class oe extends a.L{constructor(_,W){super(_),this.connectable=W}_unsubscribe(){const{connectable:_}=this;if(!_)return void(this.connection=null);this.connectable=null;const W=_._refCount;if(W<=0)return void(this.connection=null);if(_._refCount=W-1,W>1)return void(this.connection=null);const{connection:I}=this,R=_._connection;this.connection=null,R&&(!I||R===I)&&R.unsubscribe()}}},9973:(yt,be,p)=>{p.d(be,{X:()=>s});var a=p(3489);function s(q=-1){return _=>_.lift(new G(q,_))}class G{constructor(_,W){this.count=_,this.source=W}call(_,W){return W.subscribe(new oe(_,this.count,this.source))}}class oe extends a.L{constructor(_,W,I){super(_),this.count=W,this.source=I}error(_){if(!this.isStopped){const{source:W,count:I}=this;if(0===I)return super.error(_);I>-1&&(this.count=I-1),W.subscribe(this._unsubscribeAndRecycle())}}}},2014:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(3489);function s(q,_){let W=!1;return arguments.length>=2&&(W=!0),function(R){return R.lift(new G(q,_,W))}}class G{constructor(_,W,I=!1){this.accumulator=_,this.seed=W,this.hasSeed=I}call(_,W){return W.subscribe(new oe(_,this.accumulator,this.seed,this.hasSeed))}}class oe extends a.L{constructor(_,W,I,R){super(_),this.accumulator=W,this._seed=I,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(_){this.hasSeed=!0,this._seed=_}_next(_){if(this.hasSeed)return this._tryNext(_);this.seed=_,this.destination.next(_)}_tryNext(_){const W=this.index++;let I;try{I=this.accumulator(this.seed,_,W)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}},8117:(yt,be,p)=>{p.d(be,{B:()=>q});var a=p(2536),s=p(4327),G=p(8929);function oe(){return new G.xQ}function q(){return _=>(0,s.x)()((0,a.O)(oe)(_))}},5154:(yt,be,p)=>{p.d(be,{d:()=>s});var a=p(5647);function s(oe,q,_){let W;return W=oe&&"object"==typeof oe?oe:{bufferSize:oe,windowTime:q,refCount:!1,scheduler:_},I=>I.lift(function G({bufferSize:oe=Number.POSITIVE_INFINITY,windowTime:q=Number.POSITIVE_INFINITY,refCount:_,scheduler:W}){let I,H,R=0,B=!1,ee=!1;return function(Ye){let Fe;R++,!I||B?(B=!1,I=new a.t(oe,q,W),Fe=I.subscribe(this),H=Ye.subscribe({next(ze){I.next(ze)},error(ze){B=!0,I.error(ze)},complete(){ee=!0,H=void 0,I.complete()}}),ee&&(H=void 0)):Fe=I.subscribe(this),this.add(()=>{R--,Fe.unsubscribe(),Fe=void 0,H&&!ee&&_&&0===R&&(H.unsubscribe(),H=void 0,I=void 0)})}}(W))}},1307:(yt,be,p)=>{p.d(be,{T:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.total=_}call(_,W){return W.subscribe(new oe(_,this.total))}}class oe extends a.L{constructor(_,W){super(_),this.total=W,this.count=0}_next(_){++this.count>this.total&&this.destination.next(_)}}},1059:(yt,be,p)=>{p.d(be,{O:()=>G});var a=p(1961),s=p(2866);function G(...oe){const q=oe[oe.length-1];return(0,s.K)(q)?(oe.pop(),_=>(0,a.z)(oe,_,q)):_=>(0,a.z)(oe,_)}},7545:(yt,be,p)=>{p.d(be,{w:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(W,I){return"function"==typeof I?R=>R.pipe(oe((H,B)=>(0,s.D)(W(H,B)).pipe((0,a.U)((ee,ye)=>I(H,ee,B,ye))))):R=>R.lift(new q(W))}class q{constructor(I){this.project=I}call(I,R){return R.subscribe(new _(I,this.project))}}class _ extends G.Ds{constructor(I,R){super(I),this.project=R,this.index=0}_next(I){let R;const H=this.index++;try{R=this.project(I,H)}catch(B){return void this.destination.error(B)}this._innerSub(R)}_innerSub(I){const R=this.innerSubscription;R&&R.unsubscribe();const H=new G.IY(this),B=this.destination;B.add(H),this.innerSubscription=(0,G.ft)(I,H),this.innerSubscription!==H&&B.add(this.innerSubscription)}_complete(){const{innerSubscription:I}=this;(!I||I.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(I){this.destination.next(I)}}},2986:(yt,be,p)=>{p.d(be,{q:()=>oe});var a=p(3489),s=p(4231),G=p(8896);function oe(W){return I=>0===W?(0,G.c)():I.lift(new q(W))}class q{constructor(I){if(this.total=I,this.total<0)throw new s.W}call(I,R){return R.subscribe(new _(I,this.total))}}class _ extends a.L{constructor(I,R){super(I),this.total=R,this.count=0}_next(I){const R=this.total,H=++this.count;H<=R&&(this.destination.next(I),H===R&&(this.destination.complete(),this.unsubscribe()))}}},7625:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(1177);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.notifier=_}call(_,W){const I=new oe(_),R=(0,a.ft)(this.notifier,new a.IY(I));return R&&!I.seenValue?(I.add(R),W.subscribe(I)):I}}class oe extends a.Ds{constructor(_){super(_),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(yt,be,p)=>{p.d(be,{b:()=>oe});var a=p(3489),s=p(7876),G=p(7043);function oe(W,I,R){return function(B){return B.lift(new q(W,I,R))}}class q{constructor(I,R,H){this.nextOrObserver=I,this.error=R,this.complete=H}call(I,R){return R.subscribe(new _(I,this.nextOrObserver,this.error,this.complete))}}class _ extends a.L{constructor(I,R,H,B){super(I),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=H||s.Z,this._tapComplete=B||s.Z,(0,G.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||s.Z,this._tapError=R.error||s.Z,this._tapComplete=R.complete||s.Z)}_next(I){try{this._tapNext.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.next(I)}_error(I){try{this._tapError.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.error(I)}_complete(){try{this._tapComplete.call(this._context)}catch(I){return void this.destination.error(I)}return this.destination.complete()}}},6454:(yt,be,p)=>{p.d(be,{r:()=>G});var a=p(6498),s=p(2654);function G(oe,q){return new a.y(_=>{const W=new s.w;let I=0;return W.add(q.schedule(function(){I!==oe.length?(_.next(oe[I++]),_.closed||W.add(this.schedule())):_.complete()})),W})}},6686:(yt,be,p)=>{p.d(be,{o:()=>G});var a=p(2654);class s extends a.w{constructor(q,_){super()}schedule(q,_=0){return this}}class G extends s{constructor(q,_){super(q,_),this.scheduler=q,this.work=_,this.pending=!1}schedule(q,_=0){if(this.closed)return this;this.state=q;const W=this.id,I=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(I,W,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(I,this.id,_),this}requestAsyncId(q,_,W=0){return setInterval(q.flush.bind(q,this),W)}recycleAsyncId(q,_,W=0){if(null!==W&&this.delay===W&&!1===this.pending)return _;clearInterval(_)}execute(q,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(q,_);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,_){let I,W=!1;try{this.work(q)}catch(R){W=!0,I=!!R&&R||new Error(R)}if(W)return this.unsubscribe(),I}_unsubscribe(){const q=this.id,_=this.scheduler,W=_.actions,I=W.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==I&&W.splice(I,1),null!=q&&(this.id=this.recycleAsyncId(_,q,null)),this.delay=null}}},2268:(yt,be,p)=>{p.d(be,{v:()=>s});let a=(()=>{class G{constructor(q,_=G.now){this.SchedulerAction=q,this.now=_}schedule(q,_=0,W){return new this.SchedulerAction(this,q).schedule(W,_)}}return G.now=()=>Date.now(),G})();class s extends a{constructor(oe,q=a.now){super(oe,()=>s.delegate&&s.delegate!==this?s.delegate.now():q()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(oe,q=0,_){return s.delegate&&s.delegate!==this?s.delegate.schedule(oe,q,_):super.schedule(oe,q,_)}flush(oe){const{actions:q}=this;if(this.active)return void q.push(oe);let _;this.active=!0;do{if(_=oe.execute(oe.state,oe.delay))break}while(oe=q.shift());if(this.active=!1,_){for(;oe=q.shift();)oe.unsubscribe();throw _}}}},353:(yt,be,p)=>{p.d(be,{z:()=>G,P:()=>oe});var a=p(6686);const G=new(p(2268).v)(a.o),oe=G},5430:(yt,be,p)=>{p.d(be,{hZ:()=>s});const s=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(yt,be,p)=>{p.d(be,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(yt,be,p)=>{p.d(be,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(yt,be,p)=>{p.d(be,{W:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return G.prototype=Object.create(Error.prototype),G})()},5279:(yt,be,p)=>{p.d(be,{N:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return G.prototype=Object.create(Error.prototype),G})()},2782:(yt,be,p)=>{function a(s){setTimeout(()=>{throw s},0)}p.d(be,{z:()=>a})},5379:(yt,be,p)=>{function a(s){return s}p.d(be,{y:()=>a})},6688:(yt,be,p)=>{p.d(be,{k:()=>a});const a=Array.isArray||(s=>s&&"number"==typeof s.length)},8515:(yt,be,p)=>{p.d(be,{z:()=>a});const a=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7043:(yt,be,p)=>{function a(s){return"function"==typeof s}p.d(be,{m:()=>a})},4241:(yt,be,p)=>{p.d(be,{k:()=>s});var a=p(6688);function s(G){return!(0,a.k)(G)&&G-parseFloat(G)+1>=0}},7830:(yt,be,p)=>{function a(s){return null!==s&&"object"==typeof s}p.d(be,{K:()=>a})},8955:(yt,be,p)=>{function a(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(be,{t:()=>a})},2866:(yt,be,p)=>{function a(s){return s&&"function"==typeof s.schedule}p.d(be,{K:()=>a})},7876:(yt,be,p)=>{function a(){}p.d(be,{Z:()=>a})},4843:(yt,be,p)=>{p.d(be,{z:()=>s,U:()=>G});var a=p(5379);function s(...oe){return G(oe)}function G(oe){return 0===oe.length?a.y:1===oe.length?oe[0]:function(_){return oe.reduce((W,I)=>I(W),_)}}},9249:(yt,be,p)=>{p.d(be,{s:()=>B});var a=p(3650),s=p(2782),oe=p(5430),_=p(3821),I=p(8515),R=p(8955),H=p(7830);const B=ee=>{if(ee&&"function"==typeof ee[_.L])return(ee=>ye=>{const Ye=ee[_.L]();if("function"!=typeof Ye.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ye.subscribe(ye)})(ee);if((0,I.z)(ee))return(0,a.V)(ee);if((0,R.t)(ee))return(ee=>ye=>(ee.then(Ye=>{ye.closed||(ye.next(Ye),ye.complete())},Ye=>ye.error(Ye)).then(null,s.z),ye))(ee);if(ee&&"function"==typeof ee[oe.hZ])return(ee=>ye=>{const Ye=ee[oe.hZ]();for(;;){let Fe;try{Fe=Ye.next()}catch(ze){return ye.error(ze),ye}if(Fe.done){ye.complete();break}if(ye.next(Fe.value),ye.closed)break}return"function"==typeof Ye.return&&ye.add(()=>{Ye.return&&Ye.return()}),ye})(ee);{const Ye=`You provided ${(0,H.K)(ee)?"an invalid object":`'${ee}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ye)}}},3650:(yt,be,p)=>{p.d(be,{V:()=>a});const a=s=>G=>{for(let oe=0,q=s.length;oe{p.d(be,{D:()=>q});var a=p(3489);class s extends a.L{constructor(W,I,R){super(),this.parent=W,this.outerValue=I,this.outerIndex=R,this.index=0}_next(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)}_error(W){this.parent.notifyError(W,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var G=p(9249),oe=p(6498);function q(_,W,I,R,H=new s(_,I,R)){if(!H.closed)return W instanceof oe.y?W.subscribe(H):(0,G.s)(W)(H)}},655:(yt,be,p)=>{function oe(J,fe){var he={};for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&fe.indexOf(te)<0&&(he[te]=J[te]);if(null!=J&&"function"==typeof Object.getOwnPropertySymbols){var le=0;for(te=Object.getOwnPropertySymbols(J);le=0;je--)(Ue=J[je])&&(ie=(le<3?Ue(ie):le>3?Ue(fe,he,ie):Ue(fe,he))||ie);return le>3&&ie&&Object.defineProperty(fe,he,ie),ie}function I(J,fe,he,te){return new(he||(he=Promise))(function(ie,Ue){function je(ve){try{ke(te.next(ve))}catch(mt){Ue(mt)}}function tt(ve){try{ke(te.throw(ve))}catch(mt){Ue(mt)}}function ke(ve){ve.done?ie(ve.value):function le(ie){return ie instanceof he?ie:new he(function(Ue){Ue(ie)})}(ve.value).then(je,tt)}ke((te=te.apply(J,fe||[])).next())})}p.d(be,{_T:()=>oe,gn:()=>q,mG:()=>I})},1777:(yt,be,p)=>{p.d(be,{l3:()=>G,_j:()=>a,LC:()=>s,ZN:()=>vt,jt:()=>q,IO:()=>Fe,vP:()=>W,EY:()=>ze,SB:()=>R,oB:()=>I,eR:()=>B,X$:()=>oe,ZE:()=>Je,k1:()=>zt});class a{}class s{}const G="*";function oe(ut,Ie){return{type:7,name:ut,definitions:Ie,options:{}}}function q(ut,Ie=null){return{type:4,styles:Ie,timings:ut}}function W(ut,Ie=null){return{type:2,steps:ut,options:Ie}}function I(ut){return{type:6,styles:ut,offset:null}}function R(ut,Ie,$e){return{type:0,name:ut,styles:Ie,options:$e}}function B(ut,Ie,$e=null){return{type:1,expr:ut,animation:Ie,options:$e}}function Fe(ut,Ie,$e=null){return{type:11,selector:ut,animation:Ie,options:$e}}function ze(ut,Ie){return{type:12,timings:ut,animation:Ie}}function _e(ut){Promise.resolve(null).then(ut)}class vt{constructor(Ie=0,$e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ie+$e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}onStart(Ie){this._onStartFns.push(Ie)}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){_e(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Ie){this._position=this.totalTime?Ie*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}class Je{constructor(Ie){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ie;let $e=0,et=0,Se=0;const Xe=this.players.length;0==Xe?_e(()=>this._onFinish()):this.players.forEach(J=>{J.onDone(()=>{++$e==Xe&&this._onFinish()}),J.onDestroy(()=>{++et==Xe&&this._onDestroy()}),J.onStart(()=>{++Se==Xe&&this._onStart()})}),this.totalTime=this.players.reduce((J,fe)=>Math.max(J,fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}init(){this.players.forEach(Ie=>Ie.init())}onStart(Ie){this._onStartFns.push(Ie)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[])}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ie=>Ie.play())}pause(){this.players.forEach(Ie=>Ie.pause())}restart(){this.players.forEach(Ie=>Ie.restart())}finish(){this._onFinish(),this.players.forEach(Ie=>Ie.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ie=>Ie.destroy()),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this.players.forEach(Ie=>Ie.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ie){const $e=Ie*this.totalTime;this.players.forEach(et=>{const Se=et.totalTime?Math.min(1,$e/et.totalTime):1;et.setPosition(Se)})}getPosition(){const Ie=this.players.reduce(($e,et)=>null===$e||et.totalTime>$e.totalTime?et:$e,null);return null!=Ie?Ie.getPosition():0}beforeDestroy(){this.players.forEach(Ie=>{Ie.beforeDestroy&&Ie.beforeDestroy()})}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}const zt="!"},5664:(yt,be,p)=>{p.d(be,{rt:()=>Ne,tE:()=>Le,qV:()=>Et});var a=p(9808),s=p(5e3),G=p(591),oe=p(8929),q=p(1086),_=p(1159),W=p(2986),I=p(1307),R=p(5778),H=p(7625),B=p(3191),ee=p(925),ye=p(7144);let le=(()=>{class L{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function Ue(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const ue=function ie(L){try{return L.frameElement}catch(E){return null}}(function St(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}($));if(ue&&(-1===dt(ue)||!this.isVisible(ue)))return!1;let Ae=$.nodeName.toLowerCase(),wt=dt($);return $.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Ae||"object"===Ae||this._platform.WEBKIT&&this._platform.IOS&&!function _t(L){let E=L.nodeName.toLowerCase(),$="input"===E&&L.type;return"text"===$||"password"===$||"select"===E||"textarea"===E}($))&&("audio"===Ae?!!$.hasAttribute("controls")&&-1!==wt:"video"===Ae?-1!==wt&&(null!==wt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,ue){return function it(L){return!function tt(L){return function ve(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function je(L){let E=L.nodeName.toLowerCase();return"input"===E||"select"===E||"button"===E||"textarea"===E}(L)||function ke(L){return function mt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Qe(L))}($)&&!this.isDisabled($)&&((null==ue?void 0:ue.ignoreVisibility)||this.isVisible($))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Qe(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let E=L.getAttribute("tabindex");return!(!E||isNaN(parseInt(E,10)))}function dt(L){if(!Qe(L))return null;const E=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(E)?-1:E}class ot{constructor(E,$,ue,Ae,wt=!1){this._element=E,this._checker=$,this._ngZone=ue,this._document=Ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,wt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(E){this._enabled=E,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}destroy(){const E=this._startAnchor,$=this._endAnchor;E&&(E.removeEventListener("focus",this.startAnchorListener),E.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(E)))})}focusFirstTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(E)))})}focusLastTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(E)))})}_getRegionBoundary(E){const $=this._element.querySelectorAll(`[cdk-focus-region-${E}], [cdkFocusRegion${E}], [cdk-focus-${E}]`);return"start"==E?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(E){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const ue=this._getFirstTabbableElement($);return null==ue||ue.focus(E),!!ue}return $.focus(E),!0}return this.focusFirstTabbableElement(E)}focusFirstTabbableElement(E){const $=this._getRegionBoundary("start");return $&&$.focus(E),!!$}focusLastTabbableElement(E){const $=this._getRegionBoundary("end");return $&&$.focus(E),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=0;ue<$.length;ue++){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[ue]):null;if(Ae)return Ae}return null}_getLastTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=$.length-1;ue>=0;ue--){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[ue]):null;if(Ae)return Ae}return null}_createAnchor(){const E=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,E),E.classList.add("cdk-visually-hidden"),E.classList.add("cdk-focus-trap-anchor"),E.setAttribute("aria-hidden","true"),E}_toggleAnchorTabIndex(E,$){E?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(E){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}_executeOnStable(E){this._ngZone.isStable?E():this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(E)}}let Et=(()=>{class L{constructor($,ue,Ae){this._checker=$,this._ngZone=ue,this._document=Ae}create($,ue=!1){return new ot($,this._checker,this._ngZone,this._document,ue)}}return L.\u0275fac=function($){return new($||L)(s.LFG(le),s.LFG(s.R0b),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const Sn=new s.OlP("cdk-input-modality-detector-options"),cn={ignoreKeys:[_.zL,_.jx,_.b2,_.MW,_.JU]},qe=(0,ee.i$)({passive:!0,capture:!0});let x=(()=>{class L{constructor($,ue,Ae,wt){this._platform=$,this._mostRecentTarget=null,this._modality=new G.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Qt,gn;(null===(gn=null===(Qt=this._options)||void 0===Qt?void 0:Qt.ignoreKeys)||void 0===gn?void 0:gn.some(Vn=>Vn===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ee.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function Cn(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,ee.sA)(At))},this._onTouchstart=At=>{!function Dt(L){const E=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!E||-1!==E.identifier||null!=E.radiusX&&1!==E.radiusX||null!=E.radiusY&&1!==E.radiusY)}(At)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ee.sA)(At)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},cn),wt),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),$.isBrowser&&ue.runOutsideAngular(()=>{Ae.addEventListener("keydown",this._onKeydown,qe),Ae.addEventListener("mousedown",this._onMousedown,qe),Ae.addEventListener("touchstart",this._onTouchstart,qe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(Sn,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const He=new s.OlP("cdk-focus-monitor-default-options"),Ge=(0,ee.i$)({passive:!0,capture:!0});let Le=(()=>{class L{constructor($,ue,Ae,wt,At){this._ngZone=$,this._platform=ue,this._inputModalityDetector=Ae,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new oe.xQ,this._rootNodeFocusAndBlurListener=Qt=>{const gn=(0,ee.sA)(Qt),Vn="focus"===Qt.type?this._onFocus:this._onBlur;for(let An=gn;An;An=An.parentElement)Vn.call(this,Qt,An)},this._document=wt,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,ue=!1){const Ae=(0,B.fI)($);if(!this._platform.isBrowser||1!==Ae.nodeType)return(0,q.of)(null);const wt=(0,ee.kV)(Ae)||this._getDocument(),At=this._elementInfo.get(Ae);if(At)return ue&&(At.checkChildren=!0),At.subject;const Qt={checkChildren:ue,subject:new oe.xQ,rootNode:wt};return this._elementInfo.set(Ae,Qt),this._registerGlobalListeners(Qt),Qt.subject}stopMonitoring($){const ue=(0,B.fI)($),Ae=this._elementInfo.get(ue);Ae&&(Ae.subject.complete(),this._setClasses(ue),this._elementInfo.delete(ue),this._removeGlobalListeners(Ae))}focusVia($,ue,Ae){const wt=(0,B.fI)($);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([Qt,gn])=>this._originChanged(Qt,ue,gn)):(this._setOrigin(ue),"function"==typeof wt.focus&&wt.focus(Ae))}ngOnDestroy(){this._elementInfo.forEach(($,ue)=>this.stopMonitoring(ue))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,ue){$.classList.toggle("cdk-focused",!!ue),$.classList.toggle("cdk-touch-focused","touch"===ue),$.classList.toggle("cdk-keyboard-focused","keyboard"===ue),$.classList.toggle("cdk-mouse-focused","mouse"===ue),$.classList.toggle("cdk-program-focused","program"===ue)}_setOrigin($,ue=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&ue,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,ue){const Ae=this._elementInfo.get(ue),wt=(0,ee.sA)($);!Ae||!Ae.checkChildren&&ue!==wt||this._originChanged(ue,this._getFocusOrigin(wt),Ae)}_onBlur($,ue){const Ae=this._elementInfo.get(ue);!Ae||Ae.checkChildren&&$.relatedTarget instanceof Node&&ue.contains($.relatedTarget)||(this._setClasses(ue),this._emitOrigin(Ae.subject,null))}_emitOrigin($,ue){this._ngZone.run(()=>$.next(ue))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const ue=$.rootNode,Ae=this._rootNodeFocusListenerCount.get(ue)||0;Ae||this._ngZone.runOutsideAngular(()=>{ue.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(ue,Ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,H.R)(this._stopInputModalityDetector)).subscribe(wt=>{this._setOrigin(wt,!0)}))}_removeGlobalListeners($){const ue=$.rootNode;if(this._rootNodeFocusListenerCount.has(ue)){const Ae=this._rootNodeFocusListenerCount.get(ue);Ae>1?this._rootNodeFocusListenerCount.set(ue,Ae-1):(ue.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(ue))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,ue,Ae){this._setClasses($,ue),this._emitOrigin(Ae.subject,ue),this._lastFocusOrigin=ue}_getClosestElementsInfo($){const ue=[];return this._elementInfo.forEach((Ae,wt)=>{(wt===$||Ae.checkChildren&&wt.contains($))&&ue.push([wt,Ae])}),ue}}return L.\u0275fac=function($){return new($||L)(s.LFG(s.R0b),s.LFG(ee.t4),s.LFG(x),s.LFG(a.K0,8),s.LFG(He,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const V="cdk-high-contrast-black-on-white",Be="cdk-high-contrast-white-on-black",nt="cdk-high-contrast-active";let ce=(()=>{class L{constructor($,ue){this._platform=$,this._document=ue}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const ue=this._document.defaultView||window,Ae=ue&&ue.getComputedStyle?ue.getComputedStyle($):null,wt=(Ae&&Ae.backgroundColor||"").replace(/ /g,"");switch($.remove(),wt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(nt),$.remove(V),$.remove(Be),this._hasCheckedHighContrastMode=!0;const ue=this.getHighContrastMode();1===ue?($.add(nt),$.add(V)):2===ue&&($.add(nt),$.add(Be))}}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Ne=(()=>{class L{constructor($){$._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function($){return new($||L)(s.LFG(ce))},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[ee.ud,ye.Q8]]}),L})()},226:(yt,be,p)=>{p.d(be,{vT:()=>R,Is:()=>W});var a=p(5e3),s=p(9808);const G=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function oe(){return(0,a.f3M)(s.K0)}}),q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let W=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const Ye=ee.documentElement?ee.documentElement.dir:null;this.value=function _(H){const B=(null==H?void 0:H.toLowerCase())||"";return"auto"===B&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?q.test(navigator.language)?"rtl":"ltr":"rtl"===B?"rtl":"ltr"}((ee.body?ee.body.dir:null)||Ye||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(G,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=a.oAB({type:H}),H.\u0275inj=a.cJS({}),H})()},3191:(yt,be,p)=>{p.d(be,{t6:()=>oe,Eq:()=>q,Ig:()=>s,HM:()=>_,fI:()=>W,su:()=>G});var a=p(5e3);function s(R){return null!=R&&"false"!=`${R}`}function G(R,H=0){return oe(R)?Number(R):H}function oe(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function q(R){return Array.isArray(R)?R:[R]}function _(R){return null==R?"":"string"==typeof R?R:`${R}px`}function W(R){return R instanceof a.SBq?R.nativeElement:R}},1159:(yt,be,p)=>{p.d(be,{zL:()=>I,ZH:()=>s,jx:()=>W,JH:()=>zt,K5:()=>q,hY:()=>B,oh:()=>_e,b2:()=>se,MW:()=>Ge,SV:()=>Je,JU:()=>_,L_:()=>ee,Mf:()=>G,LH:()=>vt,Vb:()=>k});const s=8,G=9,q=13,_=16,W=17,I=18,B=27,ee=32,_e=37,vt=38,Je=39,zt=40,Ge=91,se=224;function k(Ee,...st){return st.length?st.some(Ct=>Ee[Ct]):Ee.altKey||Ee.shiftKey||Ee.ctrlKey||Ee.metaKey}},5113:(yt,be,p)=>{p.d(be,{Yg:()=>zt,u3:()=>Ie,xu:()=>Ye,vx:()=>_e});var a=p(5e3),s=p(3191),G=p(8929),oe=p(6053),q=p(1961),_=p(6498),W=p(2986),I=p(1307),R=p(13),H=p(4850),B=p(1059),ee=p(7625),ye=p(925);let Ye=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})();const Fe=new Set;let ze,_e=(()=>{class $e{constructor(Se){this._platform=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Je}matchMedia(Se){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt($e){if(!Fe.has($e))try{ze||(ze=document.createElement("style"),ze.setAttribute("type","text/css"),document.head.appendChild(ze)),ze.sheet&&(ze.sheet.insertRule(`@media ${$e} {body{ }}`,0),Fe.add($e))}catch(et){console.error(et)}}(Se),this._matchMedia(Se)}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(ye.t4))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function Je($e){return{matches:"all"===$e||""===$e,media:$e,addListener:()=>{},removeListener:()=>{}}}let zt=(()=>{class $e{constructor(Se,Xe){this._mediaMatcher=Se,this._zone=Xe,this._queries=new Map,this._destroySubject=new G.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Se){return ut((0,s.Eq)(Se)).some(J=>this._registerQuery(J).mql.matches)}observe(Se){const J=ut((0,s.Eq)(Se)).map(he=>this._registerQuery(he).observable);let fe=(0,oe.aj)(J);return fe=(0,q.z)(fe.pipe((0,W.q)(1)),fe.pipe((0,I.T)(1),(0,R.b)(0))),fe.pipe((0,H.U)(he=>{const te={matches:!1,breakpoints:{}};return he.forEach(({matches:le,query:ie})=>{te.matches=te.matches||le,te.breakpoints[ie]=le}),te}))}_registerQuery(Se){if(this._queries.has(Se))return this._queries.get(Se);const Xe=this._mediaMatcher.matchMedia(Se),fe={observable:new _.y(he=>{const te=le=>this._zone.run(()=>he.next(le));return Xe.addListener(te),()=>{Xe.removeListener(te)}}).pipe((0,B.O)(Xe),(0,H.U)(({matches:he})=>({query:Se,matches:he})),(0,ee.R)(this._destroySubject)),mql:Xe};return this._queries.set(Se,fe),fe}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(_e),a.LFG(a.R0b))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function ut($e){return $e.map(et=>et.split(",")).reduce((et,Se)=>et.concat(Se)).map(et=>et.trim())}const Ie={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(yt,be,p)=>{p.d(be,{Q8:()=>q});var a=p(5e3);let s=(()=>{class _{create(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}return _.\u0275fac=function(I){return new(I||_)},_.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=a.oAB({type:_}),_.\u0275inj=a.cJS({providers:[s]}),_})()},2845:(yt,be,p)=>{p.d(be,{pI:()=>Cn,xu:()=>_n,tR:()=>fe,aV:()=>vn,X_:()=>J,Vs:()=>Et,U8:()=>cn,Iu:()=>Ue});var a=p(3393),s=p(9808),G=p(5e3),oe=p(3191),q=p(925),_=p(226),W=p(7429),I=p(8929),R=p(2654),H=p(6787),B=p(3489);class ye{constructor(x,z){this.predicate=x,this.inclusive=z}call(x,z){return z.subscribe(new Ye(x,this.predicate,this.inclusive))}}class Ye extends B.L{constructor(x,z,P){super(x),this.predicate=z,this.inclusive=P,this.index=0}_next(x){const z=this.destination;let P;try{P=this.predicate(x,this.index++)}catch(pe){return void z.error(pe)}this.nextOrComplete(x,P)}nextOrComplete(x,z){const P=this.destination;Boolean(z)?P.next(x):(this.inclusive&&P.next(x),P.complete())}}var Fe=p(2986),ze=p(7625),_e=p(1159);const vt=(0,q.Mq)();class Je{constructor(x,z){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=z}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,oe.HM)(-this._previousScrollPosition.left),x.style.top=(0,oe.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,P=x.style,pe=this._document.body.style,j=P.scrollBehavior||"",me=pe.scrollBehavior||"";this._isEnabled=!1,P.left=this._previousHTMLStyles.left,P.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),vt&&(P.scrollBehavior=pe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vt&&(P.scrollBehavior=j,pe.scrollBehavior=me)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const z=this._document.body,P=this._viewportRuler.getViewportSize();return z.scrollHeight>P.height||z.scrollWidth>P.width}}class ut{constructor(x,z,P,pe){this._scrollDispatcher=x,this._ngZone=z,this._viewportRuler=P,this._config=pe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const z=this._viewportRuler.getViewportScrollPosition().top;Math.abs(z-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ie{enable(){}disable(){}attach(){}}function $e(qe,x){return x.some(z=>qe.bottomz.bottom||qe.rightz.right)}function et(qe,x){return x.some(z=>qe.topz.bottom||qe.leftz.right)}class Se{constructor(x,z,P,pe){this._scrollDispatcher=x,this._viewportRuler=z,this._ngZone=P,this._config=pe,this._scrollSubscription=null}attach(x){this._overlayRef=x}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const z=this._overlayRef.overlayElement.getBoundingClientRect(),{width:P,height:pe}=this._viewportRuler.getViewportSize();$e(z,[{width:P,height:pe,bottom:pe,right:P,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Xe=(()=>{class qe{constructor(z,P,pe,j){this._scrollDispatcher=z,this._viewportRuler=P,this._ngZone=pe,this.noop=()=>new Ie,this.close=me=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,me),this.block=()=>new Je(this._viewportRuler,this._document),this.reposition=me=>new Se(this._scrollDispatcher,this._viewportRuler,this._ngZone,me),this._document=j}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.mF),G.LFG(a.rL),G.LFG(G.R0b),G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})();class J{constructor(x){if(this.scrollStrategy=new Ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const z=Object.keys(x);for(const P of z)void 0!==x[P]&&(this[P]=x[P])}}}class fe{constructor(x,z,P,pe,j){this.offsetX=P,this.offsetY=pe,this.panelClass=j,this.originX=x.originX,this.originY=x.originY,this.overlayX=z.overlayX,this.overlayY=z.overlayY}}class te{constructor(x,z){this.connectionPair=x,this.scrollableViewProperties=z}}class Ue{constructor(x,z,P,pe,j,me,He,Ge,Le){this._portalOutlet=x,this._host=z,this._pane=P,this._config=pe,this._ngZone=j,this._keyboardDispatcher=me,this._document=He,this._location=Ge,this._outsideClickDispatcher=Le,this._backdropElement=null,this._backdropClick=new I.xQ,this._attachments=new I.xQ,this._detachments=new I.xQ,this._locationChanges=R.w.EMPTY,this._backdropClickHandler=Me=>this._backdropClick.next(Me),this._keydownEvents=new I.xQ,this._outsidePointerEvents=new I.xQ,pe.scrollStrategy&&(this._scrollStrategy=pe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=pe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let z=this._portalOutlet.attach(x);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Fe.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),z}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){var x;const z=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(x=this._host)||void 0===x||x.remove(),this._previousHostParent=this._pane=this._host=null,z&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,oe.HM)(this._config.width),x.height=(0,oe.HM)(this._config.height),x.minWidth=(0,oe.HM)(this._config.minWidth),x.minHeight=(0,oe.HM)(this._config.minHeight),x.maxWidth=(0,oe.HM)(this._config.maxWidth),x.maxHeight=(0,oe.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let z;const P=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",P),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(z)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",P)}),x.style.pointerEvents="none",z=this._ngZone.runOutsideAngular(()=>setTimeout(P,500))}_toggleClasses(x,z,P){const pe=(0,oe.Eq)(z||[]).filter(j=>!!j);pe.length&&(P?x.classList.add(...pe):x.classList.remove(...pe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,ze.R)((0,H.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.remove(),this._backdropElement===x&&(this._backdropElement=null))}}let je=(()=>{class qe{constructor(z,P){this._platform=P,this._document=z}ngOnDestroy(){var z;null===(z=this._containerElement)||void 0===z||z.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const z="cdk-overlay-container";if(this._platform.isBrowser||(0,q.Oy)()){const pe=this._document.querySelectorAll(`.${z}[platform="server"], .${z}[platform="test"]`);for(let j=0;j{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._originRect,z=this._overlayRect,P=this._viewportRect,pe=this._containerRect,j=[];let me;for(let He of this._preferredPositions){let Ge=this._getOriginPoint(x,pe,He),Le=this._getOverlayPoint(Ge,z,He),Me=this._getOverlayFit(Le,z,P,He);if(Me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(He,Ge);this._canFitWithFlexibleDimensions(Me,Le,P)?j.push({position:He,origin:Ge,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Ge,He)}):(!me||me.overlayFit.visibleAreaGe&&(Ge=Me,He=Le)}return this._isPushed=!1,void this._applyPosition(He.position,He.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(me.position,me.originPoint);this._applyPosition(me.position,me.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._lastPosition||this._preferredPositions[0],z=this._getOriginPoint(this._originRect,this._containerRect,x);this._applyPosition(x,z)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,z,P){let pe,j;if("center"==P.originX)pe=x.left+x.width/2;else{const me=this._isRtl()?x.right:x.left,He=this._isRtl()?x.left:x.right;pe="start"==P.originX?me:He}return z.left<0&&(pe-=z.left),j="center"==P.originY?x.top+x.height/2:"top"==P.originY?x.top:x.bottom,z.top<0&&(j-=z.top),{x:pe,y:j}}_getOverlayPoint(x,z,P){let pe,j;return pe="center"==P.overlayX?-z.width/2:"start"===P.overlayX?this._isRtl()?-z.width:0:this._isRtl()?0:-z.width,j="center"==P.overlayY?-z.height/2:"top"==P.overlayY?0:-z.height,{x:x.x+pe,y:x.y+j}}_getOverlayFit(x,z,P,pe){const j=dt(z);let{x:me,y:He}=x,Ge=this._getOffset(pe,"x"),Le=this._getOffset(pe,"y");Ge&&(me+=Ge),Le&&(He+=Le);let Be=0-He,nt=He+j.height-P.height,ce=this._subtractOverflows(j.width,0-me,me+j.width-P.width),Ne=this._subtractOverflows(j.height,Be,nt),L=ce*Ne;return{visibleArea:L,isCompletelyWithinViewport:j.width*j.height===L,fitsInViewportVertically:Ne===j.height,fitsInViewportHorizontally:ce==j.width}}_canFitWithFlexibleDimensions(x,z,P){if(this._hasFlexibleDimensions){const pe=P.bottom-z.y,j=P.right-z.x,me=Qe(this._overlayRef.getConfig().minHeight),He=Qe(this._overlayRef.getConfig().minWidth),Le=x.fitsInViewportHorizontally||null!=He&&He<=j;return(x.fitsInViewportVertically||null!=me&&me<=pe)&&Le}return!1}_pushOverlayOnScreen(x,z,P){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const pe=dt(z),j=this._viewportRect,me=Math.max(x.x+pe.width-j.width,0),He=Math.max(x.y+pe.height-j.height,0),Ge=Math.max(j.top-P.top-x.y,0),Le=Math.max(j.left-P.left-x.x,0);let Me=0,V=0;return Me=pe.width<=j.width?Le||-me:x.xce&&!this._isInitialRender&&!this._growAfterOpen&&(me=x.y-ce/2)}if("end"===z.overlayX&&!pe||"start"===z.overlayX&&pe)Be=P.width-x.x+this._viewportMargin,Me=x.x-this._viewportMargin;else if("start"===z.overlayX&&!pe||"end"===z.overlayX&&pe)V=x.x,Me=P.right-x.x;else{const nt=Math.min(P.right-x.x+P.left,x.x),ce=this._lastBoundingBoxSize.width;Me=2*nt,V=x.x-nt,Me>ce&&!this._isInitialRender&&!this._growAfterOpen&&(V=x.x-ce/2)}return{top:me,left:V,bottom:He,right:Be,width:Me,height:j}}_setBoundingBoxStyles(x,z){const P=this._calculateBoundingBoxRect(x,z);!this._isInitialRender&&!this._growAfterOpen&&(P.height=Math.min(P.height,this._lastBoundingBoxSize.height),P.width=Math.min(P.width,this._lastBoundingBoxSize.width));const pe={};if(this._hasExactPosition())pe.top=pe.left="0",pe.bottom=pe.right=pe.maxHeight=pe.maxWidth="",pe.width=pe.height="100%";else{const j=this._overlayRef.getConfig().maxHeight,me=this._overlayRef.getConfig().maxWidth;pe.height=(0,oe.HM)(P.height),pe.top=(0,oe.HM)(P.top),pe.bottom=(0,oe.HM)(P.bottom),pe.width=(0,oe.HM)(P.width),pe.left=(0,oe.HM)(P.left),pe.right=(0,oe.HM)(P.right),pe.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",pe.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",j&&(pe.maxHeight=(0,oe.HM)(j)),me&&(pe.maxWidth=(0,oe.HM)(me))}this._lastBoundingBoxSize=P,mt(this._boundingBox.style,pe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,z){const P={},pe=this._hasExactPosition(),j=this._hasFlexibleDimensions,me=this._overlayRef.getConfig();if(pe){const Me=this._viewportRuler.getViewportScrollPosition();mt(P,this._getExactOverlayY(z,x,Me)),mt(P,this._getExactOverlayX(z,x,Me))}else P.position="static";let He="",Ge=this._getOffset(z,"x"),Le=this._getOffset(z,"y");Ge&&(He+=`translateX(${Ge}px) `),Le&&(He+=`translateY(${Le}px)`),P.transform=He.trim(),me.maxHeight&&(pe?P.maxHeight=(0,oe.HM)(me.maxHeight):j&&(P.maxHeight="")),me.maxWidth&&(pe?P.maxWidth=(0,oe.HM)(me.maxWidth):j&&(P.maxWidth="")),mt(this._pane.style,P)}_getExactOverlayY(x,z,P){let pe={top:"",bottom:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),"bottom"===x.overlayY?pe.bottom=this._document.documentElement.clientHeight-(j.y+this._overlayRect.height)+"px":pe.top=(0,oe.HM)(j.y),pe}_getExactOverlayX(x,z,P){let me,pe={left:"",right:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),me=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===me?pe.right=this._document.documentElement.clientWidth-(j.x+this._overlayRect.width)+"px":pe.left=(0,oe.HM)(j.x),pe}_getScrollVisibility(){const x=this._getOriginRect(),z=this._pane.getBoundingClientRect(),P=this._scrollables.map(pe=>pe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(x,P),isOriginOutsideView:$e(x,P),isOverlayClipped:et(z,P),isOverlayOutsideView:$e(z,P)}}_subtractOverflows(x,...z){return z.reduce((P,pe)=>P-Math.max(pe,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,z=this._document.documentElement.clientHeight,P=this._viewportRuler.getViewportScrollPosition();return{top:P.top+this._viewportMargin,left:P.left+this._viewportMargin,right:P.left+x-this._viewportMargin,bottom:P.top+z-this._viewportMargin,width:x-2*this._viewportMargin,height:z-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,z){return"x"===z?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,oe.Eq)(x).forEach(z=>{""!==z&&-1===this._appliedPanelClasses.indexOf(z)&&(this._appliedPanelClasses.push(z),this._pane.classList.add(z))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof G.SBq)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const z=x.width||0,P=x.height||0;return{top:x.y,bottom:x.y+P,left:x.x,right:x.x+z,height:P,width:z}}}function mt(qe,x){for(let z in x)x.hasOwnProperty(z)&&(qe[z]=x[z]);return qe}function Qe(qe){if("number"!=typeof qe&&null!=qe){const[x,z]=qe.split(ke);return z&&"px"!==z?null:parseFloat(x)}return qe||null}function dt(qe){return{top:Math.floor(qe.top),right:Math.floor(qe.right),bottom:Math.floor(qe.bottom),left:Math.floor(qe.left),width:Math.floor(qe.width),height:Math.floor(qe.height)}}const _t="cdk-global-overlay-wrapper";class it{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const z=x.getConfig();this._overlayRef=x,this._width&&!z.width&&x.updateSize({width:this._width}),this._height&&!z.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(_t),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement.style,P=this._overlayRef.getConfig(),{width:pe,height:j,maxWidth:me,maxHeight:He}=P,Ge=!("100%"!==pe&&"100vw"!==pe||me&&"100%"!==me&&"100vw"!==me),Le=!("100%"!==j&&"100vh"!==j||He&&"100%"!==He&&"100vh"!==He);x.position=this._cssPosition,x.marginLeft=Ge?"0":this._leftOffset,x.marginTop=Le?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,Ge?z.justifyContent="flex-start":"center"===this._justifyContent?z.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?z.justifyContent="flex-end":"flex-end"===this._justifyContent&&(z.justifyContent="flex-start"):z.justifyContent=this._justifyContent,z.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement,P=z.style;z.classList.remove(_t),P.justifyContent=P.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class qe{constructor(z,P,pe,j){this._viewportRuler=z,this._document=P,this._platform=pe,this._overlayContainer=j}global(){return new it}flexibleConnectedTo(z){return new ve(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.rL),G.LFG(s.K0),G.LFG(q.t4),G.LFG(je))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ot=(()=>{class qe{constructor(z){this._attachedOverlays=[],this._document=z}ngOnDestroy(){this.detach()}add(z){this.remove(z),this._attachedOverlays.push(z)}remove(z){const P=this._attachedOverlays.indexOf(z);P>-1&&this._attachedOverlays.splice(P,1),0===this._attachedOverlays.length&&this.detach()}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Et=(()=>{class qe extends ot{constructor(z){super(z),this._keydownListener=P=>{const pe=this._attachedOverlays;for(let j=pe.length-1;j>-1;j--)if(pe[j]._keydownEvents.observers.length>0){pe[j]._keydownEvents.next(P);break}}}add(z){super.add(z),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Zt=(()=>{class qe extends ot{constructor(z,P){super(z),this._platform=P,this._cursorStyleIsSet=!1,this._pointerDownListener=pe=>{this._pointerDownEventTarget=(0,q.sA)(pe)},this._clickListener=pe=>{const j=(0,q.sA)(pe),me="click"===pe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:j;this._pointerDownEventTarget=null;const He=this._attachedOverlays.slice();for(let Ge=He.length-1;Ge>-1;Ge--){const Le=He[Ge];if(!(Le._outsidePointerEvents.observers.length<1)&&Le.hasAttached()){if(Le.overlayElement.contains(j)||Le.overlayElement.contains(me))break;Le._outsidePointerEvents.next(pe)}}}}add(z){if(super.add(z),!this._isAttached){const P=this._document.body;P.addEventListener("pointerdown",this._pointerDownListener,!0),P.addEventListener("click",this._clickListener,!0),P.addEventListener("auxclick",this._clickListener,!0),P.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=P.style.cursor,P.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const z=this._document.body;z.removeEventListener("pointerdown",this._pointerDownListener,!0),z.removeEventListener("click",this._clickListener,!0),z.removeEventListener("auxclick",this._clickListener,!0),z.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(z.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0),G.LFG(q.t4))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),mn=0,vn=(()=>{class qe{constructor(z,P,pe,j,me,He,Ge,Le,Me,V,Be){this.scrollStrategies=z,this._overlayContainer=P,this._componentFactoryResolver=pe,this._positionBuilder=j,this._keyboardDispatcher=me,this._injector=He,this._ngZone=Ge,this._document=Le,this._directionality=Me,this._location=V,this._outsideClickDispatcher=Be}create(z){const P=this._createHostElement(),pe=this._createPaneElement(P),j=this._createPortalOutlet(pe),me=new J(z);return me.direction=me.direction||this._directionality.value,new Ue(j,P,pe,me,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(z){const P=this._document.createElement("div");return P.id="cdk-overlay-"+mn++,P.classList.add("cdk-overlay-pane"),z.appendChild(P),P}_createHostElement(){const z=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(z),z}_createPortalOutlet(z){return this._appRef||(this._appRef=this._injector.get(G.z2F)),new W.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(Xe),G.LFG(je),G.LFG(G._Vd),G.LFG(St),G.LFG(Et),G.LFG(G.zs3),G.LFG(G.R0b),G.LFG(s.K0),G.LFG(_.Is),G.LFG(s.Ye),G.LFG(Zt))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Ut=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],un=new G.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class qe{constructor(z){this.elementRef=z}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(G.SBq))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),qe})(),Cn=(()=>{class qe{constructor(z,P,pe,j,me){this._overlay=z,this._dir=me,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w.EMPTY,this._attachSubscription=R.w.EMPTY,this._detachSubscription=R.w.EMPTY,this._positionSubscription=R.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new G.vpe,this.positionChange=new G.vpe,this.attach=new G.vpe,this.detach=new G.vpe,this.overlayKeydown=new G.vpe,this.overlayOutsideClick=new G.vpe,this._templatePortal=new W.UE(P,pe),this._scrollStrategyFactory=j,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(z){this._offsetX=z,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(z){this._offsetY=z,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,oe.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,oe.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,oe.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,oe.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,oe.Ig)(z)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(z){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),z.origin&&this.open&&this._position.apply()),z.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ut);const z=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=z.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=z.detachments().subscribe(()=>this.detach.emit()),z.keydownEvents().subscribe(P=>{this.overlayKeydown.next(P),P.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(P)&&(P.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(P=>{this.overlayOutsideClick.next(P)})}_buildConfig(){const z=this._position=this.positionStrategy||this._createPositionStrategy(),P=new J({direction:this._dir,positionStrategy:z,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(P.width=this.width),(this.height||0===this.height)&&(P.height=this.height),(this.minWidth||0===this.minWidth)&&(P.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(P.minHeight=this.minHeight),this.backdropClass&&(P.backdropClass=this.backdropClass),this.panelClass&&(P.panelClass=this.panelClass),P}_updatePositionStrategy(z){const P=this.positions.map(pe=>({originX:pe.originX,originY:pe.originY,overlayX:pe.overlayX,overlayY:pe.overlayY,offsetX:pe.offsetX||this.offsetX,offsetY:pe.offsetY||this.offsetY,panelClass:pe.panelClass||void 0}));return z.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(P).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const z=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(z),z}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _n?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(z=>{this.backdropClick.emit(z)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ee(qe,x=!1){return z=>z.lift(new ye(qe,x))}(()=>this.positionChange.observers.length>0)).subscribe(z=>{this.positionChange.emit(z),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(vn),G.Y36(G.Rgc),G.Y36(G.s_b),G.Y36(un),G.Y36(_.Is,8))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[G.TTD]}),qe})();const Sn={provide:un,deps:[vn],useFactory:function Dt(qe){return()=>qe.scrollStrategies.reposition()}};let cn=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275mod=G.oAB({type:qe}),qe.\u0275inj=G.cJS({providers:[vn,Sn],imports:[[_.vT,W.eL,a.Cl],a.Cl]}),qe})()},925:(yt,be,p)=>{p.d(be,{t4:()=>oe,ud:()=>q,sA:()=>zt,kV:()=>vt,Oy:()=>ut,_i:()=>Fe,i$:()=>B,Mq:()=>Ye});var a=p(5e3),s=p(9808);let G;try{G="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ie){G=!1}let R,ee,ye,ze,oe=(()=>{class Ie{constructor(et){this._platformId=et,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!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&&!G)&&"undefined"!=typeof CSS&&!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}}return Ie.\u0275fac=function(et){return new(et||Ie)(a.LFG(a.Lbi))},Ie.\u0275prov=a.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),q=(()=>{class Ie{}return Ie.\u0275fac=function(et){return new(et||Ie)},Ie.\u0275mod=a.oAB({type:Ie}),Ie.\u0275inj=a.cJS({}),Ie})();function B(Ie){return function H(){if(null==R&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?Ie:!!Ie.capture}function Ye(){if(null==ye){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ye=!1,ye;if("scrollBehavior"in document.documentElement.style)ye=!0;else{const Ie=Element.prototype.scrollTo;ye=!!Ie&&!/\{\s*\[native code\]\s*\}/.test(Ie.toString())}}return ye}function Fe(){if("object"!=typeof document||!document)return 0;if(null==ee){const Ie=document.createElement("div"),$e=Ie.style;Ie.dir="rtl",$e.width="1px",$e.overflow="auto",$e.visibility="hidden",$e.pointerEvents="none",$e.position="absolute";const et=document.createElement("div"),Se=et.style;Se.width="2px",Se.height="1px",Ie.appendChild(et),document.body.appendChild(Ie),ee=0,0===Ie.scrollLeft&&(Ie.scrollLeft=1,ee=0===Ie.scrollLeft?1:2),Ie.remove()}return ee}function vt(Ie){if(function _e(){if(null==ze){const Ie="undefined"!=typeof document?document.head:null;ze=!(!Ie||!Ie.createShadowRoot&&!Ie.attachShadow)}return ze}()){const $e=Ie.getRootNode?Ie.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&$e instanceof ShadowRoot)return $e}return null}function zt(Ie){return Ie.composedPath?Ie.composedPath()[0]:Ie.target}function ut(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(yt,be,p)=>{p.d(be,{en:()=>ye,Pl:()=>Je,C5:()=>H,u0:()=>Fe,eL:()=>ut,UE:()=>B});var a=p(5e3),s=p(9808);class R{attach(et){return this._attachedHost=et,et.attach(this)}detach(){let et=this._attachedHost;null!=et&&(this._attachedHost=null,et.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class H extends R{constructor(et,Se,Xe,J){super(),this.component=et,this.viewContainerRef=Se,this.injector=Xe,this.componentFactoryResolver=J}}class B extends R{constructor(et,Se,Xe){super(),this.templateRef=et,this.viewContainerRef=Se,this.context=Xe}get origin(){return this.templateRef.elementRef}attach(et,Se=this.context){return this.context=Se,super.attach(et)}detach(){return this.context=void 0,super.detach()}}class ee extends R{constructor(et){super(),this.element=et instanceof a.SBq?et.nativeElement:et}}class ye{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(et){return et instanceof H?(this._attachedPortal=et,this.attachComponentPortal(et)):et instanceof B?(this._attachedPortal=et,this.attachTemplatePortal(et)):this.attachDomPortal&&et instanceof ee?(this._attachedPortal=et,this.attachDomPortal(et)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(et){this._disposeFn=et}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fe extends ye{constructor(et,Se,Xe,J,fe){super(),this.outletElement=et,this._componentFactoryResolver=Se,this._appRef=Xe,this._defaultInjector=J,this.attachDomPortal=he=>{const te=he.element,le=this._document.createComment("dom-portal");te.parentNode.insertBefore(le,te),this.outletElement.appendChild(te),this._attachedPortal=he,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(te,le)})},this._document=fe}attachComponentPortal(et){const Xe=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component);let J;return et.viewContainerRef?(J=et.viewContainerRef.createComponent(Xe,et.viewContainerRef.length,et.injector||et.viewContainerRef.injector),this.setDisposeFn(()=>J.destroy())):(J=Xe.create(et.injector||this._defaultInjector),this._appRef.attachView(J.hostView),this.setDisposeFn(()=>{this._appRef.detachView(J.hostView),J.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(J)),this._attachedPortal=et,J}attachTemplatePortal(et){let Se=et.viewContainerRef,Xe=Se.createEmbeddedView(et.templateRef,et.context);return Xe.rootNodes.forEach(J=>this.outletElement.appendChild(J)),Xe.detectChanges(),this.setDisposeFn(()=>{let J=Se.indexOf(Xe);-1!==J&&Se.remove(J)}),this._attachedPortal=et,Xe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}let Je=(()=>{class $e extends ye{constructor(Se,Xe,J){super(),this._componentFactoryResolver=Se,this._viewContainerRef=Xe,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=fe=>{const he=fe.element,te=this._document.createComment("dom-portal");fe.setAttachedHost(this),he.parentNode.insertBefore(te,he),this._getRootNode().appendChild(he),this._attachedPortal=fe,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(he,te)})},this._document=J}get portal(){return this._attachedPortal}set portal(Se){this.hasAttached()&&!Se&&!this._isInitialized||(this.hasAttached()&&super.detach(),Se&&super.attach(Se),this._attachedPortal=Se||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Se){Se.setAttachedHost(this);const Xe=null!=Se.viewContainerRef?Se.viewContainerRef:this._viewContainerRef,fe=(Se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Se.component),he=Xe.createComponent(fe,Xe.length,Se.injector||Xe.injector);return Xe!==this._viewContainerRef&&this._getRootNode().appendChild(he.hostView.rootNodes[0]),super.setDisposeFn(()=>he.destroy()),this._attachedPortal=Se,this._attachedRef=he,this.attached.emit(he),he}attachTemplatePortal(Se){Se.setAttachedHost(this);const Xe=this._viewContainerRef.createEmbeddedView(Se.templateRef,Se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Se,this._attachedRef=Xe,this.attached.emit(Xe),Xe}_getRootNode(){const Se=this._viewContainerRef.element.nativeElement;return Se.nodeType===Se.ELEMENT_NODE?Se:Se.parentNode}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(s.K0))},$e.\u0275dir=a.lG2({type:$e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),$e})(),ut=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})()},3393:(yt,be,p)=>{p.d(be,{xd:()=>Dt,x0:()=>me,N7:()=>pe,mF:()=>cn,Cl:()=>Ge,rL:()=>x});var a=p(3191),s=p(5e3),G=p(6686),q=p(2268);const W=new class _ extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=requestAnimationFrame(()=>Me.flush(null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(cancelAnimationFrame(V),Me.scheduled=void 0)}});let R=1;const H=Promise.resolve(),B={};function ee(Le){return Le in B&&(delete B[Le],!0)}const ye={setImmediate(Le){const Me=R++;return B[Me]=!0,H.then(()=>ee(Me)&&Le()),Me},clearImmediate(Le){ee(Le)}},_e=new class ze extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=ye.setImmediate(Me.flush.bind(Me,null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(ye.clearImmediate(V),Me.scheduled=void 0)}});var Je=p(6498);function zt(Le){return!!Le&&(Le instanceof Je.y||"function"==typeof Le.lift&&"function"==typeof Le.subscribe)}var ut=p(8929),Ie=p(1086),$e=p(3753),et=p(2654),Se=p(3489);class J{call(Me,V){return V.subscribe(new fe(Me))}}class fe extends Se.L{constructor(Me){super(Me),this.hasPrev=!1}_next(Me){let V;this.hasPrev?V=[this.prev,Me]:this.hasPrev=!0,this.prev=Me,V&&this.destination.next(V)}}var he=p(5778),te=p(7138),le=p(2198),ie=p(7625),Ue=p(1059),je=p(7545),tt=p(5154),ke=p(9808),ve=p(925),mt=p(226);class _t extends class Qe{}{constructor(Me){super(),this._data=Me}connect(){return zt(this._data)?this._data:(0,Ie.of)(this._data)}disconnect(){}}class St{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Me,V,Be,nt,ce){Me.forEachOperation((Ne,L,E)=>{let $,ue;null==Ne.previousIndex?($=this._insertView(()=>Be(Ne,L,E),E,V,nt(Ne)),ue=$?1:0):null==E?(this._detachAndCacheView(L,V),ue=3):($=this._moveView(L,E,V,nt(Ne)),ue=2),ce&&ce({context:null==$?void 0:$.context,operation:ue,record:Ne})})}detach(){for(const Me of this._viewCache)Me.destroy();this._viewCache=[]}_insertView(Me,V,Be,nt){const ce=this._insertViewFromCache(V,Be);if(ce)return void(ce.context.$implicit=nt);const Ne=Me();return Be.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index)}_detachAndCacheView(Me,V){const Be=V.detach(Me);this._maybeCacheView(Be,V)}_moveView(Me,V,Be,nt){const ce=Be.get(Me);return Be.move(ce,V),ce.context.$implicit=nt,ce}_maybeCacheView(Me,V){if(this._viewCache.length0?ce/this._itemSize:0;if(V.end>nt){const E=Math.ceil(Be/this._itemSize),$=Math.max(0,Math.min(Ne,nt-E));Ne!=$&&(Ne=$,ce=$*this._itemSize,V.start=Math.floor(Ne)),V.end=Math.max(0,Math.min(nt,V.start+E))}const L=ce-V.start*this._itemSize;if(L0&&(V.end=Math.min(nt,V.end+$),V.start=Math.max(0,Math.floor(Ne-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(V),this._viewport.setRenderedContentOffset(this._itemSize*V.start),this._scrolledIndexChange.next(Math.floor(Ne))}}function Cn(Le){return Le._scrollStrategy}let Dt=(()=>{class Le{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _n(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(V){this._itemSize=(0,a.su)(V)}get minBufferPx(){return this._minBufferPx}set minBufferPx(V){this._minBufferPx=(0,a.su)(V)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(V){this._maxBufferPx=(0,a.su)(V)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:un,useFactory:Cn,deps:[(0,s.Gpc)(()=>Le)]}]),s.TTD]}),Le})(),cn=(()=>{class Le{constructor(V,Be,nt){this._ngZone=V,this._platform=Be,this._scrolled=new ut.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nt}register(V){this.scrollContainers.has(V)||this.scrollContainers.set(V,V.elementScrolled().subscribe(()=>this._scrolled.next(V)))}deregister(V){const Be=this.scrollContainers.get(V);Be&&(Be.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new Je.y(Be=>{this._globalSubscription||this._addGlobalListener();const nt=V>0?this._scrolled.pipe((0,te.e)(V)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ie.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(V,Be){const nt=this.getAncestorScrollContainers(V);return this.scrolled(Be).pipe((0,le.h)(ce=>!ce||nt.indexOf(ce)>-1))}getAncestorScrollContainers(V){const Be=[];return this.scrollContainers.forEach((nt,ce)=>{this._scrollableContainsElement(ce,V)&&Be.push(ce)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,Be){let nt=(0,a.fI)(Be),ce=V.getElementRef().nativeElement;do{if(nt==ce)return!0}while(nt=nt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,$e.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(s.R0b),s.LFG(ve.t4),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})(),Mn=(()=>{class Le{constructor(V,Be,nt,ce){this.elementRef=V,this.scrollDispatcher=Be,this.ngZone=nt,this.dir=ce,this._destroyed=new ut.xQ,this._elementScrolled=new Je.y(Ne=>this.ngZone.runOutsideAngular(()=>(0,$e.R)(this.elementRef.nativeElement,"scroll").pipe((0,ie.R)(this._destroyed)).subscribe(Ne)))}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(V){const Be=this.elementRef.nativeElement,nt=this.dir&&"rtl"==this.dir.value;null==V.left&&(V.left=nt?V.end:V.start),null==V.right&&(V.right=nt?V.start:V.end),null!=V.bottom&&(V.top=Be.scrollHeight-Be.clientHeight-V.bottom),nt&&0!=(0,ve._i)()?(null!=V.left&&(V.right=Be.scrollWidth-Be.clientWidth-V.left),2==(0,ve._i)()?V.left=V.right:1==(0,ve._i)()&&(V.left=V.right?-V.right:V.right)):null!=V.right&&(V.left=Be.scrollWidth-Be.clientWidth-V.right),this._applyScrollToOptions(V)}_applyScrollToOptions(V){const Be=this.elementRef.nativeElement;(0,ve.Mq)()?Be.scrollTo(V):(null!=V.top&&(Be.scrollTop=V.top),null!=V.left&&(Be.scrollLeft=V.left))}measureScrollOffset(V){const Be="left",ce=this.elementRef.nativeElement;if("top"==V)return ce.scrollTop;if("bottom"==V)return ce.scrollHeight-ce.clientHeight-ce.scrollTop;const Ne=this.dir&&"rtl"==this.dir.value;return"start"==V?V=Ne?"right":Be:"end"==V&&(V=Ne?Be:"right"),Ne&&2==(0,ve._i)()?V==Be?ce.scrollWidth-ce.clientWidth-ce.scrollLeft:ce.scrollLeft:Ne&&1==(0,ve._i)()?V==Be?ce.scrollLeft+ce.scrollWidth-ce.clientWidth:-ce.scrollLeft:V==Be?ce.scrollLeft:ce.scrollWidth-ce.clientWidth-ce.scrollLeft}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(cn),s.Y36(s.R0b),s.Y36(mt.Is,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Le})(),x=(()=>{class Le{constructor(V,Be,nt){this._platform=V,this._change=new ut.xQ,this._changeListener=ce=>{this._change.next(ce)},this._document=nt,Be.runOutsideAngular(()=>{if(V.isBrowser){const ce=this._getWindow();ce.addEventListener("resize",this._changeListener),ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const V=this._getWindow();V.removeEventListener("resize",this._changeListener),V.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const V={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),V}getViewportRect(){const V=this.getViewportScrollPosition(),{width:Be,height:nt}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+nt,right:V.left+Be,height:nt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,Be=this._getWindow(),nt=V.documentElement,ce=nt.getBoundingClientRect();return{top:-ce.top||V.body.scrollTop||Be.scrollY||nt.scrollTop||0,left:-ce.left||V.body.scrollLeft||Be.scrollX||nt.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,te.e)(V)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const V=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:V.innerWidth,height:V.innerHeight}:{width:0,height:0}}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(ve.t4),s.LFG(s.R0b),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const P="undefined"!=typeof requestAnimationFrame?W:_e;let pe=(()=>{class Le extends Mn{constructor(V,Be,nt,ce,Ne,L,E){super(V,L,nt,Ne),this.elementRef=V,this._changeDetectorRef=Be,this._scrollStrategy=ce,this._detachedSubject=new ut.xQ,this._renderedRangeSubject=new ut.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Je.y($=>this._scrollStrategy.scrolledIndexChange.subscribe(ue=>Promise.resolve().then(()=>this.ngZone.run(()=>$.next(ue))))),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=et.w.EMPTY,this._viewportChanges=E.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(V){this._orientation!==V&&(this._orientation=V,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(V){this._appendOnly=(0,a.Ig)(V)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,Ue.O)(null),(0,te.e)(0,P)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(V){this.ngZone.runOutsideAngular(()=>{this._forOf=V,this._forOf.dataStream.pipe((0,ie.R)(this._detachedSubject)).subscribe(Be=>{const nt=Be.length;nt!==this._dataLength&&(this._dataLength=nt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(V){this._totalContentSize!==V&&(this._totalContentSize=V,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(V){(function z(Le,Me){return Le.start==Me.start&&Le.end==Me.end})(this._renderedRange,V)||(this.appendOnly&&(V={start:0,end:Math.max(this._renderedRange.end,V.end)}),this._renderedRangeSubject.next(this._renderedRange=V),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(V,Be="to-start"){const ce="horizontal"==this.orientation,Ne=ce?"X":"Y";let E=`translate${Ne}(${Number((ce&&this.dir&&"rtl"==this.dir.value?-1:1)*V)}px)`;this._renderedContentOffset=V,"to-end"===Be&&(E+=` translate${Ne}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=E&&(this._renderedContentTransform=E,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(V,Be="auto"){const nt={behavior:Be};"horizontal"===this.orientation?nt.start=V:nt.top=V,this.scrollTo(nt)}scrollToIndex(V,Be="auto"){this._scrollStrategy.scrollToIndex(V,Be)}measureScrollOffset(V){return super.measureScrollOffset(V||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const V=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?V.offsetWidth:V.offsetHeight}measureRangeSize(V){return this._forOf?this._forOf.measureRangeSize(V,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const V=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?V.clientWidth:V.clientHeight}_markChangeDetectionNeeded(V){V&&this._runAfterChangeDetection.push(V),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const V=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Be of V)Be()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(un,8),s.Y36(mt.Is,8),s.Y36(cn),s.Y36(x))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(V,Be){if(1&V&&s.Gf(vn,7),2&V){let nt;s.iGM(nt=s.CRH())&&(Be._contentWrapper=nt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(V,Be){2&V&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Be.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Be.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:Mn,useExisting:Le}]),s.qOj],ngContentSelectors:Ut,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(V,Be){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&V&&(s.xp6(3),s.Udp("width",Be._totalContentWidth)("height",Be._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Le})();function j(Le,Me,V){if(!V.getBoundingClientRect)return 0;const nt=V.getBoundingClientRect();return"horizontal"===Le?"start"===Me?nt.left:nt.right:"start"===Me?nt.top:nt.bottom}let me=(()=>{class Le{constructor(V,Be,nt,ce,Ne,L){this._viewContainerRef=V,this._template=Be,this._differs=nt,this._viewRepeater=ce,this._viewport=Ne,this.viewChange=new ut.xQ,this._dataSourceChanges=new ut.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Ue.O)(null),function Xe(){return Le=>Le.lift(new J)}(),(0,je.w)(([E,$])=>this._changeDataSource(E,$)),(0,tt.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ut.xQ,this.dataStream.subscribe(E=>{this._data=E,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ie.R)(this._destroyed)).subscribe(E=>{this._renderedRange=E,L.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(V){this._cdkVirtualForOf=V,function dt(Le){return Le&&"function"==typeof Le.connect}(V)?this._dataSourceChanges.next(V):this._dataSourceChanges.next(new _t(zt(V)?V:Array.from(V||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(V){this._needsUpdate=!0,this._cdkVirtualForTrackBy=V?(Be,nt)=>V(Be+(this._renderedRange?this._renderedRange.start:0),nt):void 0}set cdkVirtualForTemplate(V){V&&(this._needsUpdate=!0,this._template=V)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(V){this._viewRepeater.viewCacheSize=(0,a.su)(V)}measureRangeSize(V,Be){if(V.start>=V.end)return 0;const nt=V.start-this._renderedRange.start,ce=V.end-V.start;let Ne,L;for(let E=0;E-1;E--){const $=this._viewContainerRef.get(E+nt);if($&&$.rootNodes.length){L=$.rootNodes[$.rootNodes.length-1];break}}return Ne&&L?j(Be,"end",L)-j(Be,"start",Ne):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const V=this._differ.diff(this._renderedItems);V?this._applyChanges(V):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((V,Be)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(V,Be):Be)),this._needsUpdate=!0)}_changeDataSource(V,Be){return V&&V.disconnect(this),this._needsUpdate=!0,Be?Be.connect(this):(0,Ie.of)()}_updateContext(){const V=this._data.length;let Be=this._viewContainerRef.length;for(;Be--;){const nt=this._viewContainerRef.get(Be);nt.context.index=this._renderedRange.start+Be,nt.context.count=V,this._updateComputedContextProperties(nt.context),nt.detectChanges()}}_applyChanges(V){this._viewRepeater.applyChanges(V,this._viewContainerRef,(ce,Ne,L)=>this._getEmbeddedViewArgs(ce,L),ce=>ce.item),V.forEachIdentityChange(ce=>{this._viewContainerRef.get(ce.currentIndex).context.$implicit=ce.item});const Be=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const ce=this._viewContainerRef.get(nt);ce.context.index=this._renderedRange.start+nt,ce.context.count=Be,this._updateComputedContextProperties(ce.context)}}_updateComputedContextProperties(V){V.first=0===V.index,V.last=V.index===V.count-1,V.even=V.index%2==0,V.odd=!V.even}_getEmbeddedViewArgs(V,Be){return{templateRef:this._template,context:{$implicit:V.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Be}}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(mn),s.Y36(pe,4),s.Y36(s.R0b))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:mn,useClass:St}])]}),Le})(),He=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({}),Le})(),Ge=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[[mt.vT,ve.ud,He],mt.vT,He]}),Le})()},9808:(yt,be,p)=>{p.d(be,{mr:()=>Je,Ov:()=>vo,ez:()=>Vo,K0:()=>W,uU:()=>Ii,JJ:()=>qo,Do:()=>ut,Ts:()=>Bi,V_:()=>H,Ye:()=>Ie,S$:()=>_e,mk:()=>$n,sg:()=>qn,O5:()=>k,PC:()=>bi,RF:()=>Ot,n9:()=>Vt,ED:()=>hn,tP:()=>io,wE:()=>ie,b0:()=>zt,lw:()=>I,EM:()=>Qi,JF:()=>Wn,dv:()=>ot,NF:()=>hi,qS:()=>Lt,w_:()=>_,bD:()=>Lo,q:()=>G,Mx:()=>Un,HT:()=>q});var a=p(5e3);let s=null;function G(){return s}function q(b){s||(s=b)}class _{}const W=new a.OlP("DocumentToken");let I=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function R(){return(0,a.LFG)(B)}()},providedIn:"platform"}),b})();const H=new a.OlP("Location Initialized");let B=(()=>{class b extends I{constructor(w){super(),this._doc=w,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",w,!1),()=>Q.removeEventListener("popstate",w)}onHashChange(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",w,!1),()=>Q.removeEventListener("hashchange",w)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(w){this.location.pathname=w}pushState(w,Q,xe){ee()?this._history.pushState(w,Q,xe):this.location.hash=xe}replaceState(w,Q,xe){ee()?this._history.replaceState(w,Q,xe):this.location.hash=xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(w=0){this._history.go(w)}getState(){return this._history.state}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(W))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function ye(){return new B((0,a.LFG)(W))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function Ye(b,Y){if(0==b.length)return Y;if(0==Y.length)return b;let w=0;return b.endsWith("/")&&w++,Y.startsWith("/")&&w++,2==w?b+Y.substring(1):1==w?b+Y:b+"/"+Y}function Fe(b){const Y=b.match(/#|\?|$/),w=Y&&Y.index||b.length;return b.slice(0,w-("/"===b[w-1]?1:0))+b.slice(w)}function ze(b){return b&&"?"!==b[0]?"?"+b:b}let _e=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function vt(b){const Y=(0,a.LFG)(W).location;return new zt((0,a.LFG)(I),Y&&Y.origin||"")}()},providedIn:"root"}),b})();const Je=new a.OlP("appBaseHref");let zt=(()=>{class b extends _e{constructor(w,Q){if(super(),this._platformLocation=w,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}prepareExternalUrl(w){return Ye(this._baseHref,w)}path(w=!1){const Q=this._platformLocation.pathname+ze(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&w?`${Q}${xe}`:Q}pushState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ut=(()=>{class b extends _e{constructor(w,Q){super(),this._platformLocation=w,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}path(w=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(w){const Q=Ye(this._baseHref,w);return Q.length>0?"#"+Q:Q}pushState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),Ie=(()=>{class b{constructor(w,Q){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=w;const xe=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Fe(Se(xe)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(w=!1){return this.normalize(this._platformStrategy.path(w))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(w,Q=""){return this.path()==this.normalize(w+ze(Q))}normalize(w){return b.stripTrailingSlash(function et(b,Y){return b&&Y.startsWith(b)?Y.substring(b.length):Y}(this._baseHref,Se(w)))}prepareExternalUrl(w){return w&&"/"!==w[0]&&(w="/"+w),this._platformStrategy.prepareExternalUrl(w)}go(w,Q="",xe=null){this._platformStrategy.pushState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}replaceState(w,Q="",xe=null){this._platformStrategy.replaceState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformStrategy).historyGo)||void 0===xe||xe.call(Q,w)}onUrlChange(w){this._urlChangeListeners.push(w),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(w="",Q){this._urlChangeListeners.forEach(xe=>xe(w,Q))}subscribe(w,Q,xe){return this._subject.subscribe({next:w,error:Q,complete:xe})}}return b.normalizeQueryParams=ze,b.joinWithSlash=Ye,b.stripTrailingSlash=Fe,b.\u0275fac=function(w){return new(w||b)(a.LFG(_e),a.LFG(I))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function $e(){return new Ie((0,a.LFG)(_e),(0,a.LFG)(I))}()},providedIn:"root"}),b})();function Se(b){return b.replace(/\/index.html$/,"")}var J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Percent=1]="Percent",J[J.Currency=2]="Currency",J[J.Scientific=3]="Scientific",J))(),fe=(()=>((fe=fe||{})[fe.Zero=0]="Zero",fe[fe.One=1]="One",fe[fe.Two=2]="Two",fe[fe.Few=3]="Few",fe[fe.Many=4]="Many",fe[fe.Other=5]="Other",fe))(),he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),te=(()=>((te=te||{})[te.Narrow=0]="Narrow",te[te.Abbreviated=1]="Abbreviated",te[te.Wide=2]="Wide",te[te.Short=3]="Short",te))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))();function _t(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateFormat],Y)}function it(b,Y){return cn((0,a.cg1)(b)[a.wAp.TimeFormat],Y)}function St(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateTimeFormat],Y)}function ot(b,Y){const w=(0,a.cg1)(b),Q=w[a.wAp.NumberSymbols][Y];if(void 0===Q){if(Y===ie.CurrencyDecimal)return w[a.wAp.NumberSymbols][ie.Decimal];if(Y===ie.CurrencyGroup)return w[a.wAp.NumberSymbols][ie.Group]}return Q}const un=a.kL8;function _n(b){if(!b[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cn(b,Y){for(let w=Y;w>-1;w--)if(void 0!==b[w])return b[w];throw new Error("Locale data API: locale data undefined")}function Mn(b){const[Y,w]=b.split(":");return{hours:+Y,minutes:+w}}const P=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pe={},j=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var me=(()=>((me=me||{})[me.Short=0]="Short",me[me.ShortGMT=1]="ShortGMT",me[me.Long=2]="Long",me[me.Extended=3]="Extended",me))(),He=(()=>((He=He||{})[He.FullYear=0]="FullYear",He[He.Month=1]="Month",He[He.Date=2]="Date",He[He.Hours=3]="Hours",He[He.Minutes=4]="Minutes",He[He.Seconds=5]="Seconds",He[He.FractionalSeconds=6]="FractionalSeconds",He[He.Day=7]="Day",He))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Le(b,Y,w,Q){let xe=function we(b){if(Ve(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[xe,ct=1,Mt=1]=b.split("-").map(kt=>+kt);return Me(xe,ct-1,Mt)}const w=parseFloat(b);if(!isNaN(b-w))return new Date(w);let Q;if(Q=b.match(P))return function ae(b){const Y=new Date(0);let w=0,Q=0;const xe=b[8]?Y.setUTCFullYear:Y.setFullYear,ct=b[8]?Y.setUTCHours:Y.setHours;b[9]&&(w=Number(b[9]+b[10]),Q=Number(b[9]+b[11])),xe.call(Y,Number(b[1]),Number(b[2])-1,Number(b[3]));const Mt=Number(b[4]||0)-w,kt=Number(b[5]||0)-Q,Fn=Number(b[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return ct.call(Y,Mt,kt,Fn,Tn),Y}(Q)}const Y=new Date(b);if(!Ve(Y))throw new Error(`Unable to convert "${b}" into a date`);return Y}(b);Y=V(w,Y)||Y;let kt,Mt=[];for(;Y;){if(kt=j.exec(Y),!kt){Mt.push(Y);break}{Mt=Mt.concat(kt.slice(1));const Dn=Mt.pop();if(!Dn)break;Y=Dn}}let Fn=xe.getTimezoneOffset();Q&&(Fn=jn(Q,Fn),xe=function Re(b,Y,w){const Q=w?-1:1,xe=b.getTimezoneOffset();return function qt(b,Y){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+Y),b}(b,Q*(jn(Y,xe)-xe))}(xe,Q,!0));let Tn="";return Mt.forEach(Dn=>{const dn=function ri(b){if(An[b])return An[b];let Y;switch(b){case"G":case"GG":case"GGG":Y=E(Ge.Eras,te.Abbreviated);break;case"GGGG":Y=E(Ge.Eras,te.Wide);break;case"GGGGG":Y=E(Ge.Eras,te.Narrow);break;case"y":Y=Ne(He.FullYear,1,0,!1,!0);break;case"yy":Y=Ne(He.FullYear,2,0,!0,!0);break;case"yyy":Y=Ne(He.FullYear,3,0,!1,!0);break;case"yyyy":Y=Ne(He.FullYear,4,0,!1,!0);break;case"Y":Y=Vn(1);break;case"YY":Y=Vn(2,!0);break;case"YYY":Y=Vn(3);break;case"YYYY":Y=Vn(4);break;case"M":case"L":Y=Ne(He.Month,1,1);break;case"MM":case"LL":Y=Ne(He.Month,2,1);break;case"MMM":Y=E(Ge.Months,te.Abbreviated);break;case"MMMM":Y=E(Ge.Months,te.Wide);break;case"MMMMM":Y=E(Ge.Months,te.Narrow);break;case"LLL":Y=E(Ge.Months,te.Abbreviated,he.Standalone);break;case"LLLL":Y=E(Ge.Months,te.Wide,he.Standalone);break;case"LLLLL":Y=E(Ge.Months,te.Narrow,he.Standalone);break;case"w":Y=gn(1);break;case"ww":Y=gn(2);break;case"W":Y=gn(1,!0);break;case"d":Y=Ne(He.Date,1);break;case"dd":Y=Ne(He.Date,2);break;case"c":case"cc":Y=Ne(He.Day,1);break;case"ccc":Y=E(Ge.Days,te.Abbreviated,he.Standalone);break;case"cccc":Y=E(Ge.Days,te.Wide,he.Standalone);break;case"ccccc":Y=E(Ge.Days,te.Narrow,he.Standalone);break;case"cccccc":Y=E(Ge.Days,te.Short,he.Standalone);break;case"E":case"EE":case"EEE":Y=E(Ge.Days,te.Abbreviated);break;case"EEEE":Y=E(Ge.Days,te.Wide);break;case"EEEEE":Y=E(Ge.Days,te.Narrow);break;case"EEEEEE":Y=E(Ge.Days,te.Short);break;case"a":case"aa":case"aaa":Y=E(Ge.DayPeriods,te.Abbreviated);break;case"aaaa":Y=E(Ge.DayPeriods,te.Wide);break;case"aaaaa":Y=E(Ge.DayPeriods,te.Narrow);break;case"b":case"bb":case"bbb":Y=E(Ge.DayPeriods,te.Abbreviated,he.Standalone,!0);break;case"bbbb":Y=E(Ge.DayPeriods,te.Wide,he.Standalone,!0);break;case"bbbbb":Y=E(Ge.DayPeriods,te.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":Y=E(Ge.DayPeriods,te.Abbreviated,he.Format,!0);break;case"BBBB":Y=E(Ge.DayPeriods,te.Wide,he.Format,!0);break;case"BBBBB":Y=E(Ge.DayPeriods,te.Narrow,he.Format,!0);break;case"h":Y=Ne(He.Hours,1,-12);break;case"hh":Y=Ne(He.Hours,2,-12);break;case"H":Y=Ne(He.Hours,1);break;case"HH":Y=Ne(He.Hours,2);break;case"m":Y=Ne(He.Minutes,1);break;case"mm":Y=Ne(He.Minutes,2);break;case"s":Y=Ne(He.Seconds,1);break;case"ss":Y=Ne(He.Seconds,2);break;case"S":Y=Ne(He.FractionalSeconds,1);break;case"SS":Y=Ne(He.FractionalSeconds,2);break;case"SSS":Y=Ne(He.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Y=ue(me.Short);break;case"ZZZZZ":Y=ue(me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Y=ue(me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Y=ue(me.Long);break;default:return null}return An[b]=Y,Y}(Dn);Tn+=dn?dn(xe,w,Fn):"''"===Dn?"'":Dn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function Me(b,Y,w){const Q=new Date(0);return Q.setFullYear(b,Y,w),Q.setHours(0,0,0),Q}function V(b,Y){const w=function je(b){return(0,a.cg1)(b)[a.wAp.LocaleId]}(b);if(pe[w]=pe[w]||{},pe[w][Y])return pe[w][Y];let Q="";switch(Y){case"shortDate":Q=_t(b,le.Short);break;case"mediumDate":Q=_t(b,le.Medium);break;case"longDate":Q=_t(b,le.Long);break;case"fullDate":Q=_t(b,le.Full);break;case"shortTime":Q=it(b,le.Short);break;case"mediumTime":Q=it(b,le.Medium);break;case"longTime":Q=it(b,le.Long);break;case"fullTime":Q=it(b,le.Full);break;case"short":const xe=V(b,"shortTime"),ct=V(b,"shortDate");Q=Be(St(b,le.Short),[xe,ct]);break;case"medium":const Mt=V(b,"mediumTime"),kt=V(b,"mediumDate");Q=Be(St(b,le.Medium),[Mt,kt]);break;case"long":const Fn=V(b,"longTime"),Tn=V(b,"longDate");Q=Be(St(b,le.Long),[Fn,Tn]);break;case"full":const Dn=V(b,"fullTime"),dn=V(b,"fullDate");Q=Be(St(b,le.Full),[Dn,dn])}return Q&&(pe[w][Y]=Q),Q}function Be(b,Y){return Y&&(b=b.replace(/\{([^}]+)}/g,function(w,Q){return null!=Y&&Q in Y?Y[Q]:w})),b}function nt(b,Y,w="-",Q,xe){let ct="";(b<0||xe&&b<=0)&&(xe?b=1-b:(b=-b,ct=w));let Mt=String(b);for(;Mt.length0||kt>-w)&&(kt+=w),b===He.Hours)0===kt&&-12===w&&(kt=12);else if(b===He.FractionalSeconds)return function ce(b,Y){return nt(b,3).substr(0,Y)}(kt,Y);const Fn=ot(Mt,ie.MinusSign);return nt(kt,Y,Fn,Q,xe)}}function E(b,Y,w=he.Format,Q=!1){return function(xe,ct){return function $(b,Y,w,Q,xe,ct){switch(w){case Ge.Months:return function ve(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.MonthsFormat],Q[a.wAp.MonthsStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getMonth()];case Ge.Days:return function ke(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.DaysFormat],Q[a.wAp.DaysStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getDay()];case Ge.DayPeriods:const Mt=b.getHours(),kt=b.getMinutes();if(ct){const Tn=function Cn(b){const Y=(0,a.cg1)(b);return _n(Y),(Y[a.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Mn(Q):[Mn(Q[0]),Mn(Q[1])])}(Y),Dn=function Dt(b,Y,w){const Q=(0,a.cg1)(b);_n(Q);const ct=cn([Q[a.wAp.ExtraData][0],Q[a.wAp.ExtraData][1]],Y)||[];return cn(ct,w)||[]}(Y,xe,Q),dn=Tn.findIndex(Yn=>{if(Array.isArray(Yn)){const[On,Yt]=Yn,Eo=Mt>=On.hours&&kt>=On.minutes,D=Mt0?Math.floor(xe/60):Math.ceil(xe/60);switch(b){case me.Short:return(xe>=0?"+":"")+nt(Mt,2,ct)+nt(Math.abs(xe%60),2,ct);case me.ShortGMT:return"GMT"+(xe>=0?"+":"")+nt(Mt,1,ct);case me.Long:return"GMT"+(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);case me.Extended:return 0===Q?"Z":(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);default:throw new Error(`Unknown zone width "${b}"`)}}}function Qt(b){return Me(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function gn(b,Y=!1){return function(w,Q){let xe;if(Y){const ct=new Date(w.getFullYear(),w.getMonth(),1).getDay()-1,Mt=w.getDate();xe=1+Math.floor((Mt+ct)/7)}else{const ct=Qt(w),Mt=function At(b){const Y=Me(b,0,1).getDay();return Me(b,0,1+(Y<=4?4:11)-Y)}(ct.getFullYear()),kt=ct.getTime()-Mt.getTime();xe=1+Math.round(kt/6048e5)}return nt(xe,b,ot(Q,ie.MinusSign))}}function Vn(b,Y=!1){return function(w,Q){return nt(Qt(w).getFullYear(),b,ot(Q,ie.MinusSign),Y)}}const An={};function jn(b,Y){b=b.replace(/:/g,"");const w=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(w)?Y:w}function Ve(b){return b instanceof Date&&!isNaN(b.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function De(b){const Y=parseInt(b);if(isNaN(Y))throw new Error("Invalid integer literal when parsing "+b);return Y}class rt{}let on=(()=>{class b extends rt{constructor(w){super(),this.locale=w}getPluralCategory(w,Q){switch(un(Q||this.locale)(w)){case fe.Zero:return"zero";case fe.One:return"one";case fe.Two:return"two";case fe.Few:return"few";case fe.Many:return"many";default:return"other"}}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(a.soG))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})();function Lt(b,Y,w){return(0,a.dwT)(b,Y,w)}function Un(b,Y){Y=encodeURIComponent(Y);for(const w of b.split(";")){const Q=w.indexOf("="),[xe,ct]=-1==Q?[w,""]:[w.slice(0,Q),w.slice(Q+1)];if(xe.trim()===Y)return decodeURIComponent(ct)}return null}let $n=(()=>{class b{constructor(w,Q,xe,ct){this._iterableDiffers=w,this._keyValueDiffers=Q,this._ngEl=xe,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(w){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof w?w.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(w){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof w?w.split(/\s+/):w,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const w=this._iterableDiffer.diff(this._rawClass);w&&this._applyIterableChanges(w)}else if(this._keyValueDiffer){const w=this._keyValueDiffer.diff(this._rawClass);w&&this._applyKeyValueChanges(w)}}_applyKeyValueChanges(w){w.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(w){w.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),w.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!!w[Q])))}_removeClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(w,Q){(w=w.trim())&&w.split(/\s+/g).forEach(xe=>{Q?this._renderer.addClass(this._ngEl.nativeElement,xe):this._renderer.removeClass(this._ngEl.nativeElement,xe)})}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),b})();class Rn{constructor(Y,w,Q,xe){this.$implicit=Y,this.ngForOf=w,this.index=Q,this.count=xe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{class b{constructor(w,Q,xe){this._viewContainer=w,this._template=Q,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(w){this._ngForOf=w,this._ngForOfDirty=!0}set ngForTrackBy(w){this._trackByFn=w}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(w){w&&(this._template=w)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const w=this._ngForOf;!this._differ&&w&&(this._differ=this._differs.find(w).create(this.ngForTrackBy))}if(this._differ){const w=this._differ.diff(this._ngForOf);w&&this._applyChanges(w)}}_applyChanges(w){const Q=this._viewContainer;w.forEachOperation((xe,ct,Mt)=>{if(null==xe.previousIndex)Q.createEmbeddedView(this._template,new Rn(xe.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)Q.remove(null===ct?void 0:ct);else if(null!==ct){const kt=Q.get(ct);Q.move(kt,Mt),X(kt,xe)}});for(let xe=0,ct=Q.length;xe{X(Q.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),b})();function X(b,Y){b.context.$implicit=Y.item}let k=(()=>{class b{constructor(w,Q){this._viewContainer=w,this._context=new Ee,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(w){this._context.$implicit=this._context.ngIf=w,this._updateView()}set ngIfThen(w){st("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){st("ngIfElse",w),this._elseTemplateRef=w,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),b})();class Ee{constructor(){this.$implicit=null,this.ngIf=null}}function st(b,Y){if(Y&&!Y.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,a.AaK)(Y)}'.`)}class Ct{constructor(Y,w){this._viewContainerRef=Y,this._templateRef=w,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Y){Y&&!this._created?this.create():!Y&&this._created&&this.destroy()}}let Ot=(()=>{class b{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(w){this._ngSwitch=w,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(w){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(w)}_matchCase(w){const Q=w==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(w){if(this._defaultViews&&w!==this._defaultUsed){this._defaultUsed=w;for(let Q=0;Q{class b{constructor(w,Q,xe){this.ngSwitch=xe,xe._addCase(),this._view=new Ct(w,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),b})(),hn=(()=>{class b{constructor(w,Q,xe){xe._addDefault(new Ct(w,Q))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchDefault",""]]}),b})(),bi=(()=>{class b{constructor(w,Q,xe){this._ngEl=w,this._differs=Q,this._renderer=xe,this._ngStyle=null,this._differ=null}set ngStyle(w){this._ngStyle=w,!this._differ&&w&&(this._differ=this._differs.find(w).create())}ngDoCheck(){if(this._differ){const w=this._differ.diff(this._ngStyle);w&&this._applyChanges(w)}}_setStyle(w,Q){const[xe,ct]=w.split(".");null!=(Q=null!=Q&&ct?`${Q}${ct}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,xe,Q):this._renderer.removeStyle(this._ngEl.nativeElement,xe)}_applyChanges(w){w.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),w.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),b})(),io=(()=>{class b{constructor(w){this._viewContainerRef=w,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(w){if(w.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&w.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),b})();function vi(b,Y){return new a.vHH(2100,"")}class ui{createSubscription(Y,w){return Y.subscribe({next:w,error:Q=>{throw Q}})}dispose(Y){Y.unsubscribe()}onDestroy(Y){Y.unsubscribe()}}class wi{createSubscription(Y,w){return Y.then(w,Q=>{throw Q})}dispose(Y){}onDestroy(Y){}}const ko=new wi,Fo=new ui;let vo=(()=>{class b{constructor(w){this._ref=w,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(w){return this._obj?w!==this._obj?(this._dispose(),this.transform(w)):this._latestValue:(w&&this._subscribe(w),this._latestValue)}_subscribe(w){this._obj=w,this._strategy=this._selectStrategy(w),this._subscription=this._strategy.createSubscription(w,Q=>this._updateLatestValue(w,Q))}_selectStrategy(w){if((0,a.QGY)(w))return ko;if((0,a.F4k)(w))return Fo;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(w,Q){w===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.sBO,16))},b.\u0275pipe=a.Yjl({name:"async",type:b,pure:!1}),b})();const sr=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ii=(()=>{class b{constructor(w,Q){this.locale=w,this.defaultTimezone=Q}transform(w,Q="mediumDate",xe,ct){var Mt;if(null==w||""===w||w!=w)return null;try{return Le(w,Q,ct||this.locale,null!==(Mt=null!=xe?xe:this.defaultTimezone)&&void 0!==Mt?Mt:void 0)}catch(kt){throw vi()}}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.soG,16),a.Y36(sr,24))},b.\u0275pipe=a.Yjl({name:"date",type:b,pure:!0}),b})(),Bi=(()=>{class b{transform(w){return JSON.stringify(w,null,2)}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275pipe=a.Yjl({name:"json",type:b,pure:!1}),b})(),qo=(()=>{class b{constructor(w){this._locale=w}transform(w,Q,xe){if(!function oi(b){return!(null==b||""===b||b!=b)}(w))return null;xe=xe||this._locale;try{return function rn(b,Y,w){return function ei(b,Y,w,Q,xe,ct,Mt=!1){let kt="",Fn=!1;if(isFinite(b)){let Tn=function Te(b){let Q,xe,ct,Mt,kt,Y=Math.abs(b)+"",w=0;for((xe=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(ct=Y.search(/e/i))>0?(xe<0&&(xe=ct),xe+=+Y.slice(ct+1),Y=Y.substring(0,ct)):xe<0&&(xe=Y.length),ct=0;"0"===Y.charAt(ct);ct++);if(ct===(kt=Y.length))Q=[0],xe=1;else{for(kt--;"0"===Y.charAt(kt);)kt--;for(xe-=ct,Q=[],Mt=0;ct<=kt;ct++,Mt++)Q[Mt]=Number(Y.charAt(ct))}return xe>22&&(Q=Q.splice(0,21),w=xe-1,xe=1),{digits:Q,exponent:w,integerLen:xe}}(b);Mt&&(Tn=function Qn(b){if(0===b.digits[0])return b;const Y=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===Y?b.digits.push(0,0):1===Y&&b.digits.push(0),b.integerLen+=2),b}(Tn));let Dn=Y.minInt,dn=Y.minFrac,Yn=Y.maxFrac;if(ct){const y=ct.match(ht);if(null===y)throw new Error(`${ct} is not a valid digit info`);const U=y[1],at=y[3],Nt=y[5];null!=U&&(Dn=De(U)),null!=at&&(dn=De(at)),null!=Nt?Yn=De(Nt):null!=at&&dn>Yn&&(Yn=dn)}!function Ze(b,Y,w){if(Y>w)throw new Error(`The minimum number of digits after fraction (${Y}) is higher than the maximum (${w}).`);let Q=b.digits,xe=Q.length-b.integerLen;const ct=Math.min(Math.max(Y,xe),w);let Mt=ct+b.integerLen,kt=Q[Mt];if(Mt>0){Q.splice(Math.max(b.integerLen,Mt));for(let dn=Mt;dn=5)if(Mt-1<0){for(let dn=0;dn>Mt;dn--)Q.unshift(0),b.integerLen++;Q.unshift(1),b.integerLen++}else Q[Mt-1]++;for(;xe=Tn?Yt.pop():Fn=!1),Yn>=10?1:0},0);Dn&&(Q.unshift(Dn),b.integerLen++)}(Tn,dn,Yn);let On=Tn.digits,Yt=Tn.integerLen;const Eo=Tn.exponent;let D=[];for(Fn=On.every(y=>!y);Yt0?D=On.splice(Yt,On.length):(D=On,On=[0]);const C=[];for(On.length>=Y.lgSize&&C.unshift(On.splice(-Y.lgSize,On.length).join(""));On.length>Y.gSize;)C.unshift(On.splice(-Y.gSize,On.length).join(""));On.length&&C.unshift(On.join("")),kt=C.join(ot(w,Q)),D.length&&(kt+=ot(w,xe)+D.join("")),Eo&&(kt+=ot(w,ie.Exponential)+"+"+Eo)}else kt=ot(w,ie.Infinity);return kt=b<0&&!Fn?Y.negPre+kt+Y.negSuf:Y.posPre+kt+Y.posSuf,kt}(b,function bn(b,Y="-"){const w={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Q=b.split(";"),xe=Q[0],ct=Q[1],Mt=-1!==xe.indexOf(".")?xe.split("."):[xe.substring(0,xe.lastIndexOf("0")+1),xe.substring(xe.lastIndexOf("0")+1)],kt=Mt[0],Fn=Mt[1]||"";w.posPre=kt.substr(0,kt.indexOf("#"));for(let Dn=0;Dn{class b{}return b.\u0275fac=function(w){return new(w||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({providers:[{provide:rt,useClass:on}]}),b})();const Lo="browser";function hi(b){return b===Lo}let Qi=(()=>{class b{}return b.\u0275prov=(0,a.Yz7)({token:b,providedIn:"root",factory:()=>new Xo((0,a.LFG)(W),window)}),b})();class Xo{constructor(Y,w){this.document=Y,this.window=w,this.offset=()=>[0,0]}setOffset(Y){this.offset=Array.isArray(Y)?()=>Y:Y}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Y){this.supportsScrolling()&&this.window.scrollTo(Y[0],Y[1])}scrollToAnchor(Y){if(!this.supportsScrolling())return;const w=function Pi(b,Y){const w=b.getElementById(Y)||b.getElementsByName(Y)[0];if(w)return w;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const Q=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let xe=Q.currentNode;for(;xe;){const ct=xe.shadowRoot;if(ct){const Mt=ct.getElementById(Y)||ct.querySelector(`[name="${Y}"]`);if(Mt)return Mt}xe=Q.nextNode()}}return null}(this.document,Y);w&&(this.scrollToElement(w),this.attemptFocus(w))}setHistoryScrollRestoration(Y){if(this.supportScrollRestoration()){const w=this.window.history;w&&w.scrollRestoration&&(w.scrollRestoration=Y)}}scrollToElement(Y){const w=Y.getBoundingClientRect(),Q=w.left+this.window.pageXOffset,xe=w.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(Q-ct[0],xe-ct[1])}attemptFocus(Y){return Y.focus(),this.document.activeElement===Y}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Y=Bn(this.window.history)||Bn(Object.getPrototypeOf(this.window.history));return!(!Y||!Y.writable&&!Y.set)}catch(Y){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Y){return!1}}}function Bn(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Wn{}},520:(yt,be,p)=>{p.d(be,{TP:()=>je,jN:()=>R,eN:()=>ie,JF:()=>cn,WM:()=>H,LE:()=>_e,aW:()=>Se,Zn:()=>he});var a=p(9808),s=p(5e3),G=p(1086),oe=p(6498),q=p(1406),_=p(2198),W=p(4850);class I{}class R{}class H{constructor(z){this.normalizedNames=new Map,this.lazyUpdate=null,z?this.lazyInit="string"==typeof z?()=>{this.headers=new Map,z.split("\n").forEach(P=>{const pe=P.indexOf(":");if(pe>0){const j=P.slice(0,pe),me=j.toLowerCase(),He=P.slice(pe+1).trim();this.maybeSetNormalizedName(j,me),this.headers.has(me)?this.headers.get(me).push(He):this.headers.set(me,[He])}})}:()=>{this.headers=new Map,Object.keys(z).forEach(P=>{let pe=z[P];const j=P.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(j,pe),this.maybeSetNormalizedName(P,j))})}:this.headers=new Map}has(z){return this.init(),this.headers.has(z.toLowerCase())}get(z){this.init();const P=this.headers.get(z.toLowerCase());return P&&P.length>0?P[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(z){return this.init(),this.headers.get(z.toLowerCase())||null}append(z,P){return this.clone({name:z,value:P,op:"a"})}set(z,P){return this.clone({name:z,value:P,op:"s"})}delete(z,P){return this.clone({name:z,value:P,op:"d"})}maybeSetNormalizedName(z,P){this.normalizedNames.has(P)||this.normalizedNames.set(P,z)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(z=>this.applyUpdate(z)),this.lazyUpdate=null))}copyFrom(z){z.init(),Array.from(z.headers.keys()).forEach(P=>{this.headers.set(P,z.headers.get(P)),this.normalizedNames.set(P,z.normalizedNames.get(P))})}clone(z){const P=new H;return P.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,P.lazyUpdate=(this.lazyUpdate||[]).concat([z]),P}applyUpdate(z){const P=z.name.toLowerCase();switch(z.op){case"a":case"s":let pe=z.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(z.name,P);const j=("a"===z.op?this.headers.get(P):void 0)||[];j.push(...pe),this.headers.set(P,j);break;case"d":const me=z.value;if(me){let He=this.headers.get(P);if(!He)return;He=He.filter(Ge=>-1===me.indexOf(Ge)),0===He.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,He)}else this.headers.delete(P),this.normalizedNames.delete(P)}}forEach(z){this.init(),Array.from(this.normalizedNames.keys()).forEach(P=>z(this.normalizedNames.get(P),this.headers.get(P)))}}class B{encodeKey(z){return Fe(z)}encodeValue(z){return Fe(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const ye=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fe(x){return encodeURIComponent(x).replace(ye,(z,P)=>{var pe;return null!==(pe=Ye[P])&&void 0!==pe?pe:z})}function ze(x){return`${x}`}class _e{constructor(z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=z.encoder||new B,z.fromString){if(z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(x,z){const P=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(j=>{const me=j.indexOf("="),[He,Ge]=-1==me?[z.decodeKey(j),""]:[z.decodeKey(j.slice(0,me)),z.decodeValue(j.slice(me+1))],Le=P.get(He)||[];Le.push(Ge),P.set(He,Le)}),P}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(P=>{const pe=z.fromObject[P];this.map.set(P,Array.isArray(pe)?pe:[pe])})):this.map=null}has(z){return this.init(),this.map.has(z)}get(z){this.init();const P=this.map.get(z);return P?P[0]:null}getAll(z){return this.init(),this.map.get(z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(z,P){return this.clone({param:z,value:P,op:"a"})}appendAll(z){const P=[];return Object.keys(z).forEach(pe=>{const j=z[pe];Array.isArray(j)?j.forEach(me=>{P.push({param:pe,value:me,op:"a"})}):P.push({param:pe,value:j,op:"a"})}),this.clone(P)}set(z,P){return this.clone({param:z,value:P,op:"s"})}delete(z,P){return this.clone({param:z,value:P,op:"d"})}toString(){return this.init(),this.keys().map(z=>{const P=this.encoder.encodeKey(z);return this.map.get(z).map(pe=>P+"="+this.encoder.encodeValue(pe)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const P=new _e({encoder:this.encoder});return P.cloneFrom=this.cloneFrom||this,P.updates=(this.updates||[]).concat(z),P}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(z=>this.map.set(z,this.cloneFrom.map.get(z))),this.updates.forEach(z=>{switch(z.op){case"a":case"s":const P=("a"===z.op?this.map.get(z.param):void 0)||[];P.push(ze(z.value)),this.map.set(z.param,P);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let pe=this.map.get(z.param)||[];const j=pe.indexOf(ze(z.value));-1!==j&&pe.splice(j,1),pe.length>0?this.map.set(z.param,pe):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(z,P){return this.map.set(z,P),this}get(z){return this.map.has(z)||this.map.set(z,z.defaultValue()),this.map.get(z)}delete(z){return this.map.delete(z),this}has(z){return this.map.has(z)}keys(){return this.map.keys()}}function ut(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Ie(x){return"undefined"!=typeof Blob&&x instanceof Blob}function $e(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Se{constructor(z,P,pe,j){let me;if(this.url=P,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=z.toUpperCase(),function zt(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||j?(this.body=void 0!==pe?pe:null,me=j):me=pe,me&&(this.reportProgress=!!me.reportProgress,this.withCredentials=!!me.withCredentials,me.responseType&&(this.responseType=me.responseType),me.headers&&(this.headers=me.headers),me.context&&(this.context=me.context),me.params&&(this.params=me.params)),this.headers||(this.headers=new H),this.context||(this.context=new Je),this.params){const He=this.params.toString();if(0===He.length)this.urlWithParams=P;else{const Ge=P.indexOf("?");this.urlWithParams=P+(-1===Ge?"?":Gent.set(ce,z.setHeaders[ce]),Me)),z.setParams&&(V=Object.keys(z.setParams).reduce((nt,ce)=>nt.set(ce,z.setParams[ce]),V)),new Se(pe,j,He,{params:V,headers:Me,context:Be,reportProgress:Le,responseType:me,withCredentials:Ge})}}var Xe=(()=>((Xe=Xe||{})[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe))();class J{constructor(z,P=200,pe="OK"){this.headers=z.headers||new H,this.status=void 0!==z.status?z.status:P,this.statusText=z.statusText||pe,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends J{constructor(z={}){super(z),this.type=Xe.ResponseHeader}clone(z={}){return new fe({headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class he extends J{constructor(z={}){super(z),this.type=Xe.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new he({body:void 0!==z.body?z.body:this.body,headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class te extends J{constructor(z){super(z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${z.url||"(unknown url)"}`:`Http failure response for ${z.url||"(unknown url)"}: ${z.status} ${z.statusText}`,this.error=z.error||null}}function le(x,z){return{body:z,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let ie=(()=>{class x{constructor(P){this.handler=P}request(P,pe,j={}){let me;if(P instanceof Se)me=P;else{let Le,Me;Le=j.headers instanceof H?j.headers:new H(j.headers),j.params&&(Me=j.params instanceof _e?j.params:new _e({fromObject:j.params})),me=new Se(P,pe,void 0!==j.body?j.body:null,{headers:Le,context:j.context,params:Me,reportProgress:j.reportProgress,responseType:j.responseType||"json",withCredentials:j.withCredentials})}const He=(0,G.of)(me).pipe((0,q.b)(Le=>this.handler.handle(Le)));if(P instanceof Se||"events"===j.observe)return He;const Ge=He.pipe((0,_.h)(Le=>Le instanceof he));switch(j.observe||"body"){case"body":switch(me.responseType){case"arraybuffer":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Le.body}));case"blob":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof Blob))throw new Error("Response is not a Blob.");return Le.body}));case"text":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&"string"!=typeof Le.body)throw new Error("Response is not a string.");return Le.body}));default:return Ge.pipe((0,W.U)(Le=>Le.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${j.observe}}`)}}delete(P,pe={}){return this.request("DELETE",P,pe)}get(P,pe={}){return this.request("GET",P,pe)}head(P,pe={}){return this.request("HEAD",P,pe)}jsonp(P,pe){return this.request("JSONP",P,{params:(new _e).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,pe={}){return this.request("OPTIONS",P,pe)}patch(P,pe,j={}){return this.request("PATCH",P,le(j,pe))}post(P,pe,j={}){return this.request("POST",P,le(j,pe))}put(P,pe,j={}){return this.request("PUT",P,le(j,pe))}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(I))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();class Ue{constructor(z,P){this.next=z,this.interceptor=P}handle(z){return this.interceptor.intercept(z,this.next)}}const je=new s.OlP("HTTP_INTERCEPTORS");let tt=(()=>{class x{intercept(P,pe){return pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const St=/^\)\]\}',?\n/;let Et=(()=>{class x{constructor(P){this.xhrFactory=P}handle(P){if("JSONP"===P.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new oe.y(pe=>{const j=this.xhrFactory.build();if(j.open(P.method,P.urlWithParams),P.withCredentials&&(j.withCredentials=!0),P.headers.forEach((ce,Ne)=>j.setRequestHeader(ce,Ne.join(","))),P.headers.has("Accept")||j.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const ce=P.detectContentTypeHeader();null!==ce&&j.setRequestHeader("Content-Type",ce)}if(P.responseType){const ce=P.responseType.toLowerCase();j.responseType="json"!==ce?ce:"text"}const me=P.serializeBody();let He=null;const Ge=()=>{if(null!==He)return He;const ce=1223===j.status?204:j.status,Ne=j.statusText||"OK",L=new H(j.getAllResponseHeaders()),E=function ot(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(j)||P.url;return He=new fe({headers:L,status:ce,statusText:Ne,url:E}),He},Le=()=>{let{headers:ce,status:Ne,statusText:L,url:E}=Ge(),$=null;204!==Ne&&($=void 0===j.response?j.responseText:j.response),0===Ne&&(Ne=$?200:0);let ue=Ne>=200&&Ne<300;if("json"===P.responseType&&"string"==typeof $){const Ae=$;$=$.replace(St,"");try{$=""!==$?JSON.parse($):null}catch(wt){$=Ae,ue&&(ue=!1,$={error:wt,text:$})}}ue?(pe.next(new he({body:$,headers:ce,status:Ne,statusText:L,url:E||void 0})),pe.complete()):pe.error(new te({error:$,headers:ce,status:Ne,statusText:L,url:E||void 0}))},Me=ce=>{const{url:Ne}=Ge(),L=new te({error:ce,status:j.status||0,statusText:j.statusText||"Unknown Error",url:Ne||void 0});pe.error(L)};let V=!1;const Be=ce=>{V||(pe.next(Ge()),V=!0);let Ne={type:Xe.DownloadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),"text"===P.responseType&&!!j.responseText&&(Ne.partialText=j.responseText),pe.next(Ne)},nt=ce=>{let Ne={type:Xe.UploadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),pe.next(Ne)};return j.addEventListener("load",Le),j.addEventListener("error",Me),j.addEventListener("timeout",Me),j.addEventListener("abort",Me),P.reportProgress&&(j.addEventListener("progress",Be),null!==me&&j.upload&&j.upload.addEventListener("progress",nt)),j.send(me),pe.next({type:Xe.Sent}),()=>{j.removeEventListener("error",Me),j.removeEventListener("abort",Me),j.removeEventListener("load",Le),j.removeEventListener("timeout",Me),P.reportProgress&&(j.removeEventListener("progress",Be),null!==me&&j.upload&&j.upload.removeEventListener("progress",nt)),j.readyState!==j.DONE&&j.abort()}})}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.JF))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const Zt=new s.OlP("XSRF_COOKIE_NAME"),mn=new s.OlP("XSRF_HEADER_NAME");class vn{}let Ut=(()=>{class x{constructor(P,pe,j){this.doc=P,this.platform=pe,this.cookieName=j,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const P=this.doc.cookie||"";return P!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(P,this.cookieName),this.lastCookieString=P),this.lastToken}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.K0),s.LFG(s.Lbi),s.LFG(Zt))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),un=(()=>{class x{constructor(P,pe){this.tokenService=P,this.headerName=pe}intercept(P,pe){const j=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return pe.handle(P);const me=this.tokenService.getToken();return null!==me&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,me)})),pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(vn),s.LFG(mn))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),_n=(()=>{class x{constructor(P,pe){this.backend=P,this.injector=pe,this.chain=null}handle(P){if(null===this.chain){const pe=this.injector.get(je,[]);this.chain=pe.reduceRight((j,me)=>new Ue(j,me),this.backend)}return this.chain.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(R),s.LFG(s.zs3))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),Sn=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:un,useClass:tt}]}}static withOptions(P={}){return{ngModule:x,providers:[P.cookieName?{provide:Zt,useValue:P.cookieName}:[],P.headerName?{provide:mn,useValue:P.headerName}:[]]}}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[un,{provide:je,useExisting:un,multi:!0},{provide:vn,useClass:Ut},{provide:Zt,useValue:"XSRF-TOKEN"},{provide:mn,useValue:"X-XSRF-TOKEN"}]}),x})(),cn=(()=>{class x{}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[ie,{provide:I,useClass:_n},Et,{provide:R,useExisting:Et}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})()},5e3:(yt,be,p)=>{p.d(be,{deG:()=>b2,tb:()=>Mh,AFp:()=>yh,ip1:()=>X4,CZH:()=>ks,hGG:()=>tp,z2F:()=>Ma,sBO:()=>O9,Sil:()=>t2,_Vd:()=>pa,EJc:()=>wh,SBq:()=>ma,qLn:()=>gs,vpe:()=>rr,tBr:()=>hs,XFs:()=>Dt,OlP:()=>li,zs3:()=>fo,ZZ4:()=>J1,aQg:()=>X1,soG:()=>Q1,YKP:()=>zu,h0i:()=>Ps,PXZ:()=>w9,R0b:()=>mo,FiY:()=>_r,Lbi:()=>Ch,g9A:()=>_h,Qsj:()=>uf,FYo:()=>bu,JOm:()=>jo,q3G:()=>mi,tp0:()=>Ar,Rgc:()=>_a,dDg:()=>zh,DyG:()=>Ys,GfV:()=>wu,s_b:()=>W1,ifc:()=>me,eFA:()=>xh,G48:()=>P9,Gpc:()=>B,f3M:()=>V2,X6Q:()=>x9,_c5:()=>K9,VLi:()=>C9,c2e:()=>bh,zSh:()=>E1,wAp:()=>an,vHH:()=>Fe,EiD:()=>Ec,mCW:()=>fs,qzn:()=>Ir,JVY:()=>t3,pB0:()=>r3,eBb:()=>vc,L6k:()=>n3,LAX:()=>o3,cg1:()=>P4,kL8:()=>W0,yhl:()=>gc,dqk:()=>V,sIi:()=>bs,CqO:()=>X6,QGY:()=>y4,F4k:()=>J6,dwT:()=>i7,RDi:()=>Jo,AaK:()=>I,z3N:()=>er,qOj:()=>O1,TTD:()=>oi,_Bn:()=>_u,xp6:()=>ll,uIk:()=>F1,Tol:()=>C0,Gre:()=>I0,ekj:()=>E4,Suo:()=>Qu,Xpm:()=>Qt,lG2:()=>we,Yz7:()=>_t,cJS:()=>St,oAB:()=>jn,Yjl:()=>ae,Y36:()=>ca,_UZ:()=>Z6,GkF:()=>Q6,BQk:()=>v4,ynx:()=>g4,qZA:()=>m4,TgZ:()=>p4,EpF:()=>q6,n5z:()=>lo,LFG:()=>zi,$8M:()=>uo,$Z:()=>K6,NdJ:()=>_4,CRH:()=>qu,O4$:()=>pi,oxw:()=>n0,ALo:()=>Nu,lcZ:()=>Ru,xi3:()=>Bu,Dn7:()=>Yu,Hsn:()=>r0,F$t:()=>o0,Q6J:()=>d4,s9C:()=>b4,MGl:()=>V1,hYB:()=>w4,DdM:()=>Pu,VKq:()=>Ou,WLB:()=>Au,l5B:()=>ku,iGM:()=>Ku,MAs:()=>L6,CHM:()=>c,oJD:()=>zc,LSH:()=>Ha,B6R:()=>gn,kYT:()=>qt,Udp:()=>D4,WFA:()=>C4,d8E:()=>x4,YNc:()=>V6,W1O:()=>th,_uU:()=>S0,Oqu:()=>S4,hij:()=>H1,AsE:()=>T4,Gf:()=>Zu});var a=p(8929),s=p(2654),G=p(6498),oe=p(6787),q=p(8117);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function W(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function I(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function R(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const H=_({__forward_ref__:_});function B(e){return e.__forward_ref__=B,e.toString=function(){return I(this())},e}function ee(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===B}class Fe extends Error{constructor(t,n){super(function ze(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function vt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function Ie(e,t){const n=t?` in ${t}`:"";throw new Fe(-201,`No provider for ${vt(e)} found${n}`)}function ke(e,t){null==e&&function ve(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function _t(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function St(e){return{providers:e.providers||[],imports:e.imports||[]}}function ot(e){return Et(e,Ut)||Et(e,_n)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function vn(e){return e&&(e.hasOwnProperty(un)||e.hasOwnProperty(Cn))?e[un]:null}const Ut=_({\u0275prov:_}),un=_({\u0275inj:_}),_n=_({ngInjectableDef:_}),Cn=_({ngInjectorDef:_});var Dt=(()=>((Dt=Dt||{})[Dt.Default=0]="Default",Dt[Dt.Host=1]="Host",Dt[Dt.Self=2]="Self",Dt[Dt.SkipSelf=4]="SkipSelf",Dt[Dt.Optional=8]="Optional",Dt))();let Sn;function Mn(e){const t=Sn;return Sn=e,t}function qe(e,t,n){const i=ot(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==t?t:void Ie(I(e),"Injector")}function z(e){return{toString:e}.toString()}var P=(()=>((P=P||{})[P.OnPush=0]="OnPush",P[P.Default=1]="Default",P))(),me=(()=>{return(e=me||(me={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",me;var e})();const He="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Le="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=He||"undefined"!=typeof global&&global||Ge||Le,ce={},Ne=[],L=_({\u0275cmp:_}),E=_({\u0275dir:_}),$=_({\u0275pipe:_}),ue=_({\u0275mod:_}),Ae=_({\u0275fac:_}),wt=_({__NG_ELEMENT_ID__:_});let At=0;function Qt(e){return z(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||me.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,r=e.features,u=e.pipes;return i.id+=At++,i.inputs=Re(e.inputs,n),i.outputs=Re(e.outputs),r&&r.forEach(f=>f(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vn):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(An):null,i})}function gn(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(Vn),i.pipeDefs=()=>n.map(An)}function Vn(e){return Ve(e)||function ht(e){return e[E]||null}(e)}function An(e){return function It(e){return e[$]||null}(e)}const ri={};function jn(e){return z(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ri[e.id]=e.type),t})}function qt(e,t){return z(()=>{const n=jt(e,!0);n.declarations=t.declarations||Ne,n.imports=t.imports||Ne,n.exports=t.exports||Ne})}function Re(e,t){if(null==e)return ce;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,t&&(t[o]=r)}return n}const we=Qt;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ve(e){return e[L]||null}function jt(e,t){const n=e[ue]||null;if(!n&&!0===t)throw new Error(`Type ${I(e)} does not have '\u0275mod' property.`);return n}const k=19;function Ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vt(e){return Array.isArray(e)&&!0===e[1]}function hn(e){return 0!=(8&e.flags)}function ni(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function kn(e){return null!==e.template}function bi(e){return 0!=(512&e[2])}function Ti(e,t){return e.hasOwnProperty(Ae)?e[Ae]:null}class ro{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function oi(){return Zi}function Zi(e){return e.type.prototype.ngOnChanges&&(e.setInput=bo),Di}function Di(){const e=Lo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ce)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bo(e,t,n,i){const o=Lo(e)||function wo(e,t){return e[Vo]=t}(e,{previous:ce,current:null}),r=o.current||(o.current={}),u=o.previous,f=this.declaredInputs[n],v=u[f];r[f]=new ro(v&&v.currentValue,t,u===ce),e[i]=t}oi.ngInherit=!0;const Vo="__ngSimpleChanges__";function Lo(e){return e[Vo]||null}const Ei="http://www.w3.org/2000/svg";let Do;function Jo(e){Do=e}function Qi(){return void 0!==Do?Do:"undefined"!=typeof document?document:void 0}function Bn(e){return!!e.listen}const Pi={createRenderer:(e,t)=>Qi()};function Wn(e){for(;Array.isArray(e);)e=e[0];return e}function w(e,t){return Wn(t[e])}function Q(e,t){return Wn(t[e.index])}function ct(e,t){return e.data[t]}function Mt(e,t){return e[t]}function kt(e,t){const n=t[e];return Ot(n)?n:n[0]}function Fn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function dn(e,t){return null==t?null:e[t]}function Yn(e){e[18]=0}function On(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function U(){return Yt.bindingsEnabled}function lt(){return Yt.lFrame.lView}function O(){return Yt.lFrame.tView}function c(e){return Yt.lFrame.contextLView=e,e[8]}function l(){let e=g();for(;null!==e&&64===e.type;)e=e.parent;return e}function g(){return Yt.lFrame.currentTNode}function ne(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function ge(){return Yt.lFrame.isParent}function Ce(){Yt.lFrame.isParent=!1}function Pt(){return Yt.isInCheckNoChangesMode}function Bt(e){Yt.isInCheckNoChangesMode=e}function Gt(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jt(){return Yt.lFrame.bindingIndex++}function pn(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _i(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,qi(t)}function qi(e){Yt.lFrame.currentDirectiveIndex=e}function Oi(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fi(){return Yt.lFrame.currentQueryIndex}function Yi(e){Yt.lFrame.currentQueryIndex=e}function ji(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Li(e,t,n){if(n&Dt.SkipSelf){let o=t,r=e;for(;!(o=o.parent,null!==o||n&Dt.Host||(o=ji(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,e=r}const i=Yt.lFrame=zo();return i.currentTNode=t,i.lView=e,!0}function Ho(e){const t=zo(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zo(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ao(e):t}function ao(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function fr(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pr=fr;function Rt(){const e=fr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sn(){return Yt.lFrame.selectedIndex}function Gn(e){Yt.lFrame.selectedIndex=e}function xn(){const e=Yt.lFrame;return ct(e.tView,e.selectedIndex)}function pi(){Yt.lFrame.currentNamespace=Ei}function Hi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{r.call(f)}finally{}}}else try{r.call(f)}finally{}}class No{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e,t,n){const i=Bn(e);let o=0;for(;ot){u=r-1;break}}}for(;r>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let yr=!0;function Tr(e){const t=yr;return yr=e,t}let Ea=0;function ur(e,t){const n=Rs(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,os(i.data,e),os(t,null),os(i.blueprint,null));const o=m(e,t),r=e.injectorIndex;if(Hs(o)){const u=cr(o),f=lr(o,t),v=f[1].data;for(let T=0;T<8;T++)t[r+T]=f[u+T]|v[u+T]}return t[r+8]=o,r}function os(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function m(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const r=o[1],u=r.type;if(i=2===u?r.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function d(e,t,n){!function za(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(wt)&&(i=n[wt]),null==i&&(i=n[wt]=Ea++);const o=255&i;t.data[e+(o>>5)]|=1<=0?255&t:Oe:t}(n);if("function"==typeof r){if(!Li(t,e,i))return i&Dt.Host?M(o,n,i):S(t,n,i,o);try{const u=r(i);if(null!=u||i&Dt.Optional)return u;Ie(n)}finally{pr()}}else if("number"==typeof r){let u=null,f=Rs(e,t),v=-1,T=i&Dt.Host?t[16][6]:null;for((-1===f||i&Dt.SkipSelf)&&(v=-1===f?m(e,t):t[f+8],-1!==v&&Hn(i,!1)?(u=t[1],f=cr(v),t=lr(v,t)):f=-1);-1!==f;){const N=t[1];if(In(r,f,N.data)){const re=pt(f,t,n,u,i,T);if(re!==de)return re}v=t[f+8],-1!==v&&Hn(i,t[1].data[f+8]===T)&&In(r,f,t)?(u=N,f=cr(v),t=lr(v,t)):f=-1}}}return S(t,n,i,o)}const de={};function Oe(){return new co(l(),lt())}function pt(e,t,n,i,o,r){const u=t[1],f=u.data[e+8],N=Ht(f,u,n,null==i?ni(f)&&yr:i!=u&&0!=(3&f.type),o&Dt.Host&&r===f);return null!==N?wn(t,u,N,f):de}function Ht(e,t,n,i,o){const r=e.providerIndexes,u=t.data,f=1048575&r,v=e.directiveStart,N=r>>20,Pe=o?f+N:e.directiveEnd;for(let We=i?f:f+N;We=v&>.type===n)return We}if(o){const We=u[v];if(We&&kn(We)&&We.type===n)return v}return null}function wn(e,t,n,i){let o=e[n];const r=t.data;if(function ar(e){return e instanceof No}(o)){const u=o;u.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Fe(-200,`Circular dependency in DI detected for ${e}${n}`)}(vt(r[n]));const f=Tr(u.canSeeViewProviders);u.resolving=!0;const v=u.injectImpl?Mn(u.injectImpl):null;Li(e,i,Dt.Default);try{o=e[n]=u.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ci(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const u=Zi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==v&&Mn(v),Tr(f),u.resolving=!1,pr()}}return o}function In(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ae]||$i(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[Ae]||$i(o);if(r&&r!==n)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function $i(e){return ye(e)?()=>{const t=$i(ee(e));return t&&t()}:Ti(e)}function uo(e){return function h(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function Sa(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const u=new o(...r);return f.annotation=u,f;function f(v,T,N){const re=v.hasOwnProperty(Ai)?v[Ai]:Object.defineProperty(v,Ai,{value:[]})[Ai];for(;re.length<=N;)re.push(null);return(re[N]=re[N]||[]).push(u),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class li{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=_t({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const b2=new li("AnalyzeForEntryComponents"),Ys=Function;function ho(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?To(n,t):t(n))}function tc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function js(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function E2(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ta(e,t){const n=Or(e,t);if(n>=0)return e[1|n]}function Or(e,t){return function oc(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const r=i+(o-i>>1),u=e[r<t?o=r:i=r+1}return~(o<({token:e})),-1),_r=us(Pr("Optional"),8),Ar=us(Pr("SkipSelf"),4);let Ks,Zs;function Fr(e){var t;return(null===(t=function Aa(){if(void 0===Ks&&(Ks=null,V.trustedTypes))try{Ks=V.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ks}())||void 0===t?void 0:t.createHTML(e))||e}function fc(e){var t;return(null===(t=function ka(){if(void 0===Zs&&(Zs=null,V.trustedTypes))try{Zs=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Zs}())||void 0===t?void 0:t.createHTML(e))||e}class Cr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Q2 extends Cr{getTypeName(){return"HTML"}}class q2 extends Cr{getTypeName(){return"Style"}}class J2 extends Cr{getTypeName(){return"Script"}}class X2 extends Cr{getTypeName(){return"URL"}}class e3 extends Cr{getTypeName(){return"ResourceURL"}}function er(e){return e instanceof Cr?e.changingThisBreaksApplicationSecurity:e}function Ir(e,t){const n=gc(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function gc(e){return e instanceof Cr&&e.getTypeName()||null}function t3(e){return new Q2(e)}function n3(e){return new q2(e)}function vc(e){return new J2(e)}function o3(e){return new X2(e)}function r3(e){return new e3(e)}class s3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Fr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class a3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Fr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Fr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0fs(t.trim())).join(", ")),this.buf.push(" ",u,'="',Dc(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!Cc.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Dc(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const f3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p3=/([^\#-~ |!])/g;function Dc(e){return e.replace(/&/g,"&").replace(f3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(p3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qs;function Ec(e,t){let n=null;try{Qs=Qs||function yc(e){const t=new a3(e);return function c3(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(e){return!1}}()?new s3(t):t}(e);let i=t?String(t):"";n=Qs.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Qs.getInertBodyElement(i)}while(i!==r);return Fr((new d3).sanitizeChildren(La(n)||n))}finally{if(n){const i=La(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function La(e){return"content"in e&&function m3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=(()=>((mi=mi||{})[mi.NONE=0]="NONE",mi[mi.HTML=1]="HTML",mi[mi.STYLE=2]="STYLE",mi[mi.SCRIPT=3]="SCRIPT",mi[mi.URL=4]="URL",mi[mi.RESOURCE_URL=5]="RESOURCE_URL",mi))();function zc(e){const t=ps();return t?fc(t.sanitize(mi.HTML,e)||""):Ir(e,"HTML")?fc(er(e)):Ec(Qi(),_e(e))}function Ha(e){const t=ps();return t?t.sanitize(mi.URL,e)||"":Ir(e,"URL")?er(e):fs(_e(e))}function ps(){const e=lt();return e&&e[12]}const Pc="__ngContext__";function ki(e,t){e[Pc]=t}function Ra(e){const t=function ms(e){return e[Pc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function qs(e){return e.ngOriginalError}function T3(e,...t){e.error(...t)}class gs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function S3(e){return e&&e.ngErrorLogger||T3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&qs(t);for(;n&&qs(n);)n=qs(n);return n||null}}const Lc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Yo(e){return e instanceof Function?e():e}var jo=(()=>((jo=jo||{})[jo.Important=1]="Important",jo[jo.DashCase=2]="DashCase",jo))();function ja(e,t){return undefined(e,t)}function vs(e){const t=e[3];return Vt(t)?t[3]:t}function Ua(e){return Yc(e[13])}function $a(e){return Yc(e[4])}function Yc(e){for(;null!==e&&!Vt(e);)e=e[4];return e}function Hr(e,t,n,i,o){if(null!=i){let r,u=!1;Vt(i)?r=i:Ot(i)&&(u=!0,i=i[0]);const f=Wn(i);0===e&&null!==n?null==o?Kc(t,n,f):Mr(t,n,f,o||null,!0):1===e&&null!==n?Mr(t,n,f,o||null,!0):2===e?function nl(e,t,n){const i=Js(e,t);i&&function q3(e,t,n,i){Bn(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,f,u):3===e&&t.destroyNode(f),null!=r&&function X3(e,t,n,i,o){const r=n[7];r!==Wn(n)&&Hr(t,e,i,r,o);for(let f=10;f0&&(e[n-1][4]=i[4]);const r=js(e,10+t);!function j3(e,t){ys(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=r[k];null!==u&&u.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function $c(e,t){if(!(256&t[2])){const n=t[11];Bn(n)&&n.destroyNode&&ys(e,t,n,3,null,null),function W3(e){let t=e[13];if(!t)return Za(e[1],e);for(;t;){let n=null;if(Ot(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ot(t)&&Za(t[1],t),t=t[3];null===t&&(t=e),Ot(t)&&Za(t[1],t),n=t&&t[4]}t=n}}(t)}}function Za(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Q3(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[o=T]():i[o=-T].unsubscribe(),r+=2}else{const u=i[o=n[r+1]];n[r].call(u)}if(null!==i){for(let r=o+1;rr?"":o[re+1].toLowerCase();const We=8&i?Pe:null;if(We&&-1!==rl(We,T,0)||2&i&&T!==Pe){if(xo(i))return!1;u=!0}}}}else{if(!u&&!xo(i)&&!xo(v))return!1;if(u&&xo(v))continue;u=!1,i=v|1&i}}return xo(i)||u}function xo(e){return 0==(1&e)}function o8(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let r=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!xo(u)&&(t+=e1(r,o),o=""),i=u,r=r||!xo(i);n++}return""!==o&&(t+=e1(r,o)),t}const yn={};function ll(e){ul(O(),lt(),sn()+e,Pt())}function ul(e,t,n,i){if(!i)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Ni(t,r,n)}else{const r=e.preOrderHooks;null!==r&&Ui(t,r,0,n)}Gn(n)}function ta(e,t){return e<<17|t<<2}function Po(e){return e>>17&32767}function t1(e){return 2|e}function tr(e){return(131068&e)>>2}function n1(e,t){return-131069&e|t<<2}function o1(e){return 1|e}function bl(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&ul(e,t,20,Pt()),n(i,o)}finally{Gn(r)}}function Dl(e,t,n){if(hn(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=v&&f.push(v),f.push(i,o,u)}}function Al(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function v1(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function H8(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&_1(n)}}function _1(e){for(let i=Ua(e);null!==i;i=$a(i))for(let o=10;o0&&_1(r)}const n=e[1].components;if(null!==n)for(let i=0;i0&&_1(o)}}function U8(e,t){const n=kt(t,e),i=n[1];(function $8(e,t){for(let n=t.length;nPromise.resolve(null))();function Hl(e){return e[7]||(e[7]=[])}function Nl(e){return e.cleanup||(e.cleanup=[])}function Rl(e,t,n){return(null===e||kn(e))&&(n=function b(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Bl(e,t){const n=e[9],i=n?n.get(gs,null):null;i&&i.handleError(t)}function Yl(e,t,n,i,o){for(let r=0;rthis.processProvider(f,t,n)),To([t],f=>this.processInjectorType(f,[],r)),this.records.set(D1,jr(void 0,this));const u=this.records.get(E1);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:I(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=cs,i=Dt.Default){this.assertNotDestroyed();const o=ac(this),r=Mn(void 0);try{if(!(i&Dt.SkipSelf)){let f=this.records.get(t);if(void 0===f){const v=function a6(e){return"function"==typeof e||"object"==typeof e&&e instanceof li}(t)&&ot(t);f=v&&this.injectableDefInScope(v)?jr(S1(t),Ms):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(i&Dt.Self?Ul():this.parent).get(t,n=i&Dt.Optional&&n===cs?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Ws]=u[Ws]||[]).unshift(I(t)),o)throw u;return function H2(e,t,n,i){const o=e[Ws];throw t[sc]&&o.unshift(t[sc]),e.message=function N2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=I(t);if(Array.isArray(t))o=t.map(I).join(" -> ");else if("object"==typeof t){let r=[];for(let u in t)if(t.hasOwnProperty(u)){let f=t[u];r.push(u+":"+("string"==typeof f?JSON.stringify(f):I(f)))}o=`{${r.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(A2,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Ws]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Mn(r),ac(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(I(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fe(205,"")}processInjectorType(t,n,i){if(!(t=ee(t)))return!1;let o=vn(t);const r=null==o&&t.ngModule||void 0,u=void 0===r?t:r,f=-1!==i.indexOf(u);if(void 0!==r&&(o=vn(r)),null==o)return!1;if(null!=o.imports&&!f){let N;i.push(u);try{To(o.imports,re=>{this.processInjectorType(re,n,i)&&(void 0===N&&(N=[]),N.push(re))})}finally{}if(void 0!==N)for(let re=0;rethis.processProvider(gt,Pe,We||Ne))}}this.injectorDefTypes.add(u);const v=Ti(u)||(()=>new u);this.records.set(u,jr(v,Ms));const T=o.providers;if(null!=T&&!f){const N=t;To(T,re=>this.processProvider(re,N,T))}return void 0!==r&&void 0!==t.providers}processProvider(t,n,i){let o=Ur(t=ee(t))?t:ee(t&&t.provide);const r=function t6(e,t,n){return Kl(e)?jr(void 0,e.useValue):jr(Gl(e),Ms)}(t);if(Ur(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=jr(void 0,Ms,!0),u.factory=()=>Pa(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,r)}hydrate(t,n){return n.value===Ms&&(n.value=J8,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Zl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ee(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function S1(e){const t=ot(e),n=null!==t?t.factory:Ti(e);if(null!==n)return n;if(e instanceof li)throw new Fe(204,"");if(e instanceof Function)return function e6(e){const t=e.length;if(t>0)throw as(t,"?"),new Fe(204,"");const n=function Zt(e){const t=e&&(e[Ut]||e[_n]);if(t){const n=function mn(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Fe(204,"")}function Gl(e,t,n){let i;if(Ur(e)){const o=ee(e);return Ti(o)||S1(o)}if(Kl(e))i=()=>ee(e.useValue);else if(function o6(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Pa(e.deps||[]));else if(function n6(e){return!(!e||!e.useExisting)}(e))i=()=>zi(ee(e.useExisting));else{const o=ee(e&&(e.useClass||e.provide));if(!function s6(e){return!!e.deps}(e))return Ti(o)||S1(o);i=()=>new o(...Pa(e.deps))}return i}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Kl(e){return null!==e&&"object"==typeof e&&F2 in e}function Ur(e){return"function"==typeof e}let fo=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return $l({name:""},i,n,"");{const r=null!==(o=n.name)&&void 0!==o?o:"";return $l({name:r},n.parent,n.providers,r)}}}return e.THROW_IF_NOT_FOUND=cs,e.NULL=new jl,e.\u0275prov=_t({token:e,providedIn:"any",factory:()=>zi(D1)}),e.__NG_ELEMENT_ID__=-1,e})();function g6(e,t){Hi(Ra(e)[1],l())}function O1(e){let t=function a4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(kn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Fe(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=A1(e.inputs),u.declaredInputs=A1(e.declaredInputs),u.outputs=A1(e.outputs);const f=o.hostBindings;f&&C6(e,f);const v=o.viewQuery,T=o.contentQueries;if(v&&y6(e,v),T&&_6(e,T),W(e.inputs,o.inputs),W(e.declaredInputs,o.declaredInputs),W(e.outputs,o.outputs),kn(o)&&o.data.animation){const N=e.data;N.animation=(N.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let u=0;u=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Sr(o.hostAttrs,n=Sr(n,o.hostAttrs))}}(i)}function A1(e){return e===ce?{}:e===Ne?[]:e}function y6(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function _6(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,r)=>{t(i,o,r),n(i,o,r)}:t}function C6(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let sa=null;function $r(){if(!sa){const e=V.Symbol;if(e&&e.iterator)sa=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(Wn(zn[i.index])):i.index;if(Bn(n)){let zn=null;if(!f&&v&&(zn=function _5(e,t,n,i){const o=e.cleanup;if(null!=o)for(let r=0;rv?f[v]:null}"string"==typeof u&&(r+=2)}return null}(e,t,o,i.index)),null!==zn)(zn.__ngLastListenerFn__||zn).__ngNextListenerFn__=r,zn.__ngLastListenerFn__=r,We=!1;else{r=M4(i,t,re,r,!1);const Kn=n.listen($t,o,r);Pe.push(r,Kn),N&&N.push(o,nn,bt,bt+1)}}else r=M4(i,t,re,r,!0),$t.addEventListener(o,r,u),Pe.push(r),N&&N.push(o,nn,bt,u)}else r=M4(i,t,re,r,!1);const gt=i.outputs;let xt;if(We&&null!==gt&&(xt=gt[o])){const Ft=xt.length;if(Ft)for(let $t=0;$t0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function C5(e,t){let n=null;const i=function r8(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}const Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p0(e){return e.substring(Si.key,Si.keyEnd)}function m0(e,t){const n=Si.textEnd;return n===t?-1:(t=Si.keyEnd=function S5(e,t,n){for(;t32;)t++;return t}(e,Si.key=t,n),zs(e,t,n))}function zs(e,t,n){for(;t=0;n=m0(t,n))to(e,p0(t),!0)}function Wo(e,t,n,i){const o=lt(),r=O(),u=pn(2);r.firstUpdatePass&&b0(r,e,u,i),t!==yn&&Fi(o,u,t)&&D0(r,r.data[sn()],o,o[11],e,o[u+1]=function L5(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=I(er(e)))),e}(t,n),i,u)}function Go(e,t,n,i){const o=O(),r=pn(2);o.firstUpdatePass&&b0(o,null,r,i);const u=lt();if(n!==yn&&Fi(u,r,n)){const f=o.data[sn()];if(z0(f,i)&&!M0(o,r)){let v=i?f.classesWithoutHost:f.stylesWithoutHost;null!==v&&(n=R(v,n||"")),f4(o,f,u,n,i)}else!function V5(e,t,n,i,o,r,u,f){o===yn&&(o=Ne);let v=0,T=0,N=0=e.expandoStartIndex}function b0(e,t,n,i){const o=e.data;if(null===o[n+1]){const r=o[sn()],u=M0(e,n);z0(r,i)&&null===t&&!u&&(t=!1),t=function O5(e,t,n,i){const o=Oi(e);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=z4(null,e,t,n,i),t.attrs,i),r=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=z4(o,e,t,n,i),null===r){let v=function A5(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==tr(i))return e[Po(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=z4(null,e,t,v[1],i),v=la(v,t.attrs,i),function k5(e,t,n,i){e[Po(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else r=function F5(e,t,n){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(T=!0)}else N=n;if(o)if(0!==v){const Pe=Po(e[f+1]);e[i+1]=ta(Pe,f),0!==Pe&&(e[Pe+1]=n1(e[Pe+1],i)),e[f+1]=function d8(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=ta(f,0),0!==f&&(e[f+1]=n1(e[f+1],i)),f=i;else e[i+1]=ta(v,0),0===f?f=i:e[v+1]=n1(e[v+1],i),v=i;T&&(e[i+1]=t1(e[i+1])),f0(e,N,i,!0),f0(e,N,i,!1),function b5(e,t,n,i,o){const r=o?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Or(r,t)>=0&&(n[i+1]=o1(n[i+1]))}(t,N,e,i,r),u=ta(f,v),r?t.classBindings=u:t.styleBindings=u}(o,r,t,n,u,i)}}function z4(e,t,n,i,o){let r=null;const u=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const v=e[o],T=Array.isArray(v),N=T?v[1]:v,re=null===N;let Pe=n[o+1];Pe===yn&&(Pe=re?Ne:void 0);let We=re?Ta(Pe,i):N===i?Pe:void 0;if(T&&!L1(We)&&(We=Ta(v,i)),L1(We)&&(f=We,u))return f;const gt=e[o+1];o=u?Po(gt):tr(gt)}if(null!==t){let v=r?t.residualClasses:t.residualStyles;null!=v&&(f=Ta(v,i))}return f}function L1(e){return void 0!==e}function z0(e,t){return 0!=(e.flags&(t?16:32))}function S0(e,t=""){const n=lt(),i=O(),o=e+20,r=i.firstCreatePass?Rr(i,o,1,t,null):i.data[o],u=n[o]=function Wa(e,t){return Bn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Xs(i,n,u,r),ne(r,!1)}function S4(e){return H1("",e,""),S4}function H1(e,t,n){const i=lt(),o=Wr(i,e,t,n);return o!==yn&&nr(i,sn(),o),H1}function T4(e,t,n,i,o){const r=lt(),u=Gr(r,e,t,n,i,o);return u!==yn&&nr(r,sn(),u),T4}function I0(e,t,n){Go(to,or,Wr(lt(),e,t,n),!0)}function x4(e,t,n){const i=lt();if(Fi(i,Jt(),t)){const r=O(),u=xn();no(r,u,i,e,t,Rl(Oi(r.data),u,i),n,!0)}return x4}const Jr=void 0;var n7=["en",[["a","p"],["AM","PM"],Jr],[["AM","PM"],Jr,Jr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Jr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Jr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Jr,"{1} 'at' {0}",Jr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function t7(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ss={};function i7(e,t,n){"string"!=typeof t&&(n=t,t=e[an.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ss[t]=e,n&&(Ss[t][an.ExtraData]=n)}function P4(e){const t=function o7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=G0(t);if(n)return n;const i=t.split("-")[0];if(n=G0(i),n)return n;if("en"===i)return n7;throw new Error(`Missing locale data for the locale "${e}".`)}function W0(e){return P4(e)[an.PluralCase]}function G0(e){return e in Ss||(Ss[e]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[e]),Ss[e]}var an=(()=>((an=an||{})[an.LocaleId=0]="LocaleId",an[an.DayPeriodsFormat=1]="DayPeriodsFormat",an[an.DayPeriodsStandalone=2]="DayPeriodsStandalone",an[an.DaysFormat=3]="DaysFormat",an[an.DaysStandalone=4]="DaysStandalone",an[an.MonthsFormat=5]="MonthsFormat",an[an.MonthsStandalone=6]="MonthsStandalone",an[an.Eras=7]="Eras",an[an.FirstDayOfWeek=8]="FirstDayOfWeek",an[an.WeekendRange=9]="WeekendRange",an[an.DateFormat=10]="DateFormat",an[an.TimeFormat=11]="TimeFormat",an[an.DateTimeFormat=12]="DateTimeFormat",an[an.NumberSymbols=13]="NumberSymbols",an[an.NumberFormats=14]="NumberFormats",an[an.CurrencyCode=15]="CurrencyCode",an[an.CurrencySymbol=16]="CurrencySymbol",an[an.CurrencyName=17]="CurrencyName",an[an.Currencies=18]="Currencies",an[an.Directionality=19]="Directionality",an[an.PluralCase=20]="PluralCase",an[an.ExtraData=21]="ExtraData",an))();const N1="en-US";let K0=N1;function k4(e,t,n,i,o){if(e=ee(e),Array.isArray(e))for(let r=0;r>20;if(Ur(e)||!e.multi){const We=new No(v,o,ca),gt=I4(f,t,o?N:N+Pe,re);-1===gt?(d(ur(T,u),r,f),F4(r,e,t.length),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push(We),u.push(We)):(n[gt]=We,u[gt]=We)}else{const We=I4(f,t,N+Pe,re),gt=I4(f,t,N,N+Pe),xt=We>=0&&n[We],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!xt){d(ur(T,u),r,f);const $t=function nf(e,t,n,i,o){const r=new No(e,n,ca);return r.multi=[],r.index=t,r.componentProviders=0,yu(r,o,i&&!n),r}(o?tf:ef,n.length,o,i,v);!o&&Ft&&(n[gt].providerFactory=$t),F4(r,e,t.length,0),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push($t),u.push($t)}else F4(r,e,We>-1?We:gt,yu(n[o?gt:We],v,!o&&i));!o&&i&&Ft&&n[gt].componentProviders++}}}function F4(e,t,n,i){const o=Ur(t),r=function r6(e){return!!e.useClass}(t);if(o||r){const v=(r?ee(t.useClass):t).prototype.ngOnDestroy;if(v){const T=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const N=T.indexOf(n);-1===N?T.push(n,[i,v]):T[N+1].push(i,v)}else T.push(n,v)}}}function yu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function I4(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function X7(e,t,n){const i=O();if(i.firstCreatePass){const o=kn(e);k4(n,i.data,i.blueprint,o,!0),k4(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Cu{}class af{resolveComponentFactory(t){throw function sf(e){const t=Error(`No component factory found for ${I(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let pa=(()=>{class e{}return e.NULL=new af,e})();function cf(){return xs(l(),lt())}function xs(e,t){return new ma(Q(e,t))}let ma=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=cf,e})();function lf(e){return e instanceof ma?e.nativeElement:e}class bu{}let uf=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function df(){const e=lt(),n=kt(l().index,e);return function hf(e){return e[11]}(Ot(n)?n:e)}(),e})(),ff=(()=>{class e{}return e.\u0275prov=_t({token:e,providedIn:"root",factory:()=>null}),e})();class wu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new wu("13.1.3"),L4={};function U1(e,t,n,i,o=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&i.push(Wn(r)),Vt(r))for(let f=10;f-1&&(Ka(t,i),js(n,i))}this._attachedToViewContainer=!1}$c(this._lView[1],this._lView)}onDestroy(t){Tl(this._lView[1],this._lView,null,t)}markForCheck(){C1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){b1(this._lView[1],this._lView,this.context)}checkNoChanges(){!function G8(e,t,n){Bt(!0);try{b1(e,t,n)}finally{Bt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $3(e,t){ys(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Fe(902,"");this._appRef=t}}class mf extends ga{constructor(t){super(t),this._view=t}detectChanges(){Ll(this._view)}checkNoChanges(){!function K8(e){Bt(!0);try{Ll(e)}finally{Bt(!1)}}(this._view)}get context(){return null}}class Du extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new H4(n,this.ngModule)}}function Eu(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const vf=new li("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Lc});class H4 extends Cu{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function u8(e){return e.map(l8).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Eu(this.componentDef.inputs)}get outputs(){return Eu(this.componentDef.outputs)}create(t,n,i,o){const r=(o=o||this.ngModule)?function yf(e,t){return{get:(n,i,o)=>{const r=e.get(n,L4,o);return r!==L4||i===L4?r:t.get(n,i,o)}}}(t,o.injector):t,u=r.get(bu,Pi),f=r.get(ff,null),v=u.createRenderer(null,this.componentDef),T=this.componentDef.selectors[0][0]||"div",N=i?function Sl(e,t,n){if(Bn(e))return e.selectRootElement(t,n===me.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):Ga(u.createRenderer(null,this.componentDef),T,function gf(e){const t=e.toLowerCase();return"svg"===t?Ei:"math"===t?"http://www.w3.org/1998/MathML/":null}(T)),re=this.componentDef.onPush?576:528,Pe=function P1(e,t){return{components:[],scheduler:e||Lc,clean:Z8,playerHandler:t||null,flags:0}}(),We=oa(0,null,null,1,0,null,null,null,null,null),gt=Nr(null,We,Pe,re,null,null,u,v,f,r);let xt,Ft;Ho(gt);try{const $t=function r4(e,t,n,i,o,r){const u=n[1];n[20]=e;const v=Rr(u,20,2,"#host",null),T=v.mergedAttrs=t.hostAttrs;null!==T&&(Cs(v,T,!0),null!==e&&(is(o,e,T),null!==v.classes&&Xa(o,e,v.classes),null!==v.styles&&ol(o,e,v.styles)));const N=i.createRenderer(e,t),re=Nr(n,El(t),null,t.onPush?64:16,n[20],v,i,N,r||null,null);return u.firstCreatePass&&(d(ur(v,n),u,t.type),v1(u,v),kl(v,n.length,1)),ra(n,re),n[20]=re}(N,this.componentDef,gt,u,v);if(N)if(i)is(v,N,["ng-version",pf.full]);else{const{attrs:bt,classes:nn}=function h8(e){const t=[],n=[];let i=1,o=2;for(;i0&&Xa(v,N,nn.join(" "))}if(Ft=ct(We,20),void 0!==n){const bt=Ft.projection=[];for(let nn=0;nnv(u,t)),t.contentQueries){const v=l();t.contentQueries(1,u,v.directiveStart)}const f=l();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Gn(f.index),Ol(n[1],f,0,f.directiveStart,f.directiveEnd,t),Al(t,u)),u}($t,this.componentDef,gt,Pe,[g6]),_s(We,gt,null)}finally{Rt()}return new Cf(this.componentType,xt,xs(Ft,gt),gt,Ft)}}class Cf extends class rf{}{constructor(t,n,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=n,this.hostView=this.changeDetectorRef=new mf(o),this.componentType=t}get injector(){return new co(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ps{}class zu{}const Os=new Map;class xu extends Ps{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Du(this);const i=jt(t);this._bootstrapComponents=Yo(i.bootstrap),this._r3Injector=Wl(t,n,[{provide:Ps,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],I(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=fo.THROW_IF_NOT_FOUND,i=Dt.Default){return t===fo||t===Ps||t===D1?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class N4 extends zu{constructor(t){super(),this.moduleType=t,null!==jt(t)&&function bf(e){const t=new Set;!function n(i){const o=jt(i,!0),r=o.id;null!==r&&(function Su(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${I(t)} vs ${I(t.name)}`)}(r,Os.get(r),i),Os.set(r,i));const u=Yo(o.imports);for(const f of u)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new xu(this.moduleType,t)}}function Pu(e,t,n){const i=Gt()+e,o=lt();return o[i]===yn?$o(o,i,n?t.call(n):t()):function ws(e,t){return e[t]}(o,i)}function Ou(e,t,n,i){return Fu(lt(),Gt(),e,t,n,i)}function Au(e,t,n,i,o){return Iu(lt(),Gt(),e,t,n,i,o)}function ku(e,t,n,i,o,r,u){return function Lu(e,t,n,i,o,r,u,f,v){const T=t+n;return function po(e,t,n,i,o,r){const u=br(e,t,n,i);return br(e,t+2,o,r)||u}(e,T,o,r,u,f)?$o(e,T+4,v?i.call(v,o,r,u,f):i(o,r,u,f)):va(e,T+4)}(lt(),Gt(),e,t,n,i,o,r,u)}function va(e,t){const n=e[t];return n===yn?void 0:n}function Fu(e,t,n,i,o,r){const u=t+n;return Fi(e,u,o)?$o(e,u+1,r?i.call(r,o):i(o)):va(e,u+1)}function Iu(e,t,n,i,o,r,u){const f=t+n;return br(e,f,o,r)?$o(e,f+2,u?i.call(u,o,r):i(o,r)):va(e,f+2)}function Vu(e,t,n,i,o,r,u,f){const v=t+n;return function aa(e,t,n,i,o){const r=br(e,t,n,i);return Fi(e,t+2,o)||r}(e,v,o,r,u)?$o(e,v+3,f?i.call(f,o,r,u):i(o,r,u)):va(e,v+3)}function Nu(e,t){const n=O();let i;const o=e+20;n.firstCreatePass?(i=function xf(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=Ti(i.type)),u=Mn(ca);try{const f=Tr(!1),v=r();return Tr(f),function Qd(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,lt(),o,v),v}finally{Mn(u)}}function Ru(e,t,n){const i=e+20,o=lt(),r=Mt(o,i);return ya(o,i)?Fu(o,Gt(),t,r.transform,n,r):r.transform(n)}function Bu(e,t,n,i){const o=e+20,r=lt(),u=Mt(r,o);return ya(r,o)?Iu(r,Gt(),t,u.transform,n,i,u):u.transform(n,i)}function Yu(e,t,n,i,o){const r=e+20,u=lt(),f=Mt(u,r);return ya(u,r)?Vu(u,Gt(),t,f.transform,n,i,o,f):f.transform(n,i,o)}function ya(e,t){return e[1].data[t].pure}function R4(e){return t=>{setTimeout(e,void 0,t)}}const rr=class Af extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,r,u;let f=t,v=n||(()=>null),T=i;if(t&&"object"==typeof t){const re=t;f=null===(o=re.next)||void 0===o?void 0:o.bind(re),v=null===(r=re.error)||void 0===r?void 0:r.bind(re),T=null===(u=re.complete)||void 0===u?void 0:u.bind(re)}this.__isAsync&&(v=R4(v),f&&(f=R4(f)),T&&(T=R4(T)));const N=super.subscribe({next:f,error:v,complete:T});return t instanceof s.w&&t.add(N),N}};function kf(){return this._results[$r()]()}class B4{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=$r(),i=B4.prototype;i[n]||(i[n]=kf)}get changes(){return this._changes||(this._changes=new rr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=ho(t);(this._changesDetected=!function w2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=Vf,e})();const Ff=_a,If=class extends Ff{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Nr(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[k];return null!==r&&(i[k]=r.createEmbeddedView(n)),_s(n,i,t),new ga(i)}};function Vf(){return $1(l(),lt())}function $1(e,t){return 4&e.type?new If(t,e,xs(e,t)):null}let W1=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lf,e})();function Lf(){return $u(l(),lt())}const Hf=W1,ju=class extends Hf{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new co(this._hostTNode,this._hostLView)}get parentInjector(){const t=m(this._hostTNode,this._hostLView);if(Hs(t)){const n=lr(t,this._hostLView),i=cr(t);return new co(n[1].data[i+8],n)}return new co(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uu(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,r){const u=t&&!function ss(e){return"function"==typeof e}(t);let f;if(u)f=n;else{const re=n||{};f=re.index,i=re.injector,o=re.projectableNodes,r=re.ngModuleRef}const v=u?t:new H4(Ve(t)),T=i||this.parentInjector;if(!r&&null==v.ngModule&&T){const re=T.get(Ps,null);re&&(r=re)}const N=v.create(T,o,void 0,r);return this.insert(N.hostView,f),N}insert(t,n){const i=t._lView,o=i[1];if(function Dn(e){return Vt(e[3])}(i)){const N=this.indexOf(t);if(-1!==N)this.detach(N);else{const re=i[3],Pe=new ju(re,re[6],re[3]);Pe.detach(Pe.indexOf(t))}}const r=this._adjustIndex(n),u=this._lContainer;!function G3(e,t,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=t),i0)i.push(u[f/2]);else{const T=r[f+1],N=t[-v];for(let re=10;re{class e{constructor(n){this.appInits=n,this.resolve=Z1,this.reject=Z1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:f,error:v})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(zi(X4,8))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const yh=new li("AppId"),u9={provide:yh,useFactory:function l9(){return`${e2()}${e2()}${e2()}`},deps:[]};function e2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _h=new li("Platform Initializer"),Ch=new li("Platform ID"),Mh=new li("appBootstrapListener");let bh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const Q1=new li("LocaleId"),wh=new li("DefaultCurrencyCode");class h9{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let t2=(()=>{class e{compileModuleSync(n){return new N4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),r=Yo(jt(n).declarations).reduce((u,f)=>{const v=Ve(f);return v&&u.push(new H4(v)),u},[]);return new h9(i,r)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const f9=(()=>Promise.resolve(0))();function n2(e){"undefined"==typeof Zone?f9.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class mo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function p9(){let e=V.requestAnimationFrame,t=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function v9(e){const t=()=>{!function g9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(V,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,r2(e),e.isCheckStableRunning=!0,o2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),r2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,r,u,f)=>{try{return Dh(e),n.invokeTask(o,r,u,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),Eh(e)}},onInvoke:(n,i,o,r,u,f,v)=>{try{return Dh(e),n.invoke(o,r,u,f,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Eh(e)}},onHasTask:(n,i,o,r)=>{n.hasTask(o,r),i===o&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,r2(e),o2(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(n,i,o,r)=>(n.handleError(o,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const r=this._inner,u=r.scheduleEventTask("NgZoneEvent: "+o,t,m9,Z1,Z1);try{return r.runTask(u,n,i)}finally{r.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const m9={};function o2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function r2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eh(e){e._nesting--,o2(e)}class y9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let zh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mo.assertNotInAngularZone(),n2(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())n2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==r),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:r,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(zi(mo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})(),Sh=(()=>{class e{constructor(){this._applications=new Map,s2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return s2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();class _9{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function C9(e){s2=e}let Ko,s2=new _9;const Th=new li("AllowMultipleToken");class w9{constructor(t,n){this.name=t,this.token=n}}function xh(e,t,n=[]){const i=`Platform: ${t}`,o=new li(i);return(r=[])=>{let u=Ph();if(!u||u.injector.get(Th,!1))if(e)e(n.concat(r).concat({provide:o,useValue:!0}));else{const f=n.concat(r).concat({provide:o,useValue:!0},{provide:E1,useValue:"platform"});!function D9(e){if(Ko&&!Ko.destroyed&&!Ko.injector.get(Th,!1))throw new Fe(400,"");Ko=e.get(Oh);const t=e.get(_h,null);t&&t.forEach(n=>n())}(fo.create({providers:f,name:i}))}return function E9(e){const t=Ph();if(!t)throw new Fe(401,"");return t}()}}function Ph(){return Ko&&!Ko.destroyed?Ko:null}let Oh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const f=function z9(e,t){let n;return n="noop"===e?new y9:("zone.js"===e?void 0:e)||new mo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:mo,useValue:f}];return f.run(()=>{const T=fo.create({providers:v,parent:this.injector,name:n.moduleType.name}),N=n.create(T),re=N.injector.get(gs,null);if(!re)throw new Fe(402,"");return f.runOutsideAngular(()=>{const Pe=f.onError.subscribe({next:We=>{re.handleError(We)}});N.onDestroy(()=>{a2(this._modules,N),Pe.unsubscribe()})}),function S9(e,t,n){try{const i=n();return y4(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(re,f,()=>{const Pe=N.injector.get(ks);return Pe.runInitializers(),Pe.donePromise.then(()=>(function c7(e){ke(e,"Expected localeId to be defined"),"string"==typeof e&&(K0=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Q1,N1)||N1),this._moduleDoBootstrap(N),N))})})}bootstrapModule(n,i=[]){const o=Ah({},i);return function M9(e,t,n){const i=new N4(n);return Promise.resolve(i)}(0,0,n).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(n){const i=n.injector.get(Ma);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Fe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Fe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(zi(fo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function Ah(e,t){return Array.isArray(t)?t.reduce(Ah,e):Object.assign(Object.assign({},e),t)}let Ma=(()=>{class e{constructor(n,i,o,r,u){this._zone=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const f=new G.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new G.y(T=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),n2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,T.next(!0))})})});const re=this._zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{N.unsubscribe(),re.unsubscribe()}});this.isStable=(0,oe.T)(f,v.pipe((0,q.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Fe(405,"");let o;o=n instanceof Cu?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const r=function b9(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Ps),f=o.create(fo.NULL,[],i||o.selector,r),v=f.location.nativeElement,T=f.injector.get(zh,null),N=T&&f.injector.get(Sh);return T&&N&&N.registerApplication(v,T),f.onDestroy(()=>{this.detachView(f.hostView),a2(this.components,f),N&&N.unregisterApplication(v)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Fe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;a2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mh,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(zi(mo),zi(fo),zi(gs),zi(pa),zi(ks))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function a2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Fh=!0,Ih=!1;function x9(){return Ih=!0,Fh}function P9(){if(Ih)throw new Error("Cannot enable prod mode after platform setup.");Fh=!1}let O9=(()=>{class e{}return e.__NG_ELEMENT_ID__=A9,e})();function A9(e){return function k9(e,t,n){if(ni(e)&&!n){const i=kt(e.index,t);return new ga(i,i)}return 47&e.type?new ga(t[16],t):null}(l(),lt(),16==(16&e))}class Bh{constructor(){}supports(t){return bs(t)}create(t){return new N9(t)}}const H9=(e,t)=>t;class N9{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H9}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,r=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,f,u,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,r,o)):t=this._addAfter(new R9(n,i),r,o),t}_verifyReinsertion(t,n,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class R9{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class B9{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Yh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new B9,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jh(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const r=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const r=o._prev,u=o._next;return r&&(r._next=u),u&&(u._prev=r),o._next=null,o._prev=null,o}const i=new j9(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class j9{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $h(){return new J1([new Bh])}let J1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||$h()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:$h}),e})();function Wh(){return new X1([new Uh])}let X1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Wh()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Wh}),e})();const U9=[new Uh],W9=new J1([new Bh]),G9=new X1(U9),K9=xh(null,"core",[{provide:Ch,useValue:"unknown"},{provide:Oh,deps:[fo]},{provide:Sh,deps:[]},{provide:bh,deps:[]}]),X9=[{provide:Ma,useClass:Ma,deps:[mo,fo,gs,pa,ks]},{provide:vf,deps:[mo],useFactory:function ep(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:ks,useClass:ks,deps:[[new _r,X4]]},{provide:t2,useClass:t2,deps:[]},u9,{provide:J1,useFactory:function Z9(){return W9},deps:[]},{provide:X1,useFactory:function Q9(){return G9},deps:[]},{provide:Q1,useFactory:function q9(e){return e||function J9(){return"undefined"!=typeof $localize&&$localize.locale||N1}()},deps:[[new hs(Q1),new _r,new Ar]]},{provide:wh,useValue:"USD"}];let tp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(zi(Ma))},e.\u0275mod=jn({type:e}),e.\u0275inj=St({providers:X9}),e})()},4182:(yt,be,p)=>{p.d(be,{TO:()=>Un,ve:()=>_e,Wl:()=>Ye,Fj:()=>vt,qu:()=>Yt,oH:()=>_o,u:()=>oo,sg:()=>Ii,u5:()=>dn,JU:()=>ee,a5:()=>Cn,JJ:()=>qe,JL:()=>x,F:()=>se,On:()=>kn,Mq:()=>hn,c5:()=>Mt,UX:()=>Yn,Q7:()=>Pi,kI:()=>et,_Y:()=>bi});var a=p(5e3),s=p(9808),G=p(6498),oe=p(6688),q=p(4850),_=p(7830),W=p(5254);function R(D,C){return new G.y(y=>{const U=D.length;if(0===U)return void y.complete();const at=new Array(U);let Nt=0,lt=0;for(let O=0;O{l||(l=!0,lt++),at[O]=g},error:g=>y.error(g),complete:()=>{Nt++,(Nt===U||!l)&&(lt===U&&y.next(C?C.reduce((g,F,ne)=>(g[F]=at[ne],g),{}):at),y.complete())}}))}})}let H=(()=>{class D{constructor(y,U){this._renderer=y,this._elementRef=U,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(y,U){this._renderer.setProperty(this._elementRef.nativeElement,y,U)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq))},D.\u0275dir=a.lG2({type:D}),D})(),B=(()=>{class D extends H{}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const ee=new a.OlP("NgValueAccessor"),ye={provide:ee,useExisting:(0,a.Gpc)(()=>Ye),multi:!0};let Ye=(()=>{class D extends B{writeValue(y){this.setProperty("checked",y)}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,U){1&y&&a.NdJ("change",function(Nt){return U.onChange(Nt.target.checked)})("blur",function(){return U.onTouched()})},features:[a._Bn([ye]),a.qOj]}),D})();const Fe={provide:ee,useExisting:(0,a.Gpc)(()=>vt),multi:!0},_e=new a.OlP("CompositionEventMode");let vt=(()=>{class D extends H{constructor(y,U,at){super(y,U),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ze(){const D=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(y){this.setProperty("value",null==y?"":y)}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(_e,8))},D.\u0275dir=a.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(y,U){1&y&&a.NdJ("input",function(Nt){return U._handleInput(Nt.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(Nt){return U._compositionEnd(Nt.target.value)})},features:[a._Bn([Fe]),a.qOj]}),D})();function Je(D){return null==D||0===D.length}function zt(D){return null!=D&&"number"==typeof D.length}const ut=new a.OlP("NgValidators"),Ie=new a.OlP("NgAsyncValidators"),$e=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class et{static min(C){return function Se(D){return C=>{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y>D?{max:{max:D,actual:C.value}}:null}}(C)}static required(C){return J(C)}static requiredTrue(C){return function fe(D){return!0===D.value?null:{required:!0}}(C)}static email(C){return function he(D){return Je(D.value)||$e.test(D.value)?null:{email:!0}}(C)}static minLength(C){return function te(D){return C=>Je(C.value)||!zt(C.value)?null:C.value.lengthzt(C.value)&&C.value.length>D?{maxlength:{requiredLength:D,actualLength:C.value.length}}:null}(C)}static pattern(C){return ie(C)}static nullValidator(C){return null}static compose(C){return dt(C)}static composeAsync(C){return it(C)}}function J(D){return Je(D.value)?{required:!0}:null}function ie(D){if(!D)return Ue;let C,y;return"string"==typeof D?(y="","^"!==D.charAt(0)&&(y+="^"),y+=D,"$"!==D.charAt(D.length-1)&&(y+="$"),C=new RegExp(y)):(y=D.toString(),C=D),U=>{if(Je(U.value))return null;const at=U.value;return C.test(at)?null:{pattern:{requiredPattern:y,actualValue:at}}}}function Ue(D){return null}function je(D){return null!=D}function tt(D){const C=(0,a.QGY)(D)?(0,W.D)(D):D;return(0,a.CqO)(C),C}function ke(D){let C={};return D.forEach(y=>{C=null!=y?Object.assign(Object.assign({},C),y):C}),0===Object.keys(C).length?null:C}function ve(D,C){return C.map(y=>y(D))}function Qe(D){return D.map(C=>function mt(D){return!D.validate}(C)?C:y=>C.validate(y))}function dt(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return ke(ve(y,C))}}function _t(D){return null!=D?dt(Qe(D)):null}function it(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return function I(...D){if(1===D.length){const C=D[0];if((0,oe.k)(C))return R(C,null);if((0,_.K)(C)&&Object.getPrototypeOf(C)===Object.prototype){const y=Object.keys(C);return R(y.map(U=>C[U]),y)}}if("function"==typeof D[D.length-1]){const C=D.pop();return R(D=1===D.length&&(0,oe.k)(D[0])?D[0]:D,null).pipe((0,q.U)(y=>C(...y)))}return R(D,null)}(ve(y,C).map(tt)).pipe((0,q.U)(ke))}}function St(D){return null!=D?it(Qe(D)):null}function ot(D,C){return null===D?[C]:Array.isArray(D)?[...D,C]:[D,C]}function Et(D){return D._rawValidators}function Zt(D){return D._rawAsyncValidators}function mn(D){return D?Array.isArray(D)?D:[D]:[]}function vn(D,C){return Array.isArray(D)?D.includes(C):D===C}function Ut(D,C){const y=mn(C);return mn(D).forEach(at=>{vn(y,at)||y.push(at)}),y}function un(D,C){return mn(C).filter(y=>!vn(D,y))}class _n{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(C){this._rawValidators=C||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(C){this._rawAsyncValidators=C||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(C){this._onDestroyCallbacks.push(C)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(C=>C()),this._onDestroyCallbacks=[]}reset(C){this.control&&this.control.reset(C)}hasError(C,y){return!!this.control&&this.control.hasError(C,y)}getError(C,y){return this.control?this.control.getError(C,y):null}}class Cn extends _n{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dt extends _n{get formDirective(){return null}get path(){return null}}class Sn{constructor(C){this._cd=C}is(C){var y,U,at;return"submitted"===C?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(at=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===at?void 0:at[C])}}let qe=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Cn,2))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[a.qOj]}),D})(),x=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[a.qOj]}),D})();function $(D,C){return[...C.path,D]}function ue(D,C){Qt(D,C),C.valueAccessor.writeValue(D.value),function Vn(D,C){C.valueAccessor.registerOnChange(y=>{D._pendingValue=y,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&ri(D,C)})}(D,C),function jn(D,C){const y=(U,at)=>{C.valueAccessor.writeValue(U),at&&C.viewToModelUpdate(U)};D.registerOnChange(y),C._registerOnDestroy(()=>{D._unregisterOnChange(y)})}(D,C),function An(D,C){C.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&ri(D,C),"submit"!==D.updateOn&&D.markAsTouched()})}(D,C),function At(D,C){if(C.valueAccessor.setDisabledState){const y=U=>{C.valueAccessor.setDisabledState(U)};D.registerOnDisabledChange(y),C._registerOnDestroy(()=>{D._unregisterOnDisabledChange(y)})}}(D,C)}function Ae(D,C,y=!0){const U=()=>{};C.valueAccessor&&(C.valueAccessor.registerOnChange(U),C.valueAccessor.registerOnTouched(U)),gn(D,C),D&&(C._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function wt(D,C){D.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(C)})}function Qt(D,C){const y=Et(D);null!==C.validator?D.setValidators(ot(y,C.validator)):"function"==typeof y&&D.setValidators([y]);const U=Zt(D);null!==C.asyncValidator?D.setAsyncValidators(ot(U,C.asyncValidator)):"function"==typeof U&&D.setAsyncValidators([U]);const at=()=>D.updateValueAndValidity();wt(C._rawValidators,at),wt(C._rawAsyncValidators,at)}function gn(D,C){let y=!1;if(null!==D){if(null!==C.validator){const at=Et(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.validator);Nt.length!==at.length&&(y=!0,D.setValidators(Nt))}}if(null!==C.asyncValidator){const at=Zt(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.asyncValidator);Nt.length!==at.length&&(y=!0,D.setAsyncValidators(Nt))}}}const U=()=>{};return wt(C._rawValidators,U),wt(C._rawAsyncValidators,U),y}function ri(D,C){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),C.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function qt(D,C){Qt(D,C)}function Ve(D,C){if(!D.hasOwnProperty("model"))return!1;const y=D.model;return!!y.isFirstChange()||!Object.is(C,y.currentValue)}function It(D,C){D._syncPendingControls(),C.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function jt(D,C){if(!C)return null;let y,U,at;return Array.isArray(C),C.forEach(Nt=>{Nt.constructor===vt?y=Nt:function ht(D){return Object.getPrototypeOf(D.constructor)===B}(Nt)?U=Nt:at=Nt}),at||U||y||null}function fn(D,C){const y=D.indexOf(C);y>-1&&D.splice(y,1)}const Zn="VALID",ii="INVALID",En="PENDING",ei="DISABLED";function Tt(D){return(Te(D)?D.validators:D)||null}function rn(D){return Array.isArray(D)?_t(D):D||null}function bn(D,C){return(Te(C)?C.asyncValidators:D)||null}function Qn(D){return Array.isArray(D)?St(D):D||null}function Te(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const Ze=D=>D instanceof $n,De=D=>D instanceof Nn,rt=D=>D instanceof Rn;function Wt(D){return Ze(D)?D.value:D.getRawValue()}function on(D,C){const y=De(D),U=D.controls;if(!(y?Object.keys(U):U).length)throw new a.vHH(1e3,"");if(!U[C])throw new a.vHH(1001,"")}function Lt(D,C){De(D),D._forEachChild((U,at)=>{if(void 0===C[at])throw new a.vHH(1002,"")})}class Un{constructor(C,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=C,this._rawAsyncValidators=y,this._composedValidatorFn=rn(this._rawValidators),this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(C){this._rawValidators=this._composedValidatorFn=C}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(C){this._rawAsyncValidators=this._composedAsyncValidatorFn=C}get parent(){return this._parent}get valid(){return this.status===Zn}get invalid(){return this.status===ii}get pending(){return this.status==En}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(C){this._rawValidators=C,this._composedValidatorFn=rn(C)}setAsyncValidators(C){this._rawAsyncValidators=C,this._composedAsyncValidatorFn=Qn(C)}addValidators(C){this.setValidators(Ut(C,this._rawValidators))}addAsyncValidators(C){this.setAsyncValidators(Ut(C,this._rawAsyncValidators))}removeValidators(C){this.setValidators(un(C,this._rawValidators))}removeAsyncValidators(C){this.setAsyncValidators(un(C,this._rawAsyncValidators))}hasValidator(C){return vn(this._rawValidators,C)}hasAsyncValidator(C){return vn(this._rawAsyncValidators,C)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(C={}){this.touched=!0,this._parent&&!C.onlySelf&&this._parent.markAsTouched(C)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(C=>C.markAllAsTouched())}markAsUntouched(C={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}markAsDirty(C={}){this.pristine=!1,this._parent&&!C.onlySelf&&this._parent.markAsDirty(C)}markAsPristine(C={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}markAsPending(C={}){this.status=En,!1!==C.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!C.onlySelf&&this._parent.markAsPending(C)}disable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=ei,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this._updateValue(),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=Zn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(C){this._parent&&!C.onlySelf&&(this._parent.updateValueAndValidity(C),C.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(C){this._parent=C}updateValueAndValidity(C={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zn||this.status===En)&&this._runAsyncValidator(C.emitEvent)),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!C.onlySelf&&this._parent.updateValueAndValidity(C)}_updateTreeValidity(C={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(C)),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:Zn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(C){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const y=tt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:C})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(C,y={}){this.errors=C,this._updateControlsErrors(!1!==y.emitEvent)}get(C){return function Ln(D,C,y){if(null==C||(Array.isArray(C)||(C=C.split(y)),Array.isArray(C)&&0===C.length))return null;let U=D;return C.forEach(at=>{U=De(U)?U.controls.hasOwnProperty(at)?U.controls[at]:null:rt(U)&&U.at(at)||null}),U}(this,C,".")}getError(C,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[C]:null}hasError(C,y){return!!this.getError(C,y)}get root(){let C=this;for(;C._parent;)C=C._parent;return C}_updateControlsErrors(C){this.status=this._calculateStatus(),C&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(C)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(ii)?ii:Zn}_anyControlsHaveStatus(C){return this._anyControls(y=>y.status===C)}_anyControlsDirty(){return this._anyControls(C=>C.dirty)}_anyControlsTouched(){return this._anyControls(C=>C.touched)}_updatePristine(C={}){this.pristine=!this._anyControlsDirty(),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}_updateTouched(C={}){this.touched=this._anyControlsTouched(),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}_isBoxedValue(C){return"object"==typeof C&&null!==C&&2===Object.keys(C).length&&"value"in C&&"disabled"in C}_registerOnCollectionChange(C){this._onCollectionChange=C}_setUpdateStrategy(C){Te(C)&&null!=C.updateOn&&(this._updateOn=C.updateOn)}_parentMarkedDirty(C){return!C&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class $n extends Un{constructor(C=null,y,U){super(Tt(y),bn(U,y)),this._onChange=[],this._pendingChange=!1,this._applyFormState(C),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(C,y={}){this.value=this._pendingValue=C,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(C,y={}){this.setValue(C,y)}reset(C=null,y={}){this._applyFormState(C),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(C){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(C){this._onChange.push(C)}_unregisterOnChange(C){fn(this._onChange,C)}registerOnDisabledChange(C){this._onDisabledChange.push(C)}_unregisterOnDisabledChange(C){fn(this._onDisabledChange,C)}_forEachChild(C){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(C){this._isBoxedValue(C)?(this.value=this._pendingValue=C.value,C.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=C}}class Nn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(C,y){return this.controls[C]?this.controls[C]:(this.controls[C]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(C,y,U={}){this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],y&&this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(C){return this.controls.hasOwnProperty(C)&&this.controls[C].enabled}setValue(C,y={}){Lt(this,C),Object.keys(C).forEach(U=>{on(this,U),this.controls[U].setValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(Object.keys(C).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C={},y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(C,y,U)=>(C[U]=Wt(y),C))}_syncPendingControls(){let C=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&C(U,y)})}_setUpControls(){this._forEachChild(C=>{C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(C){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&C(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(C,y,U)=>((y.enabled||this.disabled)&&(C[U]=y.value),C))}_reduceChildren(C,y){let U=C;return this._forEachChild((at,Nt)=>{U=y(U,at,Nt)}),U}_allControlsDisabled(){for(const C of Object.keys(this.controls))if(this.controls[C].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Rn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(C){return this.controls[C]}push(C,y={}){this.controls.push(C),this._registerControl(C),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(C,y,U={}){this.controls.splice(C,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),y&&(this.controls.splice(C,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(C,y={}){Lt(this,C),C.forEach((U,at)=>{on(this,at),this.at(at).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(C.forEach((U,at)=>{this.at(at)&&this.at(at).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C=[],y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(C=>Wt(C))}clear(C={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:C.emitEvent}))}_syncPendingControls(){let C=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){this.controls.forEach((y,U)=>{C(y,U)})}_updateValue(){this.value=this.controls.filter(C=>C.enabled||this.disabled).map(C=>C.value)}_anyControls(C){return this.controls.some(y=>y.enabled&&C(y))}_setUpControls(){this._forEachChild(C=>this._registerControl(C))}_allControlsDisabled(){for(const C of this.controls)if(C.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(C){C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Dt,useExisting:(0,a.Gpc)(()=>se)},X=(()=>Promise.resolve(null))();let se=(()=>{class D extends Dt{constructor(y,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new Nn({},_t(y),St(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){X.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),ue(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),fn(this._directives,y)})}addFormGroup(y){X.then(()=>{const U=this._findContainer(y.path),at=new Nn({});qt(at,y),U.registerControl(y.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){X.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,It(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([qn]),a.qOj]}),D})(),k=(()=>{class D extends Dt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const Vt={provide:Dt,useExisting:(0,a.Gpc)(()=>hn)};let hn=(()=>{class D extends k{constructor(y,U,at){super(),this._parent=y,this._setValidators(U),this._setAsyncValidators(at)}_checkParentType(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,5),a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a._Bn([Vt]),a.qOj]}),D})();const ni={provide:Cn,useExisting:(0,a.Gpc)(()=>kn)},ai=(()=>Promise.resolve(null))();let kn=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this.control=new $n,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),Ve(y,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ue(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(y){ai.then(()=>{this.control.setValue(y,{emitViewToModelChange:!1})})}_updateDisabled(y){const U=y.isDisabled.currentValue,at=""===U||U&&"false"!==U;ai.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,9),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([ni]),a.qOj,a.TTD]}),D})(),bi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})(),wi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({}),D})();const Gi=new a.OlP("NgModelWithFormControlWarning"),yo={provide:Cn,useExisting:(0,a.Gpc)(()=>_o)};let _o=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(U),this.valueAccessor=jt(0,at)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const U=y.form.previousValue;U&&Ae(U,this,!1),ue(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ve(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ae(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_isControlChanged(y){return y.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Gi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([yo]),a.qOj,a.TTD]}),D})();const sr={provide:Dt,useExisting:(0,a.Gpc)(()=>Ii)};let Ii=(()=>{class D extends Dt{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(gn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return ue(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Ae(y.control||null,y,!1),fn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,It(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,at=this.form.get(y.path);U!==at&&(Ae(U||null,y),Ze(at)&&(ue(at,y),y.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);qt(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Re(D,C){return gn(D,C)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qt(this.form,this),this._oldForm&&gn(this._oldForm,this)}_checkFormPresent(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([sr]),a.qOj,a.TTD]}),D})();const Qo={provide:Cn,useExisting:(0,a.Gpc)(()=>oo)};let oo=(()=>{class D extends Cn{constructor(y,U,at,Nt,lt){super(),this._ngModelWarningConfig=lt,this._added=!1,this.update=new a.vpe,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}set isDisabled(y){}ngOnChanges(y){this._added||this._setUpControl(),Ve(y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,13),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Gi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([Qo]),a.qOj,a.TTD]}),D})();const Xo={provide:ut,useExisting:(0,a.Gpc)(()=>Pi),multi:!0};let Pi=(()=>{class D{constructor(){this._required=!1}get required(){return this._required}set required(y){this._required=null!=y&&!1!==y&&"false"!=`${y}`,this._onChange&&this._onChange()}validate(y){return this.required?J(y):null}registerOnValidatorChange(y){this._onChange=y}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("required",U.required?"":null)},inputs:{required:"required"},features:[a._Bn([Xo])]}),D})();const ct={provide:ut,useExisting:(0,a.Gpc)(()=>Mt),multi:!0};let Mt=(()=>{class D{constructor(){this._validator=Ue}ngOnChanges(y){"pattern"in y&&(this._createValidator(),this._onChange&&this._onChange())}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}_createValidator(){this._validator=ie(this.pattern)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[a._Bn([ct]),a.TTD]}),D})(),Dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[[wi]]}),D})(),dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yn=(()=>{class D{static withConfig(y){return{ngModule:D,providers:[{provide:Gi,useValue:y.warnOnNgModelWithFormControl}]}}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yt=(()=>{class D{group(y,U=null){const at=this._reduceControls(y);let O,Nt=null,lt=null;return null!=U&&(function On(D){return void 0!==D.asyncValidators||void 0!==D.validators||void 0!==D.updateOn}(U)?(Nt=null!=U.validators?U.validators:null,lt=null!=U.asyncValidators?U.asyncValidators:null,O=null!=U.updateOn?U.updateOn:void 0):(Nt=null!=U.validator?U.validator:null,lt=null!=U.asyncValidator?U.asyncValidator:null)),new Nn(at,{asyncValidators:lt,updateOn:O,validators:Nt})}control(y,U,at){return new $n(y,U,at)}array(y,U,at){const Nt=y.map(lt=>this._createControl(lt));return new Rn(Nt,U,at)}_reduceControls(y){const U={};return Object.keys(y).forEach(at=>{U[at]=this._createControl(y[at])}),U}_createControl(y){return Ze(y)||De(y)||rt(y)?y:Array.isArray(y)?this.control(y[0],y.length>1?y[1]:null,y.length>2?y[2]:null):this.control(y)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275prov=a.Yz7({token:D,factory:D.\u0275fac,providedIn:Yn}),D})()},6360:(yt,be,p)=>{p.d(be,{Qb:()=>C,PW:()=>Nt});var a=p(5e3),s=p(2313),G=p(1777);function oe(){return"undefined"!=typeof window&&void 0!==window.document}function q(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(O){switch(O.length){case 0:return new G.ZN;case 1:return O[0];default:return new G.ZE(O)}}function W(O,c,l,g,F={},ne={}){const ge=[],Ce=[];let Ke=-1,ft=null;if(g.forEach(Pt=>{const Bt=Pt.offset,Gt=Bt==Ke,ln=Gt&&ft||{};Object.keys(Pt).forEach(Kt=>{let Jt=Kt,pn=Pt[Kt];if("offset"!==Kt)switch(Jt=c.normalizePropertyName(Jt,ge),pn){case G.k1:pn=F[Kt];break;case G.l3:pn=ne[Kt];break;default:pn=c.normalizeStyleValue(Kt,Jt,pn,ge)}ln[Jt]=pn}),Gt||Ce.push(ln),ft=ln,Ke=Bt}),ge.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${ge.join(Pt)}`)}return Ce}function I(O,c,l,g){switch(c){case"start":O.onStart(()=>g(l&&R(l,"start",O)));break;case"done":O.onDone(()=>g(l&&R(l,"done",O)));break;case"destroy":O.onDestroy(()=>g(l&&R(l,"destroy",O)))}}function R(O,c,l){const g=l.totalTime,ne=H(O.element,O.triggerName,O.fromState,O.toState,c||O.phaseName,null==g?O.totalTime:g,!!l.disabled),ge=O._data;return null!=ge&&(ne._data=ge),ne}function H(O,c,l,g,F="",ne=0,ge){return{element:O,triggerName:c,fromState:l,toState:g,phaseName:F,totalTime:ne,disabled:!!ge}}function B(O,c,l){let g;return O instanceof Map?(g=O.get(c),g||O.set(c,g=l)):(g=O[c],g||(g=O[c]=l)),g}function ee(O){const c=O.indexOf(":");return[O.substring(1,c),O.substr(c+1)]}let ye=(O,c)=>!1,Ye=(O,c,l)=>[];(q()||"undefined"!=typeof Element)&&(ye=oe()?(O,c)=>{for(;c&&c!==document.documentElement;){if(c===O)return!0;c=c.parentNode||c.host}return!1}:(O,c)=>O.contains(c),Ye=(O,c,l)=>{if(l)return Array.from(O.querySelectorAll(c));const g=O.querySelector(c);return g?[g]:[]});let _e=null,vt=!1;function Je(O){_e||(_e=function zt(){return"undefined"!=typeof document?document.body:null}()||{},vt=!!_e.style&&"WebkitAppearance"in _e.style);let c=!0;return _e.style&&!function ze(O){return"ebkit"==O.substring(1,6)}(O)&&(c=O in _e.style,!c&&vt&&(c="Webkit"+O.charAt(0).toUpperCase()+O.substr(1)in _e.style)),c}const ut=ye,Ie=Ye;function $e(O){const c={};return Object.keys(O).forEach(l=>{const g=l.replace(/([a-z])([A-Z])/g,"$1-$2");c[g]=O[l]}),c}let et=(()=>{class O{validateStyleProperty(l){return Je(l)}matchesElement(l,g){return!1}containsElement(l,g){return ut(l,g)}query(l,g,F){return Ie(l,g,F)}computeStyle(l,g,F){return F||""}animate(l,g,F,ne,ge,Ce=[],Ke){return new G.ZN(F,ne)}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})(),Se=(()=>{class O{}return O.NOOP=new et,O})();const he="ng-enter",te="ng-leave",le="ng-trigger",ie=".ng-trigger",Ue="ng-animating",je=".ng-animating";function tt(O){if("number"==typeof O)return O;const c=O.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:ke(parseFloat(c[1]),c[2])}function ke(O,c){return"s"===c?1e3*O:O}function ve(O,c,l){return O.hasOwnProperty("duration")?O:function mt(O,c,l){let F,ne=0,ge="";if("string"==typeof O){const Ce=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ce)return c.push(`The provided timing value "${O}" is invalid.`),{duration:0,delay:0,easing:""};F=ke(parseFloat(Ce[1]),Ce[2]);const Ke=Ce[3];null!=Ke&&(ne=ke(parseFloat(Ke),Ce[4]));const ft=Ce[5];ft&&(ge=ft)}else F=O;if(!l){let Ce=!1,Ke=c.length;F<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ce=!0),ne<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ce=!0),Ce&&c.splice(Ke,0,`The provided timing value "${O}" is invalid.`)}return{duration:F,delay:ne,easing:ge}}(O,c,l)}function Qe(O,c={}){return Object.keys(O).forEach(l=>{c[l]=O[l]}),c}function _t(O,c,l={}){if(c)for(let g in O)l[g]=O[g];else Qe(O,l);return l}function it(O,c,l){return l?c+":"+l+";":""}function St(O){let c="";for(let l=0;l{const F=Dt(g);l&&!l.hasOwnProperty(g)&&(l[g]=O.style[F]),O.style[F]=c[g]}),q()&&St(O))}function Et(O,c){O.style&&(Object.keys(c).forEach(l=>{const g=Dt(l);O.style[g]=""}),q()&&St(O))}function Zt(O){return Array.isArray(O)?1==O.length?O[0]:(0,G.vP)(O):O}const vn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ut(O){let c=[];if("string"==typeof O){let l;for(;l=vn.exec(O);)c.push(l[1]);vn.lastIndex=0}return c}function un(O,c,l){const g=O.toString(),F=g.replace(vn,(ne,ge)=>{let Ce=c[ge];return c.hasOwnProperty(ge)||(l.push(`Please provide a value for the animation param ${ge}`),Ce=""),Ce.toString()});return F==g?O:F}function _n(O){const c=[];let l=O.next();for(;!l.done;)c.push(l.value),l=O.next();return c}const Cn=/-+([a-z0-9])/g;function Dt(O){return O.replace(Cn,(...c)=>c[1].toUpperCase())}function Sn(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cn(O,c){return 0===O||0===c}function Mn(O,c,l){const g=Object.keys(l);if(g.length&&c.length){let ne=c[0],ge=[];if(g.forEach(Ce=>{ne.hasOwnProperty(Ce)||ge.push(Ce),ne[Ce]=l[Ce]}),ge.length)for(var F=1;Ffunction pe(O,c,l){if(":"==O[0]){const Ke=function j(O,c){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g) *"}}(O,l);if("function"==typeof Ke)return void c.push(Ke);O=Ke}const g=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(`The provided transition expression "${O}" is not supported`),c;const F=g[1],ne=g[2],ge=g[3];c.push(Ge(F,ge));"<"==ne[0]&&!(F==z&&ge==z)&&c.push(Ge(ge,F))}(g,l,c)):l.push(O),l}const me=new Set(["true","1"]),He=new Set(["false","0"]);function Ge(O,c){const l=me.has(O)||He.has(O),g=me.has(c)||He.has(c);return(F,ne)=>{let ge=O==z||O==F,Ce=c==z||c==ne;return!ge&&l&&"boolean"==typeof F&&(ge=F?me.has(O):He.has(O)),!Ce&&g&&"boolean"==typeof ne&&(Ce=ne?me.has(c):He.has(c)),ge&&Ce}}const Me=new RegExp("s*:selfs*,?","g");function V(O,c,l){return new nt(O).build(c,l)}class nt{constructor(c){this._driver=c}build(c,l){const g=new L(l);return this._resetContextStyleTimingState(g),qe(this,Zt(c),g)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,l){let g=l.queryCount=0,F=l.depCount=0;const ne=[],ge=[];return"@"==c.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ce=>{if(this._resetContextStyleTimingState(l),0==Ce.type){const Ke=Ce,ft=Ke.name;ft.toString().split(/\s*,\s*/).forEach(Pt=>{Ke.name=Pt,ne.push(this.visitState(Ke,l))}),Ke.name=ft}else if(1==Ce.type){const Ke=this.visitTransition(Ce,l);g+=Ke.queryCount,F+=Ke.depCount,ge.push(Ke)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ne,transitions:ge,queryCount:g,depCount:F,options:null}}visitState(c,l){const g=this.visitStyle(c.styles,l),F=c.options&&c.options.params||null;if(g.containsDynamicStyles){const ne=new Set,ge=F||{};if(g.styles.forEach(Ce=>{if($(Ce)){const Ke=Ce;Object.keys(Ke).forEach(ft=>{Ut(Ke[ft]).forEach(Pt=>{ge.hasOwnProperty(Pt)||ne.add(Pt)})})}}),ne.size){const Ce=_n(ne.values());l.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ce.join(", ")}`)}}return{type:0,name:c.name,style:g,options:F?{params:F}:null}}visitTransition(c,l){l.queryCount=0,l.depCount=0;const g=qe(this,Zt(c.animation),l);return{type:1,matchers:P(c.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:Ae(c.options)}}visitSequence(c,l){return{type:2,steps:c.steps.map(g=>qe(this,g,l)),options:Ae(c.options)}}visitGroup(c,l){const g=l.currentTime;let F=0;const ne=c.steps.map(ge=>{l.currentTime=g;const Ce=qe(this,ge,l);return F=Math.max(F,l.currentTime),Ce});return l.currentTime=F,{type:3,steps:ne,options:Ae(c.options)}}visitAnimate(c,l){const g=function ue(O,c){let l=null;if(O.hasOwnProperty("duration"))l=O;else if("number"==typeof O)return wt(ve(O,c).duration,0,"");const g=O;if(g.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=wt(0,0,"");return ne.dynamic=!0,ne.strValue=g,ne}return l=l||ve(g,c),wt(l.duration,l.delay,l.easing)}(c.timings,l.errors);l.currentAnimateTimings=g;let F,ne=c.styles?c.styles:(0,G.oB)({});if(5==ne.type)F=this.visitKeyframes(ne,l);else{let ge=c.styles,Ce=!1;if(!ge){Ce=!0;const ft={};g.easing&&(ft.easing=g.easing),ge=(0,G.oB)(ft)}l.currentTime+=g.duration+g.delay;const Ke=this.visitStyle(ge,l);Ke.isEmptyStep=Ce,F=Ke}return l.currentAnimateTimings=null,{type:4,timings:g,style:F,options:null}}visitStyle(c,l){const g=this._makeStyleAst(c,l);return this._validateStyleAst(g,l),g}_makeStyleAst(c,l){const g=[];Array.isArray(c.styles)?c.styles.forEach(ge=>{"string"==typeof ge?ge==G.l3?g.push(ge):l.errors.push(`The provided style string value ${ge} is not allowed.`):g.push(ge)}):g.push(c.styles);let F=!1,ne=null;return g.forEach(ge=>{if($(ge)){const Ce=ge,Ke=Ce.easing;if(Ke&&(ne=Ke,delete Ce.easing),!F)for(let ft in Ce)if(Ce[ft].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:g,easing:ne,offset:c.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(c,l){const g=l.currentAnimateTimings;let F=l.currentTime,ne=l.currentTime;g&&ne>0&&(ne-=g.duration+g.delay),c.styles.forEach(ge=>{"string"!=typeof ge&&Object.keys(ge).forEach(Ce=>{if(!this._driver.validateStyleProperty(Ce))return void l.errors.push(`The provided animation property "${Ce}" is not a supported CSS property for animations`);const Ke=l.collectedStyles[l.currentQuerySelector],ft=Ke[Ce];let Pt=!0;ft&&(ne!=F&&ne>=ft.startTime&&F<=ft.endTime&&(l.errors.push(`The CSS property "${Ce}" that exists between the times of "${ft.startTime}ms" and "${ft.endTime}ms" is also being animated in a parallel animation between the times of "${ne}ms" and "${F}ms"`),Pt=!1),ne=ft.startTime),Pt&&(Ke[Ce]={startTime:ne,endTime:F}),l.options&&function mn(O,c,l){const g=c.params||{},F=Ut(O);F.length&&F.forEach(ne=>{g.hasOwnProperty(ne)||l.push(`Unable to resolve the local animation param ${ne} in the given list of values`)})}(ge[Ce],l.options,l.errors)})})}visitKeyframes(c,l){const g={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),g;let ne=0;const ge=[];let Ce=!1,Ke=!1,ft=0;const Pt=c.steps.map(Jn=>{const ti=this._makeStyleAst(Jn,l);let _i=null!=ti.offset?ti.offset:function E(O){if("string"==typeof O)return null;let c=null;if(Array.isArray(O))O.forEach(l=>{if($(l)&&l.hasOwnProperty("offset")){const g=l;c=parseFloat(g.offset),delete g.offset}});else if($(O)&&O.hasOwnProperty("offset")){const l=O;c=parseFloat(l.offset),delete l.offset}return c}(ti.styles),di=0;return null!=_i&&(ne++,di=ti.offset=_i),Ke=Ke||di<0||di>1,Ce=Ce||di0&&ne{const _i=Gt>0?ti==ln?1:Gt*ti:ge[ti],di=_i*pn;l.currentTime=Kt+Jt.delay+di,Jt.duration=di,this._validateStyleAst(Jn,l),Jn.offset=_i,g.styles.push(Jn)}),g}visitReference(c,l){return{type:8,animation:qe(this,Zt(c.animation),l),options:Ae(c.options)}}visitAnimateChild(c,l){return l.depCount++,{type:9,options:Ae(c.options)}}visitAnimateRef(c,l){return{type:10,animation:this.visitReference(c.animation,l),options:Ae(c.options)}}visitQuery(c,l){const g=l.currentQuerySelector,F=c.options||{};l.queryCount++,l.currentQuery=c;const[ne,ge]=function ce(O){const c=!!O.split(/\s*,\s*/).find(l=>":self"==l);return c&&(O=O.replace(Me,"")),O=O.replace(/@\*/g,ie).replace(/@\w+/g,l=>ie+"-"+l.substr(1)).replace(/:animating/g,je),[O,c]}(c.selector);l.currentQuerySelector=g.length?g+" "+ne:ne,B(l.collectedStyles,l.currentQuerySelector,{});const Ce=qe(this,Zt(c.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:ne,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Ce,originalSelector:c.selector,options:Ae(c.options)}}visitStagger(c,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const g="full"===c.timings?{duration:0,delay:0,easing:"full"}:ve(c.timings,l.errors,!0);return{type:12,animation:qe(this,Zt(c.animation),l),timings:g,options:null}}}class L{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function $(O){return!Array.isArray(O)&&"object"==typeof O}function Ae(O){return O?(O=Qe(O)).params&&(O.params=function Ne(O){return O?Qe(O):null}(O.params)):O={},O}function wt(O,c,l){return{duration:O,delay:c,easing:l}}function At(O,c,l,g,F,ne,ge=null,Ce=!1){return{type:1,element:O,keyframes:c,preStyleProps:l,postStyleProps:g,duration:F,delay:ne,totalTime:F+ne,easing:ge,subTimeline:Ce}}class Qt{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,l){let g=this._map.get(c);g||this._map.set(c,g=[]),g.push(...l)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),jn=new RegExp(":leave","g");function qt(O,c,l,g,F,ne={},ge={},Ce,Ke,ft=[]){return(new Re).buildKeyframes(O,c,l,g,F,ne,ge,Ce,Ke,ft)}class Re{buildKeyframes(c,l,g,F,ne,ge,Ce,Ke,ft,Pt=[]){ft=ft||new Qt;const Bt=new ae(c,l,ft,F,ne,Pt,[]);Bt.options=Ke,Bt.currentTimeline.setStyles([ge],null,Bt.errors,Ke),qe(this,g,Bt);const Gt=Bt.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(Ce).length){let ln;for(let Kt=Gt.length-1;Kt>=0;Kt--){const Jt=Gt[Kt];if(Jt.element===l){ln=Jt;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([Ce],null,Bt.errors,Ke)}return Gt.length?Gt.map(ln=>ln.buildKeyframes()):[At(l,[],[],[],0,0,"",!1)]}visitTrigger(c,l){}visitState(c,l){}visitTransition(c,l){}visitAnimateChild(c,l){const g=l.subInstructions.get(l.element);if(g){const F=l.createSubContext(c.options),ne=l.currentTimeline.currentTime,ge=this._visitSubInstructions(g,F,F.options);ne!=ge&&l.transformIntoNewTimeline(ge)}l.previousNode=c}visitAnimateRef(c,l){const g=l.createSubContext(c.options);g.transformIntoNewTimeline(),this.visitReference(c.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=c}_visitSubInstructions(c,l,g){let ne=l.currentTimeline.currentTime;const ge=null!=g.duration?tt(g.duration):null,Ce=null!=g.delay?tt(g.delay):null;return 0!==ge&&c.forEach(Ke=>{const ft=l.appendInstructionToTimeline(Ke,ge,Ce);ne=Math.max(ne,ft.duration+ft.delay)}),ne}visitReference(c,l){l.updateOptions(c.options,!0),qe(this,c.animation,l),l.previousNode=c}visitSequence(c,l){const g=l.subContextCount;let F=l;const ne=c.options;if(ne&&(ne.params||ne.delay)&&(F=l.createSubContext(ne),F.transformIntoNewTimeline(),null!=ne.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=we);const ge=tt(ne.delay);F.delayNextStep(ge)}c.steps.length&&(c.steps.forEach(ge=>qe(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>g&&F.transformIntoNewTimeline()),l.previousNode=c}visitGroup(c,l){const g=[];let F=l.currentTimeline.currentTime;const ne=c.options&&c.options.delay?tt(c.options.delay):0;c.steps.forEach(ge=>{const Ce=l.createSubContext(c.options);ne&&Ce.delayNextStep(ne),qe(this,ge,Ce),F=Math.max(F,Ce.currentTimeline.currentTime),g.push(Ce.currentTimeline)}),g.forEach(ge=>l.currentTimeline.mergeTimelineCollectedStyles(ge)),l.transformIntoNewTimeline(F),l.previousNode=c}_visitTiming(c,l){if(c.dynamic){const g=c.strValue;return ve(l.params?un(g,l.params,l.errors):g,l.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,l){const g=l.currentAnimateTimings=this._visitTiming(c.timings,l),F=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),F.snapshotCurrentStyles());const ne=c.style;5==ne.type?this.visitKeyframes(ne,l):(l.incrementTime(g.duration),this.visitStyle(ne,l),F.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=c}visitStyle(c,l){const g=l.currentTimeline,F=l.currentAnimateTimings;!F&&g.getCurrentStyleProperties().length&&g.forwardFrame();const ne=F&&F.easing||c.easing;c.isEmptyStep?g.applyEmptyStep(ne):g.setStyles(c.styles,ne,l.errors,l.options),l.previousNode=c}visitKeyframes(c,l){const g=l.currentAnimateTimings,F=l.currentTimeline.duration,ne=g.duration,Ce=l.createSubContext().currentTimeline;Ce.easing=g.easing,c.styles.forEach(Ke=>{Ce.forwardTime((Ke.offset||0)*ne),Ce.setStyles(Ke.styles,Ke.easing,l.errors,l.options),Ce.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(Ce),l.transformIntoNewTimeline(F+ne),l.previousNode=c}visitQuery(c,l){const g=l.currentTimeline.currentTime,F=c.options||{},ne=F.delay?tt(F.delay):0;ne&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=we);let ge=g;const Ce=l.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!F.optional,l.errors);l.currentQueryTotal=Ce.length;let Ke=null;Ce.forEach((ft,Pt)=>{l.currentQueryIndex=Pt;const Bt=l.createSubContext(c.options,ft);ne&&Bt.delayNextStep(ne),ft===l.element&&(Ke=Bt.currentTimeline),qe(this,c.animation,Bt),Bt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Bt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ge),Ke&&(l.currentTimeline.mergeTimelineCollectedStyles(Ke),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=c}visitStagger(c,l){const g=l.parentContext,F=l.currentTimeline,ne=c.timings,ge=Math.abs(ne.duration),Ce=ge*(l.currentQueryTotal-1);let Ke=ge*l.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":Ke=Ce-Ke;break;case"full":Ke=g.currentStaggerTime}const Pt=l.currentTimeline;Ke&&Pt.delayNextStep(Ke);const Bt=Pt.currentTime;qe(this,c.animation,l),l.previousNode=c,g.currentStaggerTime=F.currentTime-Bt+(F.startTime-g.currentTimeline.startTime)}}const we={};class ae{constructor(c,l,g,F,ne,ge,Ce,Ke){this._driver=c,this.element=l,this.subInstructions=g,this._enterClassName=F,this._leaveClassName=ne,this.errors=ge,this.timelines=Ce,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new Ve(this._driver,l,0),Ce.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,l){if(!c)return;const g=c;let F=this.options;null!=g.duration&&(F.duration=tt(g.duration)),null!=g.delay&&(F.delay=tt(g.delay));const ne=g.params;if(ne){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(ne).forEach(Ce=>{(!l||!ge.hasOwnProperty(Ce))&&(ge[Ce]=un(ne[Ce],ge,this.errors))})}}_copyOptions(){const c={};if(this.options){const l=this.options.params;if(l){const g=c.params={};Object.keys(l).forEach(F=>{g[F]=l[F]})}}return c}createSubContext(c=null,l,g){const F=l||this.element,ne=new ae(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,g||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(c),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(c){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,l,g){const F={duration:null!=l?l:c.duration,delay:this.currentTimeline.currentTime+(null!=g?g:0)+c.delay,easing:""},ne=new ht(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,F,c.stretchStartingKeyframe);return this.timelines.push(ne),F}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,l,g,F,ne,ge){let Ce=[];if(F&&Ce.push(this.element),c.length>0){c=(c=c.replace(An,"."+this._enterClassName)).replace(jn,"."+this._leaveClassName);let ft=this._driver.query(this.element,c,1!=g);0!==g&&(ft=g<0?ft.slice(ft.length+g,ft.length):ft.slice(0,g)),Ce.push(...ft)}return!ne&&0==Ce.length&&ge.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),Ce}}class Ve{constructor(c,l,g,F){this._driver=c,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=F,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+c),l&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,l){return this.applyStylesToKeyframe(),new Ve(this._driver,c,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,l){this._localTimelineStyles[c]=l,this._globalTimelineStyles[c]=l,this._styleSummary[c]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||G.l3,this._currentKeyframe[l]=G.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,l,g,F){l&&(this._previousKeyframe.easing=l);const ne=F&&F.params||{},ge=function jt(O,c){const l={};let g;return O.forEach(F=>{"*"===F?(g=g||Object.keys(c),g.forEach(ne=>{l[ne]=G.l3})):_t(F,!1,l)}),l}(c,this._globalTimelineStyles);Object.keys(ge).forEach(Ce=>{const Ke=un(ge[Ce],ne,g);this._pendingStyles[Ce]=Ke,this._localTimelineStyles.hasOwnProperty(Ce)||(this._backFill[Ce]=this._globalTimelineStyles.hasOwnProperty(Ce)?this._globalTimelineStyles[Ce]:G.l3),this._updateStyle(Ce,Ke)})}applyStylesToKeyframe(){const c=this._pendingStyles,l=Object.keys(c);0!=l.length&&(this._pendingStyles={},l.forEach(g=>{this._currentKeyframe[g]=c[g]}),Object.keys(this._localTimelineStyles).forEach(g=>{this._currentKeyframe.hasOwnProperty(g)||(this._currentKeyframe[g]=this._localTimelineStyles[g])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const l=this._localTimelineStyles[c];this._pendingStyles[c]=l,this._updateStyle(c,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let l in this._currentKeyframe)c.push(l);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(l=>{const g=this._styleSummary[l],F=c._styleSummary[l];(!g||F.time>g.time)&&this._updateStyle(l,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Ce,Ke)=>{const ft=_t(Ce,!0);Object.keys(ft).forEach(Pt=>{const Bt=ft[Pt];Bt==G.k1?c.add(Pt):Bt==G.l3&&l.add(Pt)}),g||(ft.offset=Ke/this.duration),F.push(ft)});const ne=c.size?_n(c.values()):[],ge=l.size?_n(l.values()):[];if(g){const Ce=F[0],Ke=Qe(Ce);Ce.offset=0,Ke.offset=1,F=[Ce,Ke]}return At(this.element,F,ne,ge,this.duration,this.startTime,this.easing,!1)}}class ht extends Ve{constructor(c,l,g,F,ne,ge,Ce=!1){super(c,l,ge.delay),this.keyframes=g,this.preStyleProps=F,this.postStyleProps=ne,this._stretchStartingKeyframe=Ce,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:l,duration:g,easing:F}=this.timings;if(this._stretchStartingKeyframe&&l){const ne=[],ge=g+l,Ce=l/ge,Ke=_t(c[0],!1);Ke.offset=0,ne.push(Ke);const ft=_t(c[0],!1);ft.offset=It(Ce),ne.push(ft);const Pt=c.length-1;for(let Bt=1;Bt<=Pt;Bt++){let Gt=_t(c[Bt],!1);Gt.offset=It((l+Gt.offset*g)/ge),ne.push(Gt)}g=ge,l=0,F="",c=ne}return At(this.element,c,this.preStyleProps,this.postStyleProps,g,l,F,!0)}}function It(O,c=3){const l=Math.pow(10,c-1);return Math.round(O*l)/l}class Pn{}class Zn extends Pn{normalizePropertyName(c,l){return Dt(c)}normalizeStyleValue(c,l,g,F){let ne="";const ge=g.toString().trim();if(ii[l]&&0!==g&&"0"!==g)if("number"==typeof g)ne="px";else{const Ce=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Ce&&0==Ce[1].length&&F.push(`Please provide a CSS unit value for ${c}:${g}`)}return ge+ne}}const ii=(()=>function En(O){const c={};return O.forEach(l=>c[l]=!0),c}("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".split(",")))();function ei(O,c,l,g,F,ne,ge,Ce,Ke,ft,Pt,Bt,Gt){return{type:0,element:O,triggerName:c,isRemovalTransition:F,fromState:l,fromStyles:ne,toState:g,toStyles:ge,timelines:Ce,queriedElements:Ke,preStyleProps:ft,postStyleProps:Pt,totalTime:Bt,errors:Gt}}const Ln={};class Tt{constructor(c,l,g){this._triggerName=c,this.ast=l,this._stateStyles=g}match(c,l,g,F){return function rn(O,c,l,g,F){return O.some(ne=>ne(c,l,g,F))}(this.ast.matchers,c,l,g,F)}buildStyles(c,l,g){const F=this._stateStyles["*"],ne=this._stateStyles[c],ge=F?F.buildStyles(l,g):{};return ne?ne.buildStyles(l,g):ge}build(c,l,g,F,ne,ge,Ce,Ke,ft,Pt){const Bt=[],Gt=this.ast.options&&this.ast.options.params||Ln,Kt=this.buildStyles(g,Ce&&Ce.params||Ln,Bt),Jt=Ke&&Ke.params||Ln,pn=this.buildStyles(F,Jt,Bt),Jn=new Set,ti=new Map,_i=new Map,di="void"===F,qi={params:Object.assign(Object.assign({},Gt),Jt)},Oi=Pt?[]:qt(c,l,this.ast.animation,ne,ge,Kt,pn,qi,ft,Bt);let fi=0;if(Oi.forEach(ji=>{fi=Math.max(ji.duration+ji.delay,fi)}),Bt.length)return ei(l,this._triggerName,g,F,di,Kt,pn,[],[],ti,_i,fi,Bt);Oi.forEach(ji=>{const Li=ji.element,Ho=B(ti,Li,{});ji.preStyleProps.forEach(ao=>Ho[ao]=!0);const zo=B(_i,Li,{});ji.postStyleProps.forEach(ao=>zo[ao]=!0),Li!==l&&Jn.add(Li)});const Yi=_n(Jn.values());return ei(l,this._triggerName,g,F,di,Kt,pn,Oi,Yi,ti,_i,fi)}}class bn{constructor(c,l,g){this.styles=c,this.defaultParams=l,this.normalizer=g}buildStyles(c,l){const g={},F=Qe(this.defaultParams);return Object.keys(c).forEach(ne=>{const ge=c[ne];null!=ge&&(F[ne]=ge)}),this.styles.styles.forEach(ne=>{if("string"!=typeof ne){const ge=ne;Object.keys(ge).forEach(Ce=>{let Ke=ge[Ce];Ke.length>1&&(Ke=un(Ke,F,l));const ft=this.normalizer.normalizePropertyName(Ce,l);Ke=this.normalizer.normalizeStyleValue(Ce,ft,Ke,l),g[ft]=Ke})}}),g}}class Te{constructor(c,l,g){this.name=c,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states={},l.states.forEach(F=>{this.states[F.name]=new bn(F.style,F.options&&F.options.params||{},g)}),De(this.states,"true","1"),De(this.states,"false","0"),l.transitions.forEach(F=>{this.transitionFactories.push(new Tt(c,F,this.states))}),this.fallbackTransition=function Ze(O,c,l){return new Tt(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Ce)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,l,g,F){return this.transitionFactories.find(ge=>ge.match(c,l,g,F))||null}matchStyles(c,l,g){return this.fallbackTransition.buildStyles(c,l,g)}}function De(O,c,l){O.hasOwnProperty(c)?O.hasOwnProperty(l)||(O[l]=O[c]):O.hasOwnProperty(l)&&(O[c]=O[l])}const rt=new Qt;class Wt{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._animations={},this._playersById={},this.players=[]}register(c,l){const g=[],F=V(this._driver,l,g);if(g.length)throw new Error(`Unable to build the animation due to the following errors: ${g.join("\n")}`);this._animations[c]=F}_buildPlayer(c,l,g){const F=c.element,ne=W(0,this._normalizer,0,c.keyframes,l,g);return this._driver.animate(F,ne,c.duration,c.delay,c.easing,[],!0)}create(c,l,g={}){const F=[],ne=this._animations[c];let ge;const Ce=new Map;if(ne?(ge=qt(this._driver,l,ne,he,te,{},{},g,rt,F),ge.forEach(Pt=>{const Bt=B(Ce,Pt.element,{});Pt.postStyleProps.forEach(Gt=>Bt[Gt]=null)})):(F.push("The requested animation doesn't exist or has already been destroyed"),ge=[]),F.length)throw new Error(`Unable to create the animation due to the following errors: ${F.join("\n")}`);Ce.forEach((Pt,Bt)=>{Object.keys(Pt).forEach(Gt=>{Pt[Gt]=this._driver.computeStyle(Bt,Gt,G.l3)})});const ft=_(ge.map(Pt=>{const Bt=Ce.get(Pt.element);return this._buildPlayer(Pt,{},Bt)}));return this._playersById[c]=ft,ft.onDestroy(()=>this.destroy(c)),this.players.push(ft),ft}destroy(c){const l=this._getPlayer(c);l.destroy(),delete this._playersById[c];const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(c){const l=this._playersById[c];if(!l)throw new Error(`Unable to find the timeline player referenced by ${c}`);return l}listen(c,l,g,F){const ne=H(l,"","","");return I(this._getPlayer(c),g,ne,F),()=>{}}command(c,l,g,F){if("register"==g)return void this.register(c,F[0]);if("create"==g)return void this.create(c,l,F[0]||{});const ne=this._getPlayer(c);switch(g){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(c)}}}const on="ng-animate-queued",Un="ng-animate-disabled",qn=[],X={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},se={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k="__ng_removed";class Ee{constructor(c,l=""){this.namespaceId=l;const g=c&&c.hasOwnProperty("value");if(this.value=function ai(O){return null!=O?O:null}(g?c.value:c),g){const ne=Qe(c);delete ne.value,this.options=ne}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const l=c.params;if(l){const g=this.options.params;Object.keys(l).forEach(F=>{null==g[F]&&(g[F]=l[F])})}}}const st="void",Ct=new Ee(st);class Ot{constructor(c,l,g){this.id=c,this.hostElement=l,this._engine=g,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,ui(l,this._hostClassName)}listen(c,l,g,F){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${g}" because the animation trigger "${l}" doesn't exist!`);if(null==g||0==g.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if(!function bi(O){return"start"==O||"done"==O}(g))throw new Error(`The provided animation trigger event "${g}" for the animation trigger "${l}" is not supported!`);const ne=B(this._elementListeners,c,[]),ge={name:l,phase:g,callback:F};ne.push(ge);const Ce=B(this._engine.statesByElement,c,{});return Ce.hasOwnProperty(l)||(ui(c,le),ui(c,le+"-"+l),Ce[l]=Ct),()=>{this._engine.afterFlush(()=>{const Ke=ne.indexOf(ge);Ke>=0&&ne.splice(Ke,1),this._triggers[l]||delete Ce[l]})}}register(c,l){return!this._triggers[c]&&(this._triggers[c]=l,!0)}_getTrigger(c){const l=this._triggers[c];if(!l)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return l}trigger(c,l,g,F=!0){const ne=this._getTrigger(l),ge=new hn(this.id,l,c);let Ce=this._engine.statesByElement.get(c);Ce||(ui(c,le),ui(c,le+"-"+l),this._engine.statesByElement.set(c,Ce={}));let Ke=Ce[l];const ft=new Ee(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ke&&ft.absorbOptions(Ke.options),Ce[l]=ft,Ke||(Ke=Ct),ft.value!==st&&Ke.value===ft.value){if(!function Zo(O,c){const l=Object.keys(O),g=Object.keys(c);if(l.length!=g.length)return!1;for(let F=0;F{Et(c,pn),ot(c,Jn)})}return}const Gt=B(this._engine.playersByElement,c,[]);Gt.forEach(Jt=>{Jt.namespaceId==this.id&&Jt.triggerName==l&&Jt.queued&&Jt.destroy()});let ln=ne.matchTransition(Ke.value,ft.value,c,ft.params),Kt=!1;if(!ln){if(!F)return;ln=ne.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:l,transition:ln,fromState:Ke,toState:ft,player:ge,isFallbackTransition:Kt}),Kt||(ui(c,on),ge.onStart(()=>{wi(c,on)})),ge.onDone(()=>{let Jt=this.players.indexOf(ge);Jt>=0&&this.players.splice(Jt,1);const pn=this._engine.playersByElement.get(c);if(pn){let Jn=pn.indexOf(ge);Jn>=0&&pn.splice(Jn,1)}}),this.players.push(ge),Gt.push(ge),ge}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((l,g)=>{delete l[c]}),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(F=>F.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const l=this._engine.playersByElement.get(c);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,l){const g=this._engine.driver.query(c,ie,!0);g.forEach(F=>{if(F[k])return;const ne=this._engine.fetchNamespacesByElement(F);ne.size?ne.forEach(ge=>ge.triggerLeaveAnimation(F,l,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(c,l,g,F){const ne=this._engine.statesByElement.get(c),ge=new Map;if(ne){const Ce=[];if(Object.keys(ne).forEach(Ke=>{if(ge.set(Ke,ne[Ke].value),this._triggers[Ke]){const ft=this.trigger(c,Ke,st,F);ft&&Ce.push(ft)}}),Ce.length)return this._engine.markElementAsRemoved(this.id,c,!0,l,ge),g&&_(Ce).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const l=this._elementListeners.get(c),g=this._engine.statesByElement.get(c);if(l&&g){const F=new Set;l.forEach(ne=>{const ge=ne.name;if(F.has(ge))return;F.add(ge);const Ke=this._triggers[ge].fallbackTransition,ft=g[ge]||Ct,Pt=new Ee(st),Bt=new hn(this.id,ge,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:ge,transition:Ke,fromState:ft,toState:Pt,player:Bt,isFallbackTransition:!0})})}}removeNode(c,l){const g=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,l),this.triggerLeaveAnimation(c,l,!0))return;let F=!1;if(g.totalAnimations){const ne=g.players.length?g.playersByQueriedElement.get(c):[];if(ne&&ne.length)F=!0;else{let ge=c;for(;ge=ge.parentNode;)if(g.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(c),F)g.markElementAsRemoved(this.id,c,!1,l);else{const ne=c[k];(!ne||ne===X)&&(g.afterFlush(()=>this.clearElementCache(c)),g.destroyInnerAnimations(c),g._onRemovalComplete(c,l))}}insertNode(c,l){ui(c,this._hostClassName)}drainQueuedTransitions(c){const l=[];return this._queue.forEach(g=>{const F=g.player;if(F.destroyed)return;const ne=g.element,ge=this._elementListeners.get(ne);ge&&ge.forEach(Ce=>{if(Ce.name==g.triggerName){const Ke=H(ne,g.triggerName,g.fromState.value,g.toState.value);Ke._data=c,I(g.player,Ce.phase,Ke,Ce.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):l.push(g)}),this._queue=[],l.sort((g,F)=>{const ne=g.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==ne||0==ge?ne-ge:this._engine.driver.containsElement(g.element,F.element)?1:-1})}destroy(c){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let l=!1;return this._elementListeners.has(c)&&(l=!0),l=!!this._queue.find(g=>g.element===c)||l,l}}class Vt{constructor(c,l,g){this.bodyNode=c,this.driver=l,this._normalizer=g,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=(F,ne)=>{}}_onRemovalComplete(c,l){this.onRemovalComplete(c,l)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&c.push(g)})}),c}createNamespace(c,l){const g=new Ot(c,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[c]=g}_balanceNamespaceList(c,l){const g=this._namespaceList.length-1;if(g>=0){let F=!1;for(let ne=g;ne>=0;ne--)if(this.driver.containsElement(this._namespaceList[ne].hostElement,l)){this._namespaceList.splice(ne+1,0,c),F=!0;break}F||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(l,c),c}register(c,l){let g=this._namespaceLookup[c];return g||(g=this.createNamespace(c,l)),g}registerTrigger(c,l,g){let F=this._namespaceLookup[c];F&&F.register(l,g)&&this.totalAnimations++}destroy(c,l){if(!c)return;const g=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[c];const F=this._namespaceList.indexOf(g);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>g.destroy(l))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const l=new Set,g=this.statesByElement.get(c);if(g){const F=Object.keys(g);for(let ne=0;ne=0&&this.collectedLeaveElements.splice(ge,1)}if(c){const ge=this._fetchNamespace(c);ge&&ge.insertNode(l,g)}F&&this.collectEnterElement(l)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,l){l?this.disabledNodes.has(c)||(this.disabledNodes.add(c),ui(c,Un)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),wi(c,Un))}removeNode(c,l,g,F){if(kn(l)){const ne=c?this._fetchNamespace(c):null;if(ne?ne.removeNode(l,F):this.markElementAsRemoved(c,l,!1,F),g){const ge=this.namespacesByHostElement.get(l);ge&&ge.id!==c&&ge.removeNode(l,F)}}else this._onRemovalComplete(l,F)}markElementAsRemoved(c,l,g,F,ne){this.collectedLeaveElements.push(l),l[k]={namespaceId:c,setForRemoval:F,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(c,l,g,F,ne){return kn(l)?this._fetchNamespace(c).listen(l,g,F,ne):()=>{}}_buildInstruction(c,l,g,F,ne){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,g,F,c.fromState.options,c.toState.options,l,ne)}destroyInnerAnimations(c){let l=this.driver.query(c,ie,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(c,je,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(c){const l=this.playersByElement.get(c);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(c){const l=this.playersByQueriedElement.get(c);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return _(this.players).onDone(()=>c());c()})}processLeaveNode(c){var l;const g=c[k];if(g&&g.setForRemoval){if(c[k]=X,g.namespaceId){this.destroyInnerAnimations(c);const F=this._fetchNamespace(g.namespaceId);F&&F.clearElementCache(c)}this._onRemovalComplete(c,g.setForRemoval)}(null===(l=c.classList)||void 0===l?void 0:l.contains(Un))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(F=>{this.markElementAsDisabled(F,!1)})}flush(c=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,F)=>this._balanceNamespaceList(g,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?_(l).onDone(()=>{g.forEach(F=>F())}):g.forEach(F=>F())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,l){const g=new Qt,F=[],ne=new Map,ge=[],Ce=new Map,Ke=new Map,ft=new Map,Pt=new Set;this.disabledNodes.forEach(Rt=>{Pt.add(Rt);const Xt=this.driver.query(Rt,".ng-animate-queued",!0);for(let en=0;en{const en=he+Jt++;Kt.set(Xt,en),Rt.forEach(sn=>ui(sn,en))});const pn=[],Jn=new Set,ti=new Set;for(let Rt=0;RtJn.add(sn)):ti.add(Xt))}const _i=new Map,di=vi(Gt,Array.from(Jn));di.forEach((Rt,Xt)=>{const en=te+Jt++;_i.set(Xt,en),Rt.forEach(sn=>ui(sn,en))}),c.push(()=>{ln.forEach((Rt,Xt)=>{const en=Kt.get(Xt);Rt.forEach(sn=>wi(sn,en))}),di.forEach((Rt,Xt)=>{const en=_i.get(Xt);Rt.forEach(sn=>wi(sn,en))}),pn.forEach(Rt=>{this.processLeaveNode(Rt)})});const qi=[],Oi=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(l).forEach(en=>{const sn=en.player,Gn=en.element;if(qi.push(sn),this.collectedEnterElements.length){const Ci=Gn[k];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(en.triggerName)){const Hi=Ci.previousTriggersValues.get(en.triggerName),Ni=this.statesByElement.get(en.element);Ni&&Ni[en.triggerName]&&(Ni[en.triggerName].value=Hi)}return void sn.destroy()}}const xn=!Bt||!this.driver.containsElement(Bt,Gn),pi=_i.get(Gn),Ji=Kt.get(Gn),Xn=this._buildInstruction(en,g,Ji,pi,xn);if(Xn.errors&&Xn.errors.length)return void Oi.push(Xn);if(xn)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);if(en.isFallbackTransition)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);const mr=[];Xn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||mr.push(Ci)}),Xn.timelines=mr,g.append(Gn,Xn.timelines),ge.push({instruction:Xn,player:sn,element:Gn}),Xn.queriedElements.forEach(Ci=>B(Ce,Ci,[]).push(sn)),Xn.preStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);if(Ni.length){let Ui=Ke.get(Hi);Ui||Ke.set(Hi,Ui=new Set),Ni.forEach(ci=>Ui.add(ci))}}),Xn.postStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);let Ui=ft.get(Hi);Ui||ft.set(Hi,Ui=new Set),Ni.forEach(ci=>Ui.add(ci))})});if(Oi.length){const Rt=[];Oi.forEach(Xt=>{Rt.push(`@${Xt.triggerName} has failed due to:\n`),Xt.errors.forEach(en=>Rt.push(`- ${en}\n`))}),qi.forEach(Xt=>Xt.destroy()),this.reportError(Rt)}const fi=new Map,Yi=new Map;ge.forEach(Rt=>{const Xt=Rt.element;g.has(Xt)&&(Yi.set(Xt,Xt),this._beforeAnimationBuild(Rt.player.namespaceId,Rt.instruction,fi))}),F.forEach(Rt=>{const Xt=Rt.element;this._getPreviousPlayers(Xt,!1,Rt.namespaceId,Rt.triggerName,null).forEach(sn=>{B(fi,Xt,[]).push(sn),sn.destroy()})});const ji=pn.filter(Rt=>Gi(Rt,Ke,ft)),Li=new Map;Ao(Li,this.driver,ti,ft,G.l3).forEach(Rt=>{Gi(Rt,Ke,ft)&&ji.push(Rt)});const zo=new Map;ln.forEach((Rt,Xt)=>{Ao(zo,this.driver,new Set(Rt),Ke,G.k1)}),ji.forEach(Rt=>{const Xt=Li.get(Rt),en=zo.get(Rt);Li.set(Rt,Object.assign(Object.assign({},Xt),en))});const ao=[],fr=[],pr={};ge.forEach(Rt=>{const{element:Xt,player:en,instruction:sn}=Rt;if(g.has(Xt)){if(Pt.has(Xt))return en.onDestroy(()=>ot(Xt,sn.toStyles)),en.disabled=!0,en.overrideTotalTime(sn.totalTime),void F.push(en);let Gn=pr;if(Yi.size>1){let pi=Xt;const Ji=[];for(;pi=pi.parentNode;){const Xn=Yi.get(pi);if(Xn){Gn=Xn;break}Ji.push(pi)}Ji.forEach(Xn=>Yi.set(Xn,Gn))}const xn=this._buildAnimation(en.namespaceId,sn,fi,ne,zo,Li);if(en.setRealPlayer(xn),Gn===pr)ao.push(en);else{const pi=this.playersByElement.get(Gn);pi&&pi.length&&(en.parentPlayer=_(pi)),F.push(en)}}else Et(Xt,sn.fromStyles),en.onDestroy(()=>ot(Xt,sn.toStyles)),fr.push(en),Pt.has(Xt)&&F.push(en)}),fr.forEach(Rt=>{const Xt=ne.get(Rt.element);if(Xt&&Xt.length){const en=_(Xt);Rt.setRealPlayer(en)}}),F.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!xn.destroyed);Gn.length?ko(this,Xt,Gn):this.processLeaveNode(Xt)}return pn.length=0,ao.forEach(Rt=>{this.players.push(Rt),Rt.onDone(()=>{Rt.destroy();const Xt=this.players.indexOf(Rt);this.players.splice(Xt,1)}),Rt.play()}),ao}elementContainsData(c,l){let g=!1;const F=l[k];return F&&F.setForRemoval&&(g=!0),this.playersByElement.has(l)&&(g=!0),this.playersByQueriedElement.has(l)&&(g=!0),this.statesByElement.has(l)&&(g=!0),this._fetchNamespace(c).elementContainsData(l)||g}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,l,g,F,ne){let ge=[];if(l){const Ce=this.playersByQueriedElement.get(c);Ce&&(ge=Ce)}else{const Ce=this.playersByElement.get(c);if(Ce){const Ke=!ne||ne==st;Ce.forEach(ft=>{ft.queued||!Ke&&ft.triggerName!=F||ge.push(ft)})}}return(g||F)&&(ge=ge.filter(Ce=>!(g&&g!=Ce.namespaceId||F&&F!=Ce.triggerName))),ge}_beforeAnimationBuild(c,l,g){const ne=l.element,ge=l.isRemovalTransition?void 0:c,Ce=l.isRemovalTransition?void 0:l.triggerName;for(const Ke of l.timelines){const ft=Ke.element,Pt=ft!==ne,Bt=B(g,ft,[]);this._getPreviousPlayers(ft,Pt,ge,Ce,l.toState).forEach(ln=>{const Kt=ln.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),ln.destroy(),Bt.push(ln)})}Et(ne,l.fromStyles)}_buildAnimation(c,l,g,F,ne,ge){const Ce=l.triggerName,Ke=l.element,ft=[],Pt=new Set,Bt=new Set,Gt=l.timelines.map(Kt=>{const Jt=Kt.element;Pt.add(Jt);const pn=Jt[k];if(pn&&pn.removedBeforeQueried)return new G.ZN(Kt.duration,Kt.delay);const Jn=Jt!==Ke,ti=function Fo(O){const c=[];return vo(O,c),c}((g.get(Jt)||qn).map(fi=>fi.getRealPlayer())).filter(fi=>!!fi.element&&fi.element===Jt),_i=ne.get(Jt),di=ge.get(Jt),qi=W(0,this._normalizer,0,Kt.keyframes,_i,di),Oi=this._buildPlayer(Kt,qi,ti);if(Kt.subTimeline&&F&&Bt.add(Jt),Jn){const fi=new hn(c,Ce,Jt);fi.setRealPlayer(Oi),ft.push(fi)}return Oi});ft.forEach(Kt=>{B(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function ni(O,c,l){let g;if(O instanceof Map){if(g=O.get(c),g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&O.delete(c)}}else if(g=O[c],g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&delete O[c]}return g}(this.playersByQueriedElement,Kt.element,Kt))}),Pt.forEach(Kt=>ui(Kt,Ue));const ln=_(Gt);return ln.onDestroy(()=>{Pt.forEach(Kt=>wi(Kt,Ue)),ot(Ke,l.toStyles)}),Bt.forEach(Kt=>{B(F,Kt,[]).push(ln)}),ln}_buildPlayer(c,l,g){return l.length>0?this.driver.animate(c.element,l,c.duration,c.delay,c.easing,g):new G.ZN(c.duration,c.delay)}}class hn{constructor(c,l,g){this.namespaceId=c,this.triggerName=l,this.element=g,this._player=new G.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(g=>I(c,l,void 0,g))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const l=this._player;l.triggerCallback&&c.onStart(()=>l.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,l){B(this._queuedCallbacks,c,[]).push(l)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&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(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const l=this._player;l.triggerCallback&&l.triggerCallback(c)}}function kn(O){return O&&1===O.nodeType}function io(O,c){const l=O.style.display;return O.style.display=null!=c?c:"none",l}function Ao(O,c,l,g,F){const ne=[];l.forEach(Ke=>ne.push(io(Ke)));const ge=[];g.forEach((Ke,ft)=>{const Pt={};Ke.forEach(Bt=>{const Gt=Pt[Bt]=c.computeStyle(ft,Bt,F);(!Gt||0==Gt.length)&&(ft[k]=se,ge.push(ft))}),O.set(ft,Pt)});let Ce=0;return l.forEach(Ke=>io(Ke,ne[Ce++])),ge}function vi(O,c){const l=new Map;if(O.forEach(Ce=>l.set(Ce,[])),0==c.length)return l;const F=new Set(c),ne=new Map;function ge(Ce){if(!Ce)return 1;let Ke=ne.get(Ce);if(Ke)return Ke;const ft=Ce.parentNode;return Ke=l.has(ft)?ft:F.has(ft)?1:ge(ft),ne.set(Ce,Ke),Ke}return c.forEach(Ce=>{const Ke=ge(Ce);1!==Ke&&l.get(Ke).push(Ce)}),l}function ui(O,c){var l;null===(l=O.classList)||void 0===l||l.add(c)}function wi(O,c){var l;null===(l=O.classList)||void 0===l||l.remove(c)}function ko(O,c,l){_(l).onDone(()=>O.processLeaveNode(c))}function vo(O,c){for(let l=0;lF.add(ne)):c.set(O,g),l.delete(O),!0}class yo{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(F,ne)=>{},this._transitionEngine=new Vt(c,l,g),this._timelineEngine=new Wt(c,l,g),this._transitionEngine.onRemovalComplete=(F,ne)=>this.onRemovalComplete(F,ne)}registerTrigger(c,l,g,F,ne){const ge=c+"-"+F;let Ce=this._triggerCache[ge];if(!Ce){const Ke=[],ft=V(this._driver,ne,Ke);if(Ke.length)throw new Error(`The animation trigger "${F}" has failed to build due to the following errors:\n - ${Ke.join("\n - ")}`);Ce=function Qn(O,c,l){return new Te(O,c,l)}(F,ft,this._normalizer),this._triggerCache[ge]=Ce}this._transitionEngine.registerTrigger(l,F,Ce)}register(c,l){this._transitionEngine.register(c,l)}destroy(c,l){this._transitionEngine.destroy(c,l)}onInsert(c,l,g,F){this._transitionEngine.insertNode(c,l,g,F)}onRemove(c,l,g,F){this._transitionEngine.removeNode(c,l,F||!1,g)}disableAnimations(c,l){this._transitionEngine.markElementAsDisabled(c,l)}process(c,l,g,F){if("@"==g.charAt(0)){const[ne,ge]=ee(g);this._timelineEngine.command(ne,l,ge,F)}else this._transitionEngine.trigger(c,l,g,F)}listen(c,l,g,F,ne){if("@"==g.charAt(0)){const[ge,Ce]=ee(g);return this._timelineEngine.listen(ge,l,Ce,ne)}return this._transitionEngine.listen(c,l,g,F,ne)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function _o(O,c){let l=null,g=null;return Array.isArray(c)&&c.length?(l=Ii(c[0]),c.length>1&&(g=Ii(c[c.length-1]))):c&&(l=Ii(c)),l||g?new sr(O,l,g):null}let sr=(()=>{class O{constructor(l,g,F){this._element=l,this._startStyles=g,this._endStyles=F,this._state=0;let ne=O.initialStylesByElement.get(l);ne||O.initialStylesByElement.set(l,ne={}),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Et(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Et(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Ii(O){let c=null;const l=Object.keys(O);for(let g=0;gthis._handleCallback(Ke)}apply(){(function qo(O,c){const l=bo(O,"").trim();let g=0;l.length&&(g=function Vo(O,c){let l=0;for(let g=0;g=this._delay&&g>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function Ti(O,c){const g=bo(O,"").split(","),F=oi(g,c);F>=0&&(g.splice(F,1),Di(O,"",g.join(",")))}(this._element,this._name))}}function oo(O,c,l){Di(O,"PlayState",l,ro(O,c))}function ro(O,c){const l=bo(O,"");return l.indexOf(",")>0?oi(l.split(","),c):oi([l],c)}function oi(O,c){for(let l=0;l=0)return l;return-1}function Zi(O,c,l){l?O.removeEventListener(Bi,c):O.addEventListener(Bi,c)}function Di(O,c,l,g){const F=Mo+c;if(null!=g){const ne=O.style[F];if(ne.length){const ge=ne.split(",");ge[g]=l,l=ge.join(",")}}O.style[F]=l}function bo(O,c){return O.style[Mo+c]||""}class xi{constructor(c,l,g,F,ne,ge,Ce,Ke){this.element=c,this.keyframes=l,this.animationName=g,this._duration=F,this._delay=ne,this._finalStyles=Ce,this._specialStyles=Ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ge||"linear",this.totalTime=F+ne,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(g=>{"offset"!=g&&(c[g]=l?this._finalStyles[g]:x(this.element,g))})}this.currentSnapshot=c}}class Vi extends G.ZN{constructor(c,l){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=$e(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const l=this._startingStyles[c];l?this.element.style.setProperty(c,l):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class so{constructor(){this._count=0}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}buildKeyframeElement(c,l,g){g=g.map(Ce=>$e(Ce));let F=`@keyframes ${l} {\n`,ne="";g.forEach(Ce=>{ne=" ";const Ke=parseFloat(Ce.offset);F+=`${ne}${100*Ke}% {\n`,ne+=" ",Object.keys(Ce).forEach(ft=>{const Pt=Ce[ft];switch(ft){case"offset":return;case"easing":return void(Pt&&(F+=`${ne}animation-timing-function: ${Pt};\n`));default:return void(F+=`${ne}${ft}: ${Pt};\n`)}}),F+=`${ne}}\n`}),F+="}\n";const ge=document.createElement("style");return ge.textContent=F,ge}animate(c,l,g,F,ne,ge=[],Ce){const Ke=ge.filter(pn=>pn instanceof xi),ft={};cn(g,F)&&Ke.forEach(pn=>{let Jn=pn.currentSnapshot;Object.keys(Jn).forEach(ti=>ft[ti]=Jn[ti])});const Pt=function Jo(O){let c={};return O&&(Array.isArray(O)?O:[O]).forEach(g=>{Object.keys(g).forEach(F=>{"offset"==F||"easing"==F||(c[F]=g[F])})}),c}(l=Mn(c,l,ft));if(0==g)return new Vi(c,Pt);const Bt="gen_css_kf_"+this._count++,Gt=this.buildKeyframeElement(c,Bt,l);(function Do(O){var c;const l=null===(c=O.getRootNode)||void 0===c?void 0:c.call(O);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(c).appendChild(Gt);const Kt=_o(c,l),Jt=new xi(c,l,Bt,g,F,ne,Pt,Kt);return Jt.onDestroy(()=>function Qi(O){O.parentNode.removeChild(O)}(Gt)),Jt}}class Pi{constructor(c,l,g,F){this.element=c,this.keyframes=l,this.options=g,this._specialStyles=F,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,l,g){return c.animate(l,g)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),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}_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(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(g=>{"offset"!=g&&(c[g]=this._finished?l[g]:x(this.element,g))})}this.currentSnapshot=c}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}}class yi{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(b().toString()),this._cssKeyframesDriver=new so}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,l,g,F,ne,ge=[],Ce){if(!Ce&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,l,g,F,ne,ge);const Pt={duration:g,delay:F,fill:0==F?"both":"forwards"};ne&&(Pt.easing=ne);const Bt={},Gt=ge.filter(Kt=>Kt instanceof Pi);cn(g,F)&&Gt.forEach(Kt=>{let Jt=Kt.currentSnapshot;Object.keys(Jt).forEach(pn=>Bt[pn]=Jt[pn])});const ln=_o(c,l=Mn(c,l=l.map(Kt=>_t(Kt,!1)),Bt));return new Pi(c,l,Pt,ln)}}function b(){return oe()&&Element.prototype.animate||{}}var Y=p(9808);let w=(()=>{class O extends G._j{constructor(l,g){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(g.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(l){const g=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(l)?(0,G.vP)(l):l;return ct(this._renderer,null,g,"register",[F]),new Q(g,this._renderer)}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(Y.K0))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Q extends G.LC{constructor(c,l){super(),this._id=c,this._renderer=l}create(c,l){return new xe(this._id,c,l||{},this._renderer)}}class xe{constructor(c,l,g,F){this.id=c,this.element=l,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(c,l){return this._renderer.listen(this.element,`@@${this.id}:${c}`,l)}_command(c,...l){return ct(this._renderer,this.element,this.id,c,l)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,l;return null!==(l=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==l?l:0}}function ct(O,c,l,g,F){return O.setProperty(c,`@@${l}:${g}`,F)}const kt="@.disabled";let Fn=(()=>{class O{constructor(l,g,F){this.delegate=l,this.engine=g,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(ne,ge)=>{const Ce=null==ge?void 0:ge.parentNode(ne);Ce&&ge.removeChild(Ce,ne)}}createRenderer(l,g){const ne=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let Pt=this._rendererCache.get(ne);return Pt||(Pt=new Tn("",ne,this.engine),this._rendererCache.set(ne,Pt)),Pt}const ge=g.id,Ce=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Ce,l);const Ke=Pt=>{Array.isArray(Pt)?Pt.forEach(Ke):this.engine.registerTrigger(ge,Ce,l,Pt.name,Pt)};return g.data.animation.forEach(Ke),new Dn(this,Ce,ne,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,g,F){l>=0&&lg(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ne=>{const[ge,Ce]=ne;ge(Ce)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(yo),a.LFG(a.R0b))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Tn{constructor(c,l,g){this.namespaceId=c,this.delegate=l,this.engine=g,this.destroyNode=this.delegate.destroyNode?F=>l.destroyNode(F):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,l){return this.delegate.createElement(c,l)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,l){this.delegate.appendChild(c,l),this.engine.onInsert(this.namespaceId,l,c,!1)}insertBefore(c,l,g,F=!0){this.delegate.insertBefore(c,l,g),this.engine.onInsert(this.namespaceId,l,c,F)}removeChild(c,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate,g)}selectRootElement(c,l){return this.delegate.selectRootElement(c,l)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,l,g,F){this.delegate.setAttribute(c,l,g,F)}removeAttribute(c,l,g){this.delegate.removeAttribute(c,l,g)}addClass(c,l){this.delegate.addClass(c,l)}removeClass(c,l){this.delegate.removeClass(c,l)}setStyle(c,l,g,F){this.delegate.setStyle(c,l,g,F)}removeStyle(c,l,g){this.delegate.removeStyle(c,l,g)}setProperty(c,l,g){"@"==l.charAt(0)&&l==kt?this.disableAnimations(c,!!g):this.delegate.setProperty(c,l,g)}setValue(c,l){this.delegate.setValue(c,l)}listen(c,l,g){return this.delegate.listen(c,l,g)}disableAnimations(c,l){this.engine.disableAnimations(c,l)}}class Dn extends Tn{constructor(c,l,g,F){super(l,g,F),this.factory=c,this.namespaceId=l}setProperty(c,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==kt?this.disableAnimations(c,g=void 0===g||!!g):this.engine.process(this.namespaceId,c,l.substr(1),g):this.delegate.setProperty(c,l,g)}listen(c,l,g){if("@"==l.charAt(0)){const F=function dn(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(c);let ne=l.substr(1),ge="";return"@"!=ne.charAt(0)&&([ne,ge]=function Yn(O){const c=O.indexOf(".");return[O.substring(0,c),O.substr(c+1)]}(ne)),this.engine.listen(this.namespaceId,F,ne,ge,Ce=>{this.factory.scheduleListenerCallback(Ce._data||-1,g,Ce)})}return this.delegate.listen(c,l,g)}}let On=(()=>{class O extends yo{constructor(l,g,F){super(l.body,g,F)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(Y.K0),a.LFG(Se),a.LFG(Pn))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();const C=new a.OlP("AnimationModuleType"),y=[{provide:G._j,useClass:w},{provide:Pn,useFactory:function Eo(){return new Zn}},{provide:yo,useClass:On},{provide:a.FYo,useFactory:function D(O,c,l){return new Fn(O,c,l)},deps:[s.se,yo,a.R0b]}],U=[{provide:Se,useFactory:function Yt(){return function Wn(){return"function"==typeof b()}()?new yi:new so}},{provide:C,useValue:"BrowserAnimations"},...y],at=[{provide:Se,useClass:et},{provide:C,useValue:"NoopAnimations"},...y];let Nt=(()=>{class O{static withConfig(l){return{ngModule:O,providers:l.disableAnimations?at:U}}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:U,imports:[s.b2]}),O})()},2313:(yt,be,p)=>{p.d(be,{b2:()=>_n,H7:()=>An,q6:()=>Ut,se:()=>le});var a=p(9808),s=p(5e3);class G extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends G{static makeCurrent(){(0,a.HT)(new oe)}onAndCancel(we,ae,Ve){return we.addEventListener(ae,Ve,!1),()=>{we.removeEventListener(ae,Ve,!1)}}dispatchEvent(we,ae){we.dispatchEvent(ae)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,ae){return(ae=ae||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,ae){return"window"===ae?window:"document"===ae?we:"body"===ae?we.body:null}getBaseHref(we){const ae=function _(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==ae?null:function I(Re){W=W||document.createElement("a"),W.setAttribute("href",Re);const we=W.pathname;return"/"===we.charAt(0)?we:`/${we}`}(ae)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,a.Mx)(document.cookie,we)}}let W,q=null;const R=new s.OlP("TRANSITION_ID"),B=[{provide:s.ip1,useFactory:function H(Re,we,ae){return()=>{ae.get(s.CZH).donePromise.then(()=>{const Ve=(0,a.q)(),ht=we.querySelectorAll(`style[ng-transition="${Re}"]`);for(let It=0;It{const It=we.findTestabilityInTree(Ve,ht);if(null==It)throw new Error("Could not find testability for element.");return It},s.dqk.getAllAngularTestabilities=()=>we.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>we.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Ve=>{const ht=s.dqk.getAllAngularTestabilities();let It=ht.length,jt=!1;const fn=function(Pn){jt=jt||Pn,It--,0==It&&Ve(jt)};ht.forEach(function(Pn){Pn.whenStable(fn)})})}findTestabilityInTree(we,ae,Ve){if(null==ae)return null;const ht=we.getTestability(ae);return null!=ht?ht:Ve?(0,a.q)().isShadowRoot(ae)?this.findTestabilityInTree(we,ae.host,!0):this.findTestabilityInTree(we,ae.parentElement,!0):null}}let ye=(()=>{class Re{build(){return new XMLHttpRequest}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ye=new s.OlP("EventManagerPlugins");let Fe=(()=>{class Re{constructor(ae,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,ae.forEach(ht=>ht.manager=this),this._plugins=ae.slice().reverse()}addEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addEventListener(ae,Ve,ht)}addGlobalEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addGlobalEventListener(ae,Ve,ht)}getZone(){return this._zone}_findPluginFor(ae){const Ve=this._eventNameToPlugin.get(ae);if(Ve)return Ve;const ht=this._plugins;for(let It=0;It{class Re{constructor(){this._stylesSet=new Set}addStyles(ae){const Ve=new Set;ae.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Ve.add(ht))}),this.onStylesAdded(Ve)}onStylesAdded(ae){}getAllStyles(){return Array.from(this._stylesSet)}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),vt=(()=>{class Re extends _e{constructor(ae){super(),this._doc=ae,this._hostNodes=new Map,this._hostNodes.set(ae.head,[])}_addStylesToHost(ae,Ve,ht){ae.forEach(It=>{const jt=this._doc.createElement("style");jt.textContent=It,ht.push(Ve.appendChild(jt))})}addHost(ae){const Ve=[];this._addStylesToHost(this._stylesSet,ae,Ve),this._hostNodes.set(ae,Ve)}removeHost(ae){const Ve=this._hostNodes.get(ae);Ve&&Ve.forEach(Je),this._hostNodes.delete(ae)}onStylesAdded(ae){this._hostNodes.forEach((Ve,ht)=>{this._addStylesToHost(ae,ht,Ve)})}ngOnDestroy(){this._hostNodes.forEach(ae=>ae.forEach(Je))}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function Je(Re){(0,a.q)().remove(Re)}const zt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ut=/%COMP%/g;function fe(Re,we,ae){for(let Ve=0;Ve{if("__ngUnwrap__"===we)return Re;!1===Re(we)&&(we.preventDefault(),we.returnValue=!1)}}let le=(()=>{class Re{constructor(ae,Ve,ht){this.eventManager=ae,this.sharedStylesHost=Ve,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new ie(ae)}createRenderer(ae,Ve){if(!ae||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case s.ifc.Emulated:{let ht=this.rendererByCompId.get(Ve.id);return ht||(ht=new tt(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ht)),ht.applyToHost(ae),ht}case 1:case s.ifc.ShadowDom:return new ke(this.eventManager,this.sharedStylesHost,ae,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ht=fe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Fe),s.LFG(vt),s.LFG(s.AFp))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class ie{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,ae){return ae?document.createElementNS(zt[ae]||ae,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,ae){we.appendChild(ae)}insertBefore(we,ae,Ve){we&&we.insertBefore(ae,Ve)}removeChild(we,ae){we&&we.removeChild(ae)}selectRootElement(we,ae){let Ve="string"==typeof we?document.querySelector(we):we;if(!Ve)throw new Error(`The selector "${we}" did not match any elements`);return ae||(Ve.textContent=""),Ve}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,ae,Ve,ht){if(ht){ae=ht+":"+ae;const It=zt[ht];It?we.setAttributeNS(It,ae,Ve):we.setAttribute(ae,Ve)}else we.setAttribute(ae,Ve)}removeAttribute(we,ae,Ve){if(Ve){const ht=zt[Ve];ht?we.removeAttributeNS(ht,ae):we.removeAttribute(`${Ve}:${ae}`)}else we.removeAttribute(ae)}addClass(we,ae){we.classList.add(ae)}removeClass(we,ae){we.classList.remove(ae)}setStyle(we,ae,Ve,ht){ht&(s.JOm.DashCase|s.JOm.Important)?we.style.setProperty(ae,Ve,ht&s.JOm.Important?"important":""):we.style[ae]=Ve}removeStyle(we,ae,Ve){Ve&s.JOm.DashCase?we.style.removeProperty(ae):we.style[ae]=""}setProperty(we,ae,Ve){we[ae]=Ve}setValue(we,ae){we.nodeValue=ae}listen(we,ae,Ve){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,ae,he(Ve)):this.eventManager.addEventListener(we,ae,he(Ve))}}class tt extends ie{constructor(we,ae,Ve,ht){super(we),this.component=Ve;const It=fe(ht+"-"+Ve.id,Ve.styles,[]);ae.addStyles(It),this.contentAttr=function Xe(Re){return"_ngcontent-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id),this.hostAttr=function J(Re){return"_nghost-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id)}applyToHost(we){super.setAttribute(we,this.hostAttr,"")}createElement(we,ae){const Ve=super.createElement(we,ae);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ke extends ie{constructor(we,ae,Ve,ht){super(we),this.sharedStylesHost=ae,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const It=fe(ht.id,ht.styles,[]);for(let jt=0;jt{class Re extends ze{constructor(ae){super(ae)}supports(ae){return!0}addEventListener(ae,Ve,ht){return ae.addEventListener(Ve,ht,!1),()=>this.removeEventListener(ae,Ve,ht)}removeEventListener(ae,Ve,ht){return ae.removeEventListener(Ve,ht)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const mt=["alt","control","meta","shift"],dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_t={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},it={alt:Re=>Re.altKey,control:Re=>Re.ctrlKey,meta:Re=>Re.metaKey,shift:Re=>Re.shiftKey};let St=(()=>{class Re extends ze{constructor(ae){super(ae)}supports(ae){return null!=Re.parseEventName(ae)}addEventListener(ae,Ve,ht){const It=Re.parseEventName(Ve),jt=Re.eventCallback(It.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(ae,It.domEventName,jt))}static parseEventName(ae){const Ve=ae.toLowerCase().split("."),ht=Ve.shift();if(0===Ve.length||"keydown"!==ht&&"keyup"!==ht)return null;const It=Re._normalizeKey(Ve.pop());let jt="";if(mt.forEach(Pn=>{const si=Ve.indexOf(Pn);si>-1&&(Ve.splice(si,1),jt+=Pn+".")}),jt+=It,0!=Ve.length||0===It.length)return null;const fn={};return fn.domEventName=ht,fn.fullKey=jt,fn}static getEventFullKey(ae){let Ve="",ht=function ot(Re){let we=Re.key;if(null==we){if(we=Re.keyIdentifier,null==we)return"Unidentified";we.startsWith("U+")&&(we=String.fromCharCode(parseInt(we.substring(2),16)),3===Re.location&&_t.hasOwnProperty(we)&&(we=_t[we]))}return dt[we]||we}(ae);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),mt.forEach(It=>{It!=ht&&it[It](ae)&&(Ve+=It+".")}),Ve+=ht,Ve}static eventCallback(ae,Ve,ht){return It=>{Re.getEventFullKey(It)===ae&&ht.runGuarded(()=>Ve(It))}}static _normalizeKey(ae){return"esc"===ae?"escape":ae}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ut=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:a.bD},{provide:s.g9A,useValue:function Et(){oe.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function mn(){return(0,s.RDi)(document),document},deps:[]}]),un=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Zt(){return new s.qLn},deps:[]},{provide:Ye,useClass:ve,multi:!0,deps:[a.K0,s.R0b,s.Lbi]},{provide:Ye,useClass:St,multi:!0,deps:[a.K0]},{provide:le,useClass:le,deps:[Fe,vt,s.AFp]},{provide:s.FYo,useExisting:le},{provide:_e,useExisting:vt},{provide:vt,useClass:vt,deps:[a.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Fe,useClass:Fe,deps:[Ye,s.R0b]},{provide:a.JF,useClass:ye,deps:[]}];let _n=(()=>{class Re{constructor(ae){if(ae)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ae){return{ngModule:Re,providers:[{provide:s.AFp,useValue:ae.appId},{provide:R,useExisting:s.AFp},B]}}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Re,12))},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:un,imports:[a.ez,s.hGG]}),Re})();"undefined"!=typeof window&&window;let An=(()=>{class Re{}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new(ae||Re):s.LFG(jn),Ve},providedIn:"root"}),Re})(),jn=(()=>{class Re extends An{constructor(ae){super(),this._doc=ae}sanitize(ae,Ve){if(null==Ve)return null;switch(ae){case s.q3G.NONE:return Ve;case s.q3G.HTML:return(0,s.qzn)(Ve,"HTML")?(0,s.z3N)(Ve):(0,s.EiD)(this._doc,String(Ve)).toString();case s.q3G.STYLE:return(0,s.qzn)(Ve,"Style")?(0,s.z3N)(Ve):Ve;case s.q3G.SCRIPT:if((0,s.qzn)(Ve,"Script"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Ve),(0,s.qzn)(Ve,"URL")?(0,s.z3N)(Ve):(0,s.mCW)(String(Ve));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Ve,"ResourceURL"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ae} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ae){return(0,s.JVY)(ae)}bypassSecurityTrustStyle(ae){return(0,s.L6k)(ae)}bypassSecurityTrustScript(ae){return(0,s.eBb)(ae)}bypassSecurityTrustUrl(ae){return(0,s.LAX)(ae)}bypassSecurityTrustResourceUrl(ae){return(0,s.pB0)(ae)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new ae:function ri(Re){return new jn(Re.get(a.K0))}(s.LFG(s.zs3)),Ve},providedIn:"root"}),Re})()},2302:(yt,be,p)=>{p.d(be,{gz:()=>k,m2:()=>Et,OD:()=>ot,wm:()=>Is,F0:()=>ci,rH:()=>Xi,yS:()=>No,Bz:()=>Hs,lC:()=>so});var a=p(5e3);const G=(()=>{function m(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return m.prototype=Object.create(Error.prototype),m})();var oe=p(5254),q=p(1086),_=p(591),W=p(6053),I=p(6498),R=p(1961),H=p(8514),B=p(8896),ee=p(1762),ye=p(8929),Ye=p(2198),Fe=p(3489),ze=p(4231);function _e(m){return function(h){return 0===m?(0,B.c)():h.lift(new vt(m))}}class vt{constructor(d){if(this.total=d,this.total<0)throw new ze.W}call(d,h){return h.subscribe(new Je(d,this.total))}}class Je extends Fe.L{constructor(d,h){super(d),this.total=h,this.ring=new Array,this.count=0}_next(d){const h=this.ring,M=this.total,S=this.count++;h.length0){const M=this.count>=this.total?this.total:this.count,S=this.ring;for(let K=0;Kd.lift(new ut(m))}class ut{constructor(d){this.errorFactory=d}call(d,h){return h.subscribe(new Ie(d,this.errorFactory))}}class Ie extends Fe.L{constructor(d,h){super(d),this.errorFactory=h,this.hasValue=!1}_next(d){this.hasValue=!0,this.destination.next(d)}_complete(){if(this.hasValue)return this.destination.complete();{let d;try{d=this.errorFactory()}catch(h){d=h}this.destination.error(d)}}}function $e(){return new G}function et(m=null){return d=>d.lift(new Se(m))}class Se{constructor(d){this.defaultValue=d}call(d,h){return h.subscribe(new Xe(d,this.defaultValue))}}class Xe extends Fe.L{constructor(d,h){super(d),this.defaultValue=h,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var J=p(5379),he=p(2986);function te(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,(0,he.q)(1),h?et(d):zt(()=>new G))}var le=p(4850),ie=p(7545),Ue=p(1059),je=p(2014),tt=p(7221),ke=p(1406),ve=p(1709),mt=p(2994),Qe=p(4327),dt=p(537),_t=p(9146),it=p(9808);class St{constructor(d,h){this.id=d,this.url=h}}class ot extends St{constructor(d,h,M="imperative",S=null){super(d,h),this.navigationTrigger=M,this.restoredState=S}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Et extends St{constructor(d,h,M){super(d,h),this.urlAfterRedirects=M}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zt extends St{constructor(d,h,M){super(d,h),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mn extends St{constructor(d,h,M){super(d,h),this.error=M}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class vn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un extends St{constructor(d,h,M,S,K){super(d,h),this.urlAfterRedirects=M,this.state=S,this.shouldActivate=K}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _n extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dt{constructor(d){this.route=d}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sn{constructor(d){this.route=d}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cn{constructor(d){this.snapshot=d}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(d){this.snapshot=d}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qe{constructor(d){this.snapshot=d}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x{constructor(d){this.snapshot=d}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(d,h,M){this.routerEvent=d,this.position=h,this.anchor=M}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const P="primary";class pe{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h[0]:h}return null}getAll(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function j(m){return new pe(m)}const me="ngNavigationCancelingError";function He(m){const d=Error("NavigationCancelingError: "+m);return d[me]=!0,d}function Le(m,d,h){const M=h.path.split("/");if(M.length>m.length||"full"===h.pathMatch&&(d.hasChildren()||M.lengthM[K]===S)}return m===d}function nt(m){return Array.prototype.concat.apply([],m)}function ce(m){return m.length>0?m[m.length-1]:null}function L(m,d){for(const h in m)m.hasOwnProperty(h)&&d(m[h],h)}function E(m){return(0,a.CqO)(m)?m:(0,a.QGY)(m)?(0,oe.D)(Promise.resolve(m)):(0,q.of)(m)}const ue={exact:function Qt(m,d,h){if(!ae(m.segments,d.segments)||!ri(m.segments,d.segments,h)||m.numberOfChildren!==d.numberOfChildren)return!1;for(const M in d.children)if(!m.children[M]||!Qt(m.children[M],d.children[M],h))return!1;return!0},subset:Vn},Ae={exact:function At(m,d){return V(m,d)},subset:function gn(m,d){return Object.keys(d).length<=Object.keys(m).length&&Object.keys(d).every(h=>Be(m[h],d[h]))},ignored:()=>!0};function wt(m,d,h){return ue[h.paths](m.root,d.root,h.matrixParams)&&Ae[h.queryParams](m.queryParams,d.queryParams)&&!("exact"===h.fragment&&m.fragment!==d.fragment)}function Vn(m,d,h){return An(m,d,d.segments,h)}function An(m,d,h,M){if(m.segments.length>h.length){const S=m.segments.slice(0,h.length);return!(!ae(S,h)||d.hasChildren()||!ri(S,h,M))}if(m.segments.length===h.length){if(!ae(m.segments,h)||!ri(m.segments,h,M))return!1;for(const S in d.children)if(!m.children[S]||!Vn(m.children[S],d.children[S],M))return!1;return!0}{const S=h.slice(0,m.segments.length),K=h.slice(m.segments.length);return!!(ae(m.segments,S)&&ri(m.segments,S,M)&&m.children[P])&&An(m.children[P],d,K,M)}}function ri(m,d,h){return d.every((M,S)=>Ae[h](m[S].parameters,M.parameters))}class jn{constructor(d,h,M){this.root=d,this.queryParams=h,this.fragment=M}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return jt.serialize(this)}}class qt{constructor(d,h){this.segments=d,this.children=h,this.parent=null,L(h,(M,S)=>M.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fn(this)}}class Re{constructor(d,h){this.path=d,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=j(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function ae(m,d){return m.length===d.length&&m.every((h,M)=>h.path===d[M].path)}class ht{}class It{parse(d){const h=new on(d);return new jn(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(d){const h=`/${Pn(d.root,!0)}`,M=function bn(m){const d=Object.keys(m).map(h=>{const M=m[h];return Array.isArray(M)?M.map(S=>`${Zn(h)}=${Zn(S)}`).join("&"):`${Zn(h)}=${Zn(M)}`}).filter(h=>!!h);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${h}${M}${"string"==typeof d.fragment?`#${function ii(m){return encodeURI(m)}(d.fragment)}`:""}`}}const jt=new It;function fn(m){return m.segments.map(d=>Tt(d)).join("/")}function Pn(m,d){if(!m.hasChildren())return fn(m);if(d){const h=m.children[P]?Pn(m.children[P],!1):"",M=[];return L(m.children,(S,K)=>{K!==P&&M.push(`${K}:${Pn(S,!1)}`)}),M.length>0?`${h}(${M.join("//")})`:h}{const h=function Ve(m,d){let h=[];return L(m.children,(M,S)=>{S===P&&(h=h.concat(d(M,S)))}),L(m.children,(M,S)=>{S!==P&&(h=h.concat(d(M,S)))}),h}(m,(M,S)=>S===P?[Pn(m.children[P],!1)]:[`${S}:${Pn(M,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[P]?`${fn(m)}/${h[0]}`:`${fn(m)}/(${h.join("//")})`}}function si(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zn(m){return si(m).replace(/%3B/gi,";")}function En(m){return si(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(m){return decodeURIComponent(m)}function Ln(m){return ei(m.replace(/\+/g,"%20"))}function Tt(m){return`${En(m.path)}${function rn(m){return Object.keys(m).map(d=>`;${En(d)}=${En(m[d])}`).join("")}(m.parameters)}`}const Qn=/^[^\/()?;=#]+/;function Te(m){const d=m.match(Qn);return d?d[0]:""}const Ze=/^[^=?&#]+/,rt=/^[^&#]+/;class on{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let M={};return this.peekStartsWith("(")&&(M=this.parseParens(!1)),(d.length>0||Object.keys(h).length>0)&&(M[P]=new qt(d,h)),M}parseSegment(){const d=Te(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new Re(ei(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const h=Te(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const S=Te(this.remaining);S&&(M=S,this.capture(M))}d[ei(h)]=ei(M)}parseQueryParam(d){const h=function De(m){const d=m.match(Ze);return d?d[0]:""}(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const de=function Wt(m){const d=m.match(rt);return d?d[0]:""}(this.remaining);de&&(M=de,this.capture(M))}const S=Ln(h),K=Ln(M);if(d.hasOwnProperty(S)){let de=d[S];Array.isArray(de)||(de=[de],d[S]=de),de.push(K)}else d[S]=K}parseParens(d){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=Te(this.remaining),S=this.remaining[M.length];if("/"!==S&&")"!==S&&";"!==S)throw new Error(`Cannot parse url '${this.url}'`);let K;M.indexOf(":")>-1?(K=M.substr(0,M.indexOf(":")),this.capture(K),this.capture(":")):d&&(K=P);const de=this.parseChildren();h[K]=1===Object.keys(de).length?de[P]:new qt([],de),this.consumeOptional("//")}return h}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new Error(`Expected "${d}".`)}}class Lt{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const h=this.pathFromRoot(d);return h.length>1?h[h.length-2]:null}children(d){const h=Un(d,this._root);return h?h.children.map(M=>M.value):[]}firstChild(d){const h=Un(d,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(d){const h=$n(d,this._root);return h.length<2?[]:h[h.length-2].children.map(S=>S.value).filter(S=>S!==d)}pathFromRoot(d){return $n(d,this._root).map(h=>h.value)}}function Un(m,d){if(m===d.value)return d;for(const h of d.children){const M=Un(m,h);if(M)return M}return null}function $n(m,d){if(m===d.value)return[d];for(const h of d.children){const M=$n(m,h);if(M.length)return M.unshift(d),M}return[]}class Nn{constructor(d,h){this.value=d,this.children=h}toString(){return`TreeNode(${this.value})`}}function Rn(m){const d={};return m&&m.children.forEach(h=>d[h.value.outlet]=h),d}class qn extends Lt{constructor(d,h){super(d),this.snapshot=h,Vt(this,d)}toString(){return this.snapshot.toString()}}function X(m,d){const h=function se(m,d){const de=new Ct([],{},{},"",{},P,d,null,m.root,-1,{});return new Ot("",new Nn(de,[]))}(m,d),M=new _.X([new Re("",{})]),S=new _.X({}),K=new _.X({}),de=new _.X({}),Oe=new _.X(""),pt=new k(M,S,de,Oe,K,P,d,h.root);return pt.snapshot=h.root,new qn(new Nn(pt,[]),h)}class k{constructor(d,h,M,S,K,de,Oe,pt){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this._futureSnapshot=pt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,le.U)(d=>j(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(d=>j(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ee(m,d="emptyOnly"){const h=m.pathFromRoot;let M=0;if("always"!==d)for(M=h.length-1;M>=1;){const S=h[M],K=h[M-1];if(S.routeConfig&&""===S.routeConfig.path)M--;else{if(K.component)break;M--}}return function st(m){return m.reduce((d,h)=>({params:Object.assign(Object.assign({},d.params),h.params),data:Object.assign(Object.assign({},d.data),h.data),resolve:Object.assign(Object.assign({},d.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(M))}class Ct{constructor(d,h,M,S,K,de,Oe,pt,Ht,wn,tn){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this.routeConfig=pt,this._urlSegment=Ht,this._lastPathIndex=wn,this._resolve=tn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=j(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(M=>M.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ot extends Lt{constructor(d,h){super(h),this.url=d,Vt(this,h)}toString(){return hn(this._root)}}function Vt(m,d){d.value._routerState=m,d.children.forEach(h=>Vt(m,h))}function hn(m){const d=m.children.length>0?` { ${m.children.map(hn).join(", ")} } `:"";return`${m.value}${d}`}function ni(m){if(m.snapshot){const d=m.snapshot,h=m._futureSnapshot;m.snapshot=h,V(d.queryParams,h.queryParams)||m.queryParams.next(h.queryParams),d.fragment!==h.fragment&&m.fragment.next(h.fragment),V(d.params,h.params)||m.params.next(h.params),function Me(m,d){if(m.length!==d.length)return!1;for(let h=0;hV(h.parameters,d[M].parameters))}(m.url,d.url);return h&&!(!m.parent!=!d.parent)&&(!m.parent||ai(m.parent,d.parent))}function bi(m,d,h){if(h&&m.shouldReuseRoute(d.value,h.value.snapshot)){const M=h.value;M._futureSnapshot=d.value;const S=function io(m,d,h){return d.children.map(M=>{for(const S of h.children)if(m.shouldReuseRoute(M.value,S.value.snapshot))return bi(m,M,S);return bi(m,M)})}(m,d,h);return new Nn(M,S)}{if(m.shouldAttach(d.value)){const K=m.retrieve(d.value);if(null!==K){const de=K.route;return de.value._futureSnapshot=d.value,de.children=d.children.map(Oe=>bi(m,Oe)),de}}const M=function Ao(m){return new k(new _.X(m.url),new _.X(m.params),new _.X(m.queryParams),new _.X(m.fragment),new _.X(m.data),m.outlet,m.component,m)}(d.value),S=d.children.map(K=>bi(m,K));return new Nn(M,S)}}function ui(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function wi(m){return"object"==typeof m&&null!=m&&m.outlets}function ko(m,d,h,M,S){let K={};return M&&L(M,(de,Oe)=>{K[Oe]=Array.isArray(de)?de.map(pt=>`${pt}`):`${de}`}),new jn(h.root===m?d:Fo(h.root,m,d),K,S)}function Fo(m,d,h){const M={};return L(m.children,(S,K)=>{M[K]=S===d?h:Fo(S,d,h)}),new qt(m.segments,M)}class vo{constructor(d,h,M){if(this.isAbsolute=d,this.numberOfDoubleDots=h,this.commands=M,d&&M.length>0&&ui(M[0]))throw new Error("Root segment cannot have matrix parameters");const S=M.find(wi);if(S&&S!==ce(M))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gi{constructor(d,h,M){this.segmentGroup=d,this.processChildren=h,this.index=M}}function Ii(m,d,h){if(m||(m=new qt([],{})),0===m.segments.length&&m.hasChildren())return Co(m,d,h);const M=function Io(m,d,h){let M=0,S=d;const K={match:!1,pathIndex:0,commandIndex:0};for(;S=h.length)return K;const de=m.segments[S],Oe=h[M];if(wi(Oe))break;const pt=`${Oe}`,Ht=M0&&void 0===pt)break;if(pt&&Ht&&"object"==typeof Ht&&void 0===Ht.outlets){if(!Qo(pt,Ht,de))return K;M+=2}else{if(!Qo(pt,{},de))return K;M++}S++}return{match:!0,pathIndex:S,commandIndex:M}}(m,d,h),S=h.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof K&&(K=[K]),null!==K&&(S[de]=Ii(m.children[de],d,K))}),L(m.children,(K,de)=>{void 0===M[de]&&(S[de]=K)}),new qt(m.segments,S)}}function Mo(m,d,h){const M=m.segments.slice(0,d);let S=0;for(;S{"string"==typeof h&&(h=[h]),null!==h&&(d[M]=Mo(new qt([],{}),0,h))}),d}function Ki(m){const d={};return L(m,(h,M)=>d[M]=`${h}`),d}function Qo(m,d,h){return m==h.path&&V(d,h.parameters)}class qo{constructor(d,h,M,S){this.routeReuseStrategy=d,this.futureState=h,this.currState=M,this.forwardEvent=S}activate(d){const h=this.futureState._root,M=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,M,d),ni(this.futureState.root),this.activateChildRoutes(h,M,d)}deactivateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{const de=K.value.outlet;this.deactivateRoutes(K,S[de],M),delete S[de]}),L(S,(K,de)=>{this.deactivateRouteAndItsChildren(K,M)})}deactivateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(S===K)if(S.component){const de=M.getContext(S.outlet);de&&this.deactivateChildRoutes(d,h,de.children)}else this.deactivateChildRoutes(d,h,M);else K&&this.deactivateRouteAndItsChildren(h,M)}deactivateRouteAndItsChildren(d,h){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,h):this.deactivateRouteAndOutlet(d,h)}detachAndStoreRouteSubtree(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);if(M&&M.outlet){const de=M.outlet.detach(),Oe=M.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:de,route:d,contexts:Oe})}}deactivateRouteAndOutlet(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);M&&M.outlet&&(M.outlet.deactivate(),M.children.onOutletDeactivated(),M.attachRef=null,M.resolver=null,M.route=null)}activateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{this.activateRoutes(K,S[K.value.outlet],M),this.forwardEvent(new x(K.value.snapshot))}),d.children.length&&this.forwardEvent(new Mn(d.value.snapshot))}activateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(ni(S),S===K)if(S.component){const de=M.getOrCreateContext(S.outlet);this.activateChildRoutes(d,h,de.children)}else this.activateChildRoutes(d,h,M);else if(S.component){const de=M.getOrCreateContext(S.outlet);if(this.routeReuseStrategy.shouldAttach(S.snapshot)){const Oe=this.routeReuseStrategy.retrieve(S.snapshot);this.routeReuseStrategy.store(S.snapshot,null),de.children.onOutletReAttached(Oe.contexts),de.attachRef=Oe.componentRef,de.route=Oe.route.value,de.outlet&&de.outlet.attach(Oe.componentRef,Oe.route.value),ni(Oe.route.value),this.activateChildRoutes(d,null,de.children)}else{const Oe=function Ti(m){for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(S.snapshot),pt=Oe?Oe.module.componentFactoryResolver:null;de.attachRef=null,de.route=S,de.resolver=pt,de.outlet&&de.outlet.activateWith(S,pt),this.activateChildRoutes(d,null,de.children)}}else this.activateChildRoutes(d,null,M)}}class ro{constructor(d,h){this.routes=d,this.module=h}}function oi(m){return"function"==typeof m}function Di(m){return m instanceof jn}const xi=Symbol("INITIAL_VALUE");function Vi(){return(0,ie.w)(m=>(0,W.aj)(m.map(d=>d.pipe((0,he.q)(1),(0,Ue.O)(xi)))).pipe((0,je.R)((d,h)=>{let M=!1;return h.reduce((S,K,de)=>S!==xi?S:(K===xi&&(M=!0),M||!1!==K&&de!==h.length-1&&!Di(K)?S:K),d)},xi),(0,Ye.h)(d=>d!==xi),(0,le.U)(d=>Di(d)?d:!0===d),(0,he.q)(1)))}class hi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ei,this.attachRef=null}}class Ei{constructor(){this.contexts=new Map}onChildOutletCreated(d,h){const M=this.getOrCreateContext(d);M.outlet=h,this.contexts.set(d,M)}onChildOutletDestroyed(d){const h=this.getContext(d);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let h=this.getContext(d);return h||(h=new hi,this.contexts.set(d,h)),h}getContext(d){return this.contexts.get(d)||null}}let so=(()=>{class m{constructor(h,M,S,K,de){this.parentContexts=h,this.location=M,this.resolver=S,this.changeDetector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=K||P,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,M){this.activated=h,this._activatedRoute=M,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,M){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const de=(M=M||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),Oe=this.parentContexts.getOrCreateContext(this.name).children,pt=new Do(h,Oe,this.location.injector);this.activated=this.location.createComponent(de,this.location.length,pt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(Ei),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},m.\u0275dir=a.lG2({type:m,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),m})();class Do{constructor(d,h,M){this.route=d,this.childContexts=h,this.parent=M}get(d,h){return d===k?this.route:d===Ei?this.childContexts:this.parent.get(d,h)}}let Jo=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,M){1&h&&a._UZ(0,"router-outlet")},directives:[so],encapsulation:2}),m})();function Qi(m,d=""){for(let h=0;hyi(M)===d);return h.push(...m.filter(M=>yi(M)!==d)),h}const b={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Y(m,d,h){var M;if(""===d.path)return"full"===d.pathMatch&&(m.hasChildren()||h.length>0)?Object.assign({},b):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const K=(d.matcher||Le)(h,m,d);if(!K)return Object.assign({},b);const de={};L(K.posParams,(pt,Ht)=>{de[Ht]=pt.path});const Oe=K.consumed.length>0?Object.assign(Object.assign({},de),K.consumed[K.consumed.length-1].parameters):de;return{matched:!0,consumedSegments:K.consumed,lastChild:K.consumed.length,parameters:Oe,positionalParamSegments:null!==(M=K.posParams)&&void 0!==M?M:{}}}function w(m,d,h,M,S="corrected"){if(h.length>0&&function ct(m,d,h){return h.some(M=>kt(m,d,M)&&yi(M)!==P)}(m,h,M)){const de=new qt(d,function xe(m,d,h,M){const S={};S[P]=M,M._sourceSegment=m,M._segmentIndexShift=d.length;for(const K of h)if(""===K.path&&yi(K)!==P){const de=new qt([],{});de._sourceSegment=m,de._segmentIndexShift=d.length,S[yi(K)]=de}return S}(m,d,M,new qt(h,m.children)));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:[]}}if(0===h.length&&function Mt(m,d,h){return h.some(M=>kt(m,d,M))}(m,h,M)){const de=new qt(m.segments,function Q(m,d,h,M,S,K){const de={};for(const Oe of M)if(kt(m,h,Oe)&&!S[yi(Oe)]){const pt=new qt([],{});pt._sourceSegment=m,pt._segmentIndexShift="legacy"===K?m.segments.length:d.length,de[yi(Oe)]=pt}return Object.assign(Object.assign({},S),de)}(m,d,h,M,m.children,S));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:h}}const K=new qt(m.segments,m.children);return K._sourceSegment=m,K._segmentIndexShift=d.length,{segmentGroup:K,slicedSegments:h}}function kt(m,d,h){return(!(m.hasChildren()||d.length>0)||"full"!==h.pathMatch)&&""===h.path}function Fn(m,d,h,M){return!!(yi(m)===M||M!==P&&kt(d,h,m))&&("**"===m.path||Y(d,m,h).matched)}function Tn(m,d,h){return 0===d.length&&!m.children[h]}class Dn{constructor(d){this.segmentGroup=d||null}}class dn{constructor(d){this.urlTree=d}}function Yn(m){return new I.y(d=>d.error(new Dn(m)))}function On(m){return new I.y(d=>d.error(new dn(m)))}function Yt(m){return new I.y(d=>d.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${m}'`)))}class C{constructor(d,h,M,S,K){this.configLoader=h,this.urlSerializer=M,this.urlTree=S,this.config=K,this.allowRedirects=!0,this.ngModule=d.get(a.h0i)}apply(){const d=w(this.urlTree.root,[],[],this.config).segmentGroup,h=new qt(d.segments,d.children);return this.expandSegmentGroup(this.ngModule,this.config,h,P).pipe((0,le.U)(K=>this.createUrlTree(U(K),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,tt.K)(K=>{if(K instanceof dn)return this.allowRedirects=!1,this.match(K.urlTree);throw K instanceof Dn?this.noMatchError(K):K}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,P).pipe((0,le.U)(S=>this.createUrlTree(U(S),d.queryParams,d.fragment))).pipe((0,tt.K)(S=>{throw S instanceof Dn?this.noMatchError(S):S}))}noMatchError(d){return new Error(`Cannot match any routes. URL Segment: '${d.segmentGroup}'`)}createUrlTree(d,h,M){const S=d.segments.length>0?new qt([],{[P]:d}):d;return new jn(S,h,M)}expandSegmentGroup(d,h,M,S){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(d,h,M).pipe((0,le.U)(K=>new qt([],K))):this.expandSegment(d,M,h,M.segments,S,!0)}expandChildren(d,h,M){const S=[];for(const K of Object.keys(M.children))"primary"===K?S.unshift(K):S.push(K);return(0,oe.D)(S).pipe((0,ke.b)(K=>{const de=M.children[K],Oe=Wn(h,K);return this.expandSegmentGroup(d,Oe,de,K).pipe((0,le.U)(pt=>({segment:pt,outlet:K})))}),(0,je.R)((K,de)=>(K[de.outlet]=de.segment,K),{}),function fe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,_e(1),h?et(d):zt(()=>new G))}())}expandSegment(d,h,M,S,K,de){return(0,oe.D)(M).pipe((0,ke.b)(Oe=>this.expandSegmentAgainstRoute(d,h,M,Oe,S,K,de).pipe((0,tt.K)(Ht=>{if(Ht instanceof Dn)return(0,q.of)(null);throw Ht}))),te(Oe=>!!Oe),(0,tt.K)((Oe,pt)=>{if(Oe instanceof G||"EmptyError"===Oe.name){if(Tn(h,S,K))return(0,q.of)(new qt([],{}));throw new Dn(h)}throw Oe}))}expandSegmentAgainstRoute(d,h,M,S,K,de,Oe){return Fn(S,h,K,de)?void 0===S.redirectTo?this.matchSegmentAgainstRoute(d,h,S,K,de):Oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de):Yn(h):Yn(h)}expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){return"**"===S.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,M,S,de):this.expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,M,S){const K=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?On(K):this.lineralizeSegments(M,K).pipe((0,ve.zg)(de=>{const Oe=new qt(de,{});return this.expandSegment(d,Oe,h,de,S,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){const{matched:Oe,consumedSegments:pt,lastChild:Ht,positionalParamSegments:wn}=Y(h,S,K);if(!Oe)return Yn(h);const tn=this.applyRedirectCommands(pt,S.redirectTo,wn);return S.redirectTo.startsWith("/")?On(tn):this.lineralizeSegments(S,tn).pipe((0,ve.zg)(In=>this.expandSegment(d,h,M,In.concat(K.slice(Ht)),de,!1)))}matchSegmentAgainstRoute(d,h,M,S,K){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,q.of)(M._loadedConfig):this.configLoader.load(d.injector,M)).pipe((0,le.U)(In=>(M._loadedConfig=In,new qt(S,{})))):(0,q.of)(new qt(S,{}));const{matched:de,consumedSegments:Oe,lastChild:pt}=Y(h,M,S);if(!de)return Yn(h);const Ht=S.slice(pt);return this.getChildConfig(d,M,S).pipe((0,ve.zg)(tn=>{const In=tn.module,Hn=tn.routes,{segmentGroup:co,slicedSegments:lo}=w(h,Oe,Ht,Hn),$i=new qt(co.segments,co.children);if(0===lo.length&&$i.hasChildren())return this.expandChildren(In,Hn,$i).pipe((0,le.U)(eo=>new qt(Oe,eo)));if(0===Hn.length&&0===lo.length)return(0,q.of)(new qt(Oe,{}));const uo=yi(M)===K;return this.expandSegment(In,$i,Hn,lo,uo?P:K,!0).pipe((0,le.U)(Ai=>new qt(Oe.concat(Ai.segments),Ai.children)))}))}getChildConfig(d,h,M){return h.children?(0,q.of)(new ro(h.children,d)):h.loadChildren?void 0!==h._loadedConfig?(0,q.of)(h._loadedConfig):this.runCanLoadGuards(d.injector,h,M).pipe((0,ve.zg)(S=>S?this.configLoader.load(d.injector,h).pipe((0,le.U)(K=>(h._loadedConfig=K,K))):function Eo(m){return new I.y(d=>d.error(He(`Cannot load children because the guard of the route "path: '${m.path}'" returned false`)))}(h))):(0,q.of)(new ro([],d))}runCanLoadGuards(d,h,M){const S=h.canLoad;if(!S||0===S.length)return(0,q.of)(!0);const K=S.map(de=>{const Oe=d.get(de);let pt;if(function bo(m){return m&&oi(m.canLoad)}(Oe))pt=Oe.canLoad(h,M);else{if(!oi(Oe))throw new Error("Invalid CanLoad guard");pt=Oe(h,M)}return E(pt)});return(0,q.of)(K).pipe(Vi(),(0,mt.b)(de=>{if(!Di(de))return;const Oe=He(`Redirecting to "${this.urlSerializer.serialize(de)}"`);throw Oe.url=de,Oe}),(0,le.U)(de=>!0===de))}lineralizeSegments(d,h){let M=[],S=h.root;for(;;){if(M=M.concat(S.segments),0===S.numberOfChildren)return(0,q.of)(M);if(S.numberOfChildren>1||!S.children[P])return Yt(d.redirectTo);S=S.children[P]}}applyRedirectCommands(d,h,M){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),d,M)}applyRedirectCreatreUrlTree(d,h,M,S){const K=this.createSegmentGroup(d,h.root,M,S);return new jn(K,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(d,h){const M={};return L(d,(S,K)=>{if("string"==typeof S&&S.startsWith(":")){const Oe=S.substring(1);M[K]=h[Oe]}else M[K]=S}),M}createSegmentGroup(d,h,M,S){const K=this.createSegments(d,h.segments,M,S);let de={};return L(h.children,(Oe,pt)=>{de[pt]=this.createSegmentGroup(d,Oe,M,S)}),new qt(K,de)}createSegments(d,h,M,S){return h.map(K=>K.path.startsWith(":")?this.findPosParam(d,K,S):this.findOrReturn(K,M))}findPosParam(d,h,M){const S=M[h.path.substring(1)];if(!S)throw new Error(`Cannot redirect to '${d}'. Cannot find '${h.path}'.`);return S}findOrReturn(d,h){let M=0;for(const S of h){if(S.path===d.path)return h.splice(M),S;M++}return d}}function U(m){const d={};for(const M of Object.keys(m.children)){const K=U(m.children[M]);(K.segments.length>0||K.hasChildren())&&(d[M]=K)}return function y(m){if(1===m.numberOfChildren&&m.children[P]){const d=m.children[P];return new qt(m.segments.concat(d.segments),d.children)}return m}(new qt(m.segments,d))}class Nt{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class lt{constructor(d,h){this.component=d,this.route=h}}function O(m,d,h){const M=m._root;return F(M,d?d._root:null,h,[M.value])}function l(m,d,h){const M=function g(m){if(!m)return null;for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(d);return(M?M.module.injector:h).get(m)}function F(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=Rn(d);return m.children.forEach(de=>{(function ne(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=m.value,de=d?d.value:null,Oe=h?h.getContext(m.value.outlet):null;if(de&&K.routeConfig===de.routeConfig){const pt=function ge(m,d,h){if("function"==typeof h)return h(m,d);switch(h){case"pathParamsChange":return!ae(m.url,d.url);case"pathParamsOrQueryParamsChange":return!ae(m.url,d.url)||!V(m.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ai(m,d)||!V(m.queryParams,d.queryParams);default:return!ai(m,d)}}(de,K,K.routeConfig.runGuardsAndResolvers);pt?S.canActivateChecks.push(new Nt(M)):(K.data=de.data,K._resolvedData=de._resolvedData),F(m,d,K.component?Oe?Oe.children:null:h,M,S),pt&&Oe&&Oe.outlet&&Oe.outlet.isActivated&&S.canDeactivateChecks.push(new lt(Oe.outlet.component,de))}else de&&Ce(d,Oe,S),S.canActivateChecks.push(new Nt(M)),F(m,null,K.component?Oe?Oe.children:null:h,M,S)})(de,K[de.value.outlet],h,M.concat([de.value]),S),delete K[de.value.outlet]}),L(K,(de,Oe)=>Ce(de,h.getContext(Oe),S)),S}function Ce(m,d,h){const M=Rn(m),S=m.value;L(M,(K,de)=>{Ce(K,S.component?d?d.children.getContext(de):null:d,h)}),h.canDeactivateChecks.push(new lt(S.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,S))}class pn{}function Jn(m){return new I.y(d=>d.error(m))}class _i{constructor(d,h,M,S,K,de){this.rootComponentType=d,this.config=h,this.urlTree=M,this.url=S,this.paramsInheritanceStrategy=K,this.relativeLinkResolution=de}recognize(){const d=w(this.urlTree.root,[],[],this.config.filter(de=>void 0===de.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,d,P);if(null===h)return null;const M=new Ct([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},P,this.rootComponentType,null,this.urlTree.root,-1,{}),S=new Nn(M,h),K=new Ot(this.url,S);return this.inheritParamsAndData(K._root),K}inheritParamsAndData(d){const h=d.value,M=Ee(h,this.paramsInheritanceStrategy);h.params=Object.freeze(M.params),h.data=Object.freeze(M.data),d.children.forEach(S=>this.inheritParamsAndData(S))}processSegmentGroup(d,h,M){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,h):this.processSegment(d,h,h.segments,M)}processChildren(d,h){const M=[];for(const K of Object.keys(h.children)){const de=h.children[K],Oe=Wn(d,K),pt=this.processSegmentGroup(Oe,de,K);if(null===pt)return null;M.push(...pt)}const S=fi(M);return function di(m){m.sort((d,h)=>d.value.outlet===P?-1:h.value.outlet===P?1:d.value.outlet.localeCompare(h.value.outlet))}(S),S}processSegment(d,h,M,S){for(const K of d){const de=this.processSegmentAgainstRoute(K,h,M,S);if(null!==de)return de}return Tn(h,M,S)?[]:null}processSegmentAgainstRoute(d,h,M,S){if(d.redirectTo||!Fn(d,h,M,S))return null;let K,de=[],Oe=[];if("**"===d.path){const Hn=M.length>0?ce(M).parameters:{};K=new Ct(M,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,ji(h),Li(h)+M.length,zo(d))}else{const Hn=Y(h,d,M);if(!Hn.matched)return null;de=Hn.consumedSegments,Oe=M.slice(Hn.lastChild),K=new Ct(de,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,ji(h),Li(h)+de.length,zo(d))}const pt=function qi(m){return m.children?m.children:m.loadChildren?m._loadedConfig.routes:[]}(d),{segmentGroup:Ht,slicedSegments:wn}=w(h,de,Oe,pt.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===wn.length&&Ht.hasChildren()){const Hn=this.processChildren(pt,Ht);return null===Hn?null:[new Nn(K,Hn)]}if(0===pt.length&&0===wn.length)return[new Nn(K,[])];const tn=yi(d)===S,In=this.processSegment(pt,Ht,wn,tn?P:S);return null===In?null:[new Nn(K,In)]}}function Oi(m){const d=m.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function fi(m){const d=[],h=new Set;for(const M of m){if(!Oi(M)){d.push(M);continue}const S=d.find(K=>M.value.routeConfig===K.value.routeConfig);void 0!==S?(S.children.push(...M.children),h.add(S)):d.push(M)}for(const M of h){const S=fi(M.children);d.push(new Nn(M.value,S))}return d.filter(M=>!h.has(M))}function ji(m){let d=m;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Li(m){let d=m,h=d._segmentIndexShift?d._segmentIndexShift:0;for(;d._sourceSegment;)d=d._sourceSegment,h+=d._segmentIndexShift?d._segmentIndexShift:0;return h-1}function Ho(m){return m.data||{}}function zo(m){return m.resolve||{}}function en(m){return(0,ie.w)(d=>{const h=m(d);return h?(0,oe.D)(h).pipe((0,le.U)(()=>d)):(0,q.of)(d)})}class xn extends class Gn{shouldDetach(d){return!1}store(d,h){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,h){return d.routeConfig===h.routeConfig}}{}const pi=new a.OlP("ROUTES");class Ji{constructor(d,h,M,S){this.injector=d,this.compiler=h,this.onLoadStartListener=M,this.onLoadEndListener=S}load(d,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const S=this.loadModuleFactory(h.loadChildren).pipe((0,le.U)(K=>{this.onLoadEndListener&&this.onLoadEndListener(h);const de=K.create(d);return new ro(nt(de.injector.get(pi,void 0,a.XFs.Self|a.XFs.Optional)).map(Pi),de)}),(0,tt.K)(K=>{throw h._loader$=void 0,K}));return h._loader$=new ee.c(S,()=>new ye.xQ).pipe((0,Qe.x)()),h._loader$}loadModuleFactory(d){return E(d()).pipe((0,ve.zg)(h=>h instanceof a.YKP?(0,q.of)(h):(0,oe.D)(this.compiler.compileModuleAsync(h))))}}class mr{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,h){return d}}function ts(m){throw m}function Ci(m,d,h){return d.parse("/")}function Hi(m,d){return(0,q.of)(null)}const Ni={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ui={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class m{constructor(h,M,S,K,de,Oe,pt){this.rootComponentType=h,this.urlSerializer=M,this.rootContexts=S,this.location=K,this.config=pt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=ts,this.malformedUriErrorHandler=Ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hi,afterPreactivation:Hi},this.urlHandlingStrategy=new mr,this.routeReuseStrategy=new xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=de.get(a.h0i),this.console=de.get(a.c2e);const tn=de.get(a.R0b);this.isNgZoneEnabled=tn instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(pt),this.currentUrlTree=function $(){return new jn(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ji(de,Oe,In=>this.triggerEvent(new Dt(In)),In=>this.triggerEvent(new Sn(In))),this.routerState=X(this.currentUrlTree,this.rootComponentType),this.transitions=new _.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const M=this.events;return h.pipe((0,Ye.h)(S=>0!==S.id),(0,le.U)(S=>Object.assign(Object.assign({},S),{extractedUrl:this.urlHandlingStrategy.extract(S.rawUrl)})),(0,ie.w)(S=>{let K=!1,de=!1;return(0,q.of)(S).pipe((0,mt.b)(Oe=>{this.currentNavigation={id:Oe.id,initialUrl:Oe.currentRawUrl,extractedUrl:Oe.extractedUrl,trigger:Oe.source,extras:Oe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ie.w)(Oe=>{const pt=this.browserUrlTree.toString(),Ht=!this.navigated||Oe.extractedUrl.toString()!==pt||pt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ht)&&this.urlHandlingStrategy.shouldProcessUrl(Oe.rawUrl))return gr(Oe.source)&&(this.browserUrlTree=Oe.extractedUrl),(0,q.of)(Oe).pipe((0,ie.w)(tn=>{const In=this.transitions.getValue();return M.next(new ot(tn.id,this.serializeUrl(tn.extractedUrl),tn.source,tn.restoredState)),In!==this.transitions.getValue()?B.E:Promise.resolve(tn)}),function at(m,d,h,M){return(0,ie.w)(S=>function D(m,d,h,M,S){return new C(m,d,h,M,S).apply()}(m,d,h,S.extractedUrl,M).pipe((0,le.U)(K=>Object.assign(Object.assign({},S),{urlAfterRedirects:K}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mt.b)(tn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:tn.urlAfterRedirects})}),function ao(m,d,h,M,S){return(0,ve.zg)(K=>function ti(m,d,h,M,S="emptyOnly",K="legacy"){try{const de=new _i(m,d,h,M,S,K).recognize();return null===de?Jn(new pn):(0,q.of)(de)}catch(de){return Jn(de)}}(m,d,K.urlAfterRedirects,h(K.urlAfterRedirects),M,S).pipe((0,le.U)(de=>Object.assign(Object.assign({},K),{targetSnapshot:de}))))}(this.rootComponentType,this.config,tn=>this.serializeUrl(tn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mt.b)(tn=>{if("eager"===this.urlUpdateStrategy){if(!tn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(tn.urlAfterRedirects,tn.rawUrl);this.setBrowserUrl(Hn,tn)}this.browserUrlTree=tn.urlAfterRedirects}const In=new vn(tn.id,this.serializeUrl(tn.extractedUrl),this.serializeUrl(tn.urlAfterRedirects),tn.targetSnapshot);M.next(In)}));if(Ht&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:In,extractedUrl:Hn,source:co,restoredState:lo,extras:$i}=Oe,uo=new ot(In,this.serializeUrl(Hn),co,lo);M.next(uo);const So=X(Hn,this.rootComponentType).snapshot;return(0,q.of)(Object.assign(Object.assign({},Oe),{targetSnapshot:So,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},$i),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Oe.rawUrl,Oe.resolve(null),B.E}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.beforePreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,mt.b)(Oe=>{const pt=new Ut(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot);this.triggerEvent(pt)}),(0,le.U)(Oe=>Object.assign(Object.assign({},Oe),{guards:O(Oe.targetSnapshot,Oe.currentSnapshot,this.rootContexts)})),function Ke(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,currentSnapshot:S,guards:{canActivateChecks:K,canDeactivateChecks:de}}=h;return 0===de.length&&0===K.length?(0,q.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function ft(m,d,h,M){return(0,oe.D)(m).pipe((0,ve.zg)(S=>function Jt(m,d,h,M,S){const K=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!K||0===K.length)return(0,q.of)(!0);const de=K.map(Oe=>{const pt=l(Oe,d,S);let Ht;if(function wo(m){return m&&oi(m.canDeactivate)}(pt))Ht=E(pt.canDeactivate(m,d,h,M));else{if(!oi(pt))throw new Error("Invalid CanDeactivate guard");Ht=E(pt(m,d,h,M))}return Ht.pipe(te())});return(0,q.of)(de).pipe(Vi())}(S.component,S.route,h,d,M)),te(S=>!0!==S,!0))}(de,M,S,m).pipe((0,ve.zg)(Oe=>Oe&&function Zi(m){return"boolean"==typeof m}(Oe)?function Pt(m,d,h,M){return(0,oe.D)(d).pipe((0,ke.b)(S=>(0,R.z)(function Gt(m,d){return null!==m&&d&&d(new cn(m)),(0,q.of)(!0)}(S.route.parent,M),function Bt(m,d){return null!==m&&d&&d(new qe(m)),(0,q.of)(!0)}(S.route,M),function Kt(m,d,h){const M=d[d.length-1],K=d.slice(0,d.length-1).reverse().map(de=>function c(m){const d=m.routeConfig?m.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:m,guards:d}:null}(de)).filter(de=>null!==de).map(de=>(0,H.P)(()=>{const Oe=de.guards.map(pt=>{const Ht=l(pt,de.node,h);let wn;if(function Lo(m){return m&&oi(m.canActivateChild)}(Ht))wn=E(Ht.canActivateChild(M,m));else{if(!oi(Ht))throw new Error("Invalid CanActivateChild guard");wn=E(Ht(M,m))}return wn.pipe(te())});return(0,q.of)(Oe).pipe(Vi())}));return(0,q.of)(K).pipe(Vi())}(m,S.path,h),function ln(m,d,h){const M=d.routeConfig?d.routeConfig.canActivate:null;if(!M||0===M.length)return(0,q.of)(!0);const S=M.map(K=>(0,H.P)(()=>{const de=l(K,d,h);let Oe;if(function Vo(m){return m&&oi(m.canActivate)}(de))Oe=E(de.canActivate(d,m));else{if(!oi(de))throw new Error("Invalid CanActivate guard");Oe=E(de(d,m))}return Oe.pipe(te())}));return(0,q.of)(S).pipe(Vi())}(m,S.route,h))),te(S=>!0!==S,!0))}(M,K,m,d):(0,q.of)(Oe)),(0,le.U)(Oe=>Object.assign(Object.assign({},h),{guardsResult:Oe})))})}(this.ngModule.injector,Oe=>this.triggerEvent(Oe)),(0,mt.b)(Oe=>{if(Di(Oe.guardsResult)){const Ht=He(`Redirecting to "${this.serializeUrl(Oe.guardsResult)}"`);throw Ht.url=Oe.guardsResult,Ht}const pt=new un(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot,!!Oe.guardsResult);this.triggerEvent(pt)}),(0,Ye.h)(Oe=>!!Oe.guardsResult||(this.restoreHistory(Oe),this.cancelNavigationTransition(Oe,""),!1)),en(Oe=>{if(Oe.guards.canActivateChecks.length)return(0,q.of)(Oe).pipe((0,mt.b)(pt=>{const Ht=new _n(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}),(0,ie.w)(pt=>{let Ht=!1;return(0,q.of)(pt).pipe(function fr(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,guards:{canActivateChecks:S}}=h;if(!S.length)return(0,q.of)(h);let K=0;return(0,oe.D)(S).pipe((0,ke.b)(de=>function pr(m,d,h,M){return function Rt(m,d,h,M){const S=Object.keys(m);if(0===S.length)return(0,q.of)({});const K={};return(0,oe.D)(S).pipe((0,ve.zg)(de=>function Xt(m,d,h,M){const S=l(m,d,M);return E(S.resolve?S.resolve(d,h):S(d,h))}(m[de],d,h,M).pipe((0,mt.b)(Oe=>{K[de]=Oe}))),_e(1),(0,ve.zg)(()=>Object.keys(K).length===S.length?(0,q.of)(K):B.E))}(m._resolve,m,d,M).pipe((0,le.U)(K=>(m._resolvedData=K,m.data=Object.assign(Object.assign({},m.data),Ee(m,h).resolve),null)))}(de.route,M,m,d)),(0,mt.b)(()=>K++),_e(1),(0,ve.zg)(de=>K===S.length?(0,q.of)(h):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mt.b)({next:()=>Ht=!0,complete:()=>{Ht||(this.restoreHistory(pt),this.cancelNavigationTransition(pt,"At least one route resolver didn't emit any value."))}}))}),(0,mt.b)(pt=>{const Ht=new Cn(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}))}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.afterPreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,le.U)(Oe=>{const pt=function kn(m,d,h){const M=bi(m,d._root,h?h._root:void 0);return new qn(M,d)}(this.routeReuseStrategy,Oe.targetSnapshot,Oe.currentRouterState);return Object.assign(Object.assign({},Oe),{targetRouterState:pt})}),(0,mt.b)(Oe=>{this.currentUrlTree=Oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Oe.urlAfterRedirects,Oe.rawUrl),this.routerState=Oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Oe),this.browserUrlTree=Oe.urlAfterRedirects)}),((m,d,h)=>(0,le.U)(M=>(new qo(d,M.targetRouterState,M.currentRouterState,h).activate(m),M)))(this.rootContexts,this.routeReuseStrategy,Oe=>this.triggerEvent(Oe)),(0,mt.b)({next(){K=!0},complete(){K=!0}}),(0,dt.x)(()=>{var Oe;K||de||this.cancelNavigationTransition(S,`Navigation ID ${S.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id)===S.id&&(this.currentNavigation=null)}),(0,tt.K)(Oe=>{if(de=!0,function Ge(m){return m&&m[me]}(Oe)){const pt=Di(Oe.url);pt||(this.navigated=!0,this.restoreHistory(S,!0));const Ht=new Zt(S.id,this.serializeUrl(S.extractedUrl),Oe.message);M.next(Ht),pt?setTimeout(()=>{const wn=this.urlHandlingStrategy.merge(Oe.url,this.rawUrlTree),tn={skipLocationChange:S.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gr(S.source)};this.scheduleNavigation(wn,"imperative",null,tn,{resolve:S.resolve,reject:S.reject,promise:S.promise})},0):S.resolve(!1)}else{this.restoreHistory(S,!0);const pt=new mn(S.id,this.serializeUrl(S.extractedUrl),Oe);M.next(pt);try{S.resolve(this.errorHandler(Oe))}catch(Ht){S.reject(Ht)}}return B.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const M="popstate"===h.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{var S;const K={replaceUrl:!0},de=(null===(S=h.state)||void 0===S?void 0:S.navigationId)?h.state:null;if(de){const pt=Object.assign({},de);delete pt.navigationId,delete pt.\u0275routerPageId,0!==Object.keys(pt).length&&(K.state=pt)}const Oe=this.parseUrl(h.url);this.scheduleNavigation(Oe,M,de,K)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Qi(h),this.config=h.map(Pi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,M={}){const{relativeTo:S,queryParams:K,fragment:de,queryParamsHandling:Oe,preserveFragment:pt}=M,Ht=S||this.routerState.root,wn=pt?this.currentUrlTree.fragment:de;let tn=null;switch(Oe){case"merge":tn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),K);break;case"preserve":tn=this.currentUrlTree.queryParams;break;default:tn=K||null}return null!==tn&&(tn=this.removeEmptyProps(tn)),function vi(m,d,h,M,S){if(0===h.length)return ko(d.root,d.root,d,M,S);const K=function Zo(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new vo(!0,0,m);let d=0,h=!1;const M=m.reduce((S,K,de)=>{if("object"==typeof K&&null!=K){if(K.outlets){const Oe={};return L(K.outlets,(pt,Ht)=>{Oe[Ht]="string"==typeof pt?pt.split("/"):pt}),[...S,{outlets:Oe}]}if(K.segmentPath)return[...S,K.segmentPath]}return"string"!=typeof K?[...S,K]:0===de?(K.split("/").forEach((Oe,pt)=>{0==pt&&"."===Oe||(0==pt&&""===Oe?h=!0:".."===Oe?d++:""!=Oe&&S.push(Oe))}),S):[...S,K]},[]);return new vo(h,d,M)}(h);if(K.toRoot())return ko(d.root,new qt([],{}),d,M,S);const de=function yo(m,d,h){if(m.isAbsolute)return new Gi(d.root,!0,0);if(-1===h.snapshot._lastPathIndex){const K=h.snapshot._urlSegment;return new Gi(K,K===d.root,0)}const M=ui(m.commands[0])?0:1;return function _o(m,d,h){let M=m,S=d,K=h;for(;K>S;){if(K-=S,M=M.parent,!M)throw new Error("Invalid number of '../'");S=M.segments.length}return new Gi(M,!1,S-K)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+M,m.numberOfDoubleDots)}(K,d,m),Oe=de.processChildren?Co(de.segmentGroup,de.index,K.commands):Ii(de.segmentGroup,de.index,K.commands);return ko(de.segmentGroup,Oe,d,M,S)}(Ht,this.currentUrlTree,h,tn,null!=wn?wn:null)}navigateByUrl(h,M={skipLocationChange:!1}){const S=Di(h)?h:this.parseUrl(h),K=this.urlHandlingStrategy.merge(S,this.rawUrlTree);return this.scheduleNavigation(K,"imperative",null,M)}navigate(h,M={skipLocationChange:!1}){return function Fs(m){for(let d=0;d{const K=h[S];return null!=K&&(M[S]=K),M},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Et(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,M,S,K,de){var Oe,pt,Ht;if(this.disposed)return Promise.resolve(!1);const wn=this.transitions.value,tn=gr(M)&&wn&&!gr(wn.source),In=wn.rawUrl.toString()===h.toString(),Hn=wn.id===(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id);if(tn&&In&&Hn)return Promise.resolve(!0);let lo,$i,uo;de?(lo=de.resolve,$i=de.reject,uo=de.promise):uo=new Promise((eo,Bs)=>{lo=eo,$i=Bs});const So=++this.navigationId;let Ai;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(S=this.location.getState()),Ai=S&&S.\u0275routerPageId?S.\u0275routerPageId:K.replaceUrl||K.skipLocationChange?null!==(pt=this.browserPageId)&&void 0!==pt?pt:0:(null!==(Ht=this.browserPageId)&&void 0!==Ht?Ht:0)+1):Ai=0,this.setTransition({id:So,targetPageId:Ai,source:M,restoredState:S,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:K,resolve:lo,reject:$i,promise:uo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),uo.catch(eo=>Promise.reject(eo))}setBrowserUrl(h,M){const S=this.urlSerializer.serialize(h),K=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(S)||M.extras.replaceUrl?this.location.replaceState(S,"",K):this.location.go(S,"",K)}restoreHistory(h,M=!1){var S,K;if("computed"===this.canceledNavigationResolution){const de=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(S=this.currentNavigation)||void 0===S?void 0:S.finalUrl)||0===de?this.currentUrlTree===(null===(K=this.currentNavigation)||void 0===K?void 0:K.finalUrl)&&0===de&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(de)}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,M){const S=new Zt(h.id,this.serializeUrl(h.extractedUrl),M);this.triggerEvent(S),h.resolve(!1)}generateNgRouterState(h,M){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:M}:{navigationId:h}}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function gr(m){return"imperative"!==m}let Xi=(()=>{class m{constructor(h,M,S,K,de){this.router=h,this.route=M,this.tabIndexAttribute=S,this.renderer=K,this.el=de,this.commands=null,this.onChanges=new ye.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const M=this.renderer,S=this.el.nativeElement;null!==h?M.setAttribute(S,"tabindex",h):M.removeAttribute(S,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq))},m.\u0275dir=a.lG2({type:m,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,M){1&h&&a.NdJ("click",function(){return M.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})(),No=(()=>{class m{constructor(h,M,S){this.router=h,this.route=M,this.locationStrategy=S,this.commands=null,this.href=null,this.onChanges=new ye.xQ,this.subscription=h.events.subscribe(K=>{K instanceof Et&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,M,S,K,de){if(0!==h||M||S||K||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Oe={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.Y36(it.S$))},m.\u0275dir=a.lG2({type:m,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,M){1&h&&a.NdJ("click",function(K){return M.onClick(K.button,K.ctrlKey,K.shiftKey,K.altKey,K.metaKey)}),2&h&&a.uIk("target",M.target)("href",M.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})();function ar(m){return""===m||!!m}class Er{}class Is{preload(d,h){return h().pipe((0,tt.K)(()=>(0,q.of)(null)))}}class Vs{preload(d,h){return(0,q.of)(null)}}let wa=(()=>{class m{constructor(h,M,S,K){this.router=h,this.injector=S,this.preloadingStrategy=K,this.loader=new Ji(S,M,pt=>h.triggerEvent(new Dt(pt)),pt=>h.triggerEvent(new Sn(pt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ye.h)(h=>h instanceof Et),(0,ke.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(a.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,M){const S=[];for(const K of M)if(K.loadChildren&&!K.canLoad&&K._loadedConfig){const de=K._loadedConfig;S.push(this.processRoutes(de.module,de.routes))}else K.loadChildren&&!K.canLoad?S.push(this.preloadConfig(h,K)):K.children&&S.push(this.processRoutes(h,K.children));return(0,oe.D)(S).pipe((0,_t.J)(),(0,le.U)(K=>{}))}preloadConfig(h,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,q.of)(M._loadedConfig):this.loader.load(h.injector,M)).pipe((0,ve.zg)(K=>(M._loadedConfig=K,this.processRoutes(K.module,K.routes)))))}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(ci),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(Er))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})(),ns=(()=>{class m{constructor(h,M,S={}){this.router=h,this.viewportScroller=M,this.options=S,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},S.scrollPositionRestoration=S.scrollPositionRestoration||"disabled",S.anchorScrolling=S.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Et&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof z&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,M){this.router.triggerEvent(new z(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();const Ro=new a.OlP("ROUTER_CONFIGURATION"),zr=new a.OlP("ROUTER_FORROOT_GUARD"),Sr=[it.Ye,{provide:ht,useClass:It},{provide:ci,useFactory:function Tr(m,d,h,M,S,K,de={},Oe,pt){const Ht=new ci(null,m,d,h,M,S,nt(K));return Oe&&(Ht.urlHandlingStrategy=Oe),pt&&(Ht.routeReuseStrategy=pt),function ec(m,d){m.errorHandler&&(d.errorHandler=m.errorHandler),m.malformedUriErrorHandler&&(d.malformedUriErrorHandler=m.malformedUriErrorHandler),m.onSameUrlNavigation&&(d.onSameUrlNavigation=m.onSameUrlNavigation),m.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=m.paramsInheritanceStrategy),m.relativeLinkResolution&&(d.relativeLinkResolution=m.relativeLinkResolution),m.urlUpdateStrategy&&(d.urlUpdateStrategy=m.urlUpdateStrategy),m.canceledNavigationResolution&&(d.canceledNavigationResolution=m.canceledNavigationResolution)}(de,Ht),de.enableTracing&&Ht.events.subscribe(wn=>{var tn,In;null===(tn=console.group)||void 0===tn||tn.call(console,`Router Event: ${wn.constructor.name}`),console.log(wn.toString()),console.log(wn),null===(In=console.groupEnd)||void 0===In||In.call(console)}),Ht},deps:[ht,Ei,it.Ye,a.zs3,a.Sil,pi,Ro,[class Xn{},new a.FiY],[class sn{},new a.FiY]]},Ei,{provide:k,useFactory:function Ns(m){return m.routerState.root},deps:[ci]},wa,Vs,Is,{provide:Ro,useValue:{enableTracing:!1}}];function Ls(){return new a.PXZ("Router",ci)}let Hs=(()=>{class m{constructor(h,M){}static forRoot(h,M){return{ngModule:m,providers:[Sr,yr(h),{provide:zr,useFactory:lr,deps:[[ci,new a.FiY,new a.tp0]]},{provide:Ro,useValue:M||{}},{provide:it.S$,useFactory:Da,deps:[it.lw,[new a.tBr(it.mr),new a.FiY],Ro]},{provide:ns,useFactory:cr,deps:[ci,it.EM,Ro]},{provide:Er,useExisting:M&&M.preloadingStrategy?M.preloadingStrategy:Vs},{provide:a.PXZ,multi:!0,useFactory:Ls},[xr,{provide:a.ip1,multi:!0,useFactory:Ea,deps:[xr]},{provide:ur,useFactory:za,deps:[xr]},{provide:a.tb,multi:!0,useExisting:ur}]]}}static forChild(h){return{ngModule:m,providers:[yr(h)]}}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(zr,8),a.LFG(ci,8))},m.\u0275mod=a.oAB({type:m}),m.\u0275inj=a.cJS({}),m})();function cr(m,d,h){return h.scrollOffset&&d.setOffset(h.scrollOffset),new ns(m,d,h)}function Da(m,d,h={}){return h.useHash?new it.Do(m,d):new it.b0(m,d)}function lr(m){return"guarded"}function yr(m){return[{provide:a.deG,multi:!0,useValue:m},{provide:pi,multi:!0,useValue:m}]}let xr=(()=>{class m{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ye.xQ}appInitializer(){return this.injector.get(it.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const S=new Promise(Oe=>M=Oe),K=this.injector.get(ci),de=this.injector.get(Ro);return"disabled"===de.initialNavigation?(K.setUpLocationChangeListener(),M(!0)):"enabled"===de.initialNavigation||"enabledBlocking"===de.initialNavigation?(K.hooks.afterPreactivation=()=>this.initNavigation?(0,q.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),K.initialNavigation()):M(!0),S})}bootstrapListener(h){const M=this.injector.get(Ro),S=this.injector.get(wa),K=this.injector.get(ns),de=this.injector.get(ci),Oe=this.injector.get(a.z2F);h===Oe.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&de.initialNavigation(),S.setUpPreloading(),K.init(),de.resetRootComponentType(Oe.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(a.zs3))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function Ea(m){return m.appInitializer.bind(m)}function za(m){return m.bootstrapListener.bind(m)}const ur=new a.OlP("Router Initializer")},9193:(yt,be,p)=>{p.d(be,{V65:()=>mn,ud1:()=>qt,Hkd:()=>jt,XuQ:()=>Pn,bBn:()=>ei,BOg:()=>st,Rfq:()=>Ot,yQU:()=>rn,U2Q:()=>Wt,UKj:()=>kn,BXH:()=>k,OYp:()=>bi,eLU:()=>ai,x0x:()=>Vi,Ej7:()=>Yn,VWu:()=>qi,rMt:()=>Jt,vEg:()=>mr,RIp:()=>ns,RU0:()=>pi,M8e:()=>gr,ssy:()=>m,Z5F:()=>yr,iUK:()=>Ht,LJh:()=>$i,NFG:()=>To,WH2:()=>Us,UTl:()=>vc,nrZ:()=>Vr,gvV:()=>Fc,d2H:()=>Tc,LBP:()=>qs,_ry:()=>Ic,eFY:()=>Qc,sZJ:()=>e1,np6:()=>ml,UY$:()=>v8,w1L:()=>Nr,rHg:()=>Il,v6v:()=>v1,cN2:()=>Cs,FsU:()=>Zl,s_U:()=>p6,TSL:()=>P1,uIz:()=>wr,d_$:()=>Dr});const mn={name:"bars",theme:"outline",icon:''},qt={name:"calendar",theme:"outline",icon:''},jt={name:"caret-down",theme:"fill",icon:''},Pn={name:"caret-down",theme:"outline",icon:''},ei={name:"caret-up",theme:"fill",icon:''},rn={name:"check-circle",theme:"outline",icon:''},Wt={name:"check",theme:"outline",icon:''},k={name:"close-circle",theme:"fill",icon:''},st={name:"caret-up",theme:"outline",icon:''},Ot={name:"check-circle",theme:"fill",icon:''},ai={name:"close",theme:"outline",icon:''},kn={name:"clock-circle",theme:"outline",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Vi={name:"copy",theme:"outline",icon:''},Yn={name:"dashboard",theme:"outline",icon:''},Jt={name:"double-right",theme:"outline",icon:''},qi={name:"double-left",theme:"outline",icon:''},pi={name:"ellipsis",theme:"outline",icon:''},mr={name:"down",theme:"outline",icon:''},gr={name:"exclamation-circle",theme:"fill",icon:''},ns={name:"edit",theme:"outline",icon:''},yr={name:"eye",theme:"outline",icon:''},m={name:"exclamation-circle",theme:"outline",icon:''},Ht={name:"file",theme:"fill",icon:''},$i={name:"file",theme:"outline",icon:''},To={name:"filter",theme:"fill",icon:''},Us={name:"form",theme:"outline",icon:''},vc={name:"info-circle",theme:"fill",icon:''},Vr={name:"info-circle",theme:"outline",icon:''},Tc={name:"loading",theme:"outline",icon:''},Fc={name:"left",theme:"outline",icon:''},Ic={name:"menu-unfold",theme:"outline",icon:''},qs={name:"menu-fold",theme:"outline",icon:''},Qc={name:"paper-clip",theme:"outline",icon:''},e1={name:"question-circle",theme:"outline",icon:''},ml={name:"right",theme:"outline",icon:''},v8={name:"rotate-left",theme:"outline",icon:''},Nr={name:"rotate-right",theme:"outline",icon:''},v1={name:"star",theme:"fill",icon:''},Il={name:"search",theme:"outline",icon:''},Cs={name:"swap-right",theme:"outline",icon:''},Zl={name:"up",theme:"outline",icon:''},p6={name:"upload",theme:"outline",icon:''},P1={name:"vertical-align-top",theme:"outline",icon:''},wr={name:"zoom-in",theme:"outline",icon:''},Dr={name:"zoom-out",theme:"outline",icon:''}},8076:(yt,be,p)=>{p.d(be,{J_:()=>oe,c8:()=>W,YK:()=>I,LU:()=>R,Rq:()=>ye,mF:()=>ee,$C:()=>Ye});var a=p(1777);let s=(()=>{class ze{}return ze.SLOW="0.3s",ze.BASE="0.2s",ze.FAST="0.1s",ze})(),G=(()=>{class ze{}return ze.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",ze.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",ze.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",ze.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",ze.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",ze.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",ze.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",ze.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",ze.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",ze.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",ze.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",ze.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",ze.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",ze.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",ze})();const oe=(0,a.X$)("collapseMotion",[(0,a.SB)("expanded",(0,a.oB)({height:"*"})),(0,a.SB)("collapsed",(0,a.oB)({height:0,overflow:"hidden"})),(0,a.SB)("hidden",(0,a.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,a.eR)("expanded => collapsed",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("expanded => hidden",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("collapsed => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("hidden => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`))]),W=((0,a.X$)("treeCollapseMotion",[(0,a.eR)("* => *",[(0,a.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,a.oB)({overflow:"hidden"}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,a.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,a.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,a.X$)("fadeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:1}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:0}))])]),(0,a.X$)("helpMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"translateY(-5px)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:1,transform:"translateY(0)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"translateY(0)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:0,transform:"translateY(-5px)"}))])])),I=(0,a.X$)("moveUpMotion",[(0,a.eR)("* => enter",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,a.eR)("* => leave",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),R=(0,a.X$)("notificationMotion",[(0,a.SB)("enterRight",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterRight",[(0,a.oB)({opacity:0,transform:"translateX(5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("enterLeft",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterLeft",[(0,a.oB)({opacity:0,transform:"translateX(-5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("leave",(0,a.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,a.eR)("* => leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)("100ms linear")])]),H=`${s.BASE} ${G.EASE_OUT_QUINT}`,B=`${s.BASE} ${G.EASE_IN_QUINT}`,ee=(0,a.X$)("slideMotion",[(0,a.SB)("void",(0,a.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,a.SB)("enter",(0,a.oB)({opacity:1,transform:"scaleY(1)"})),(0,a.eR)("void => *",[(0,a.jt)(H)]),(0,a.eR)("* => void",[(0,a.jt)(B)])]),ye=(0,a.X$)("slideAlertMotion",[(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Ye=(0,a.X$)("zoomBigMotion",[(0,a.eR)("void => active",[(0,a.oB)({opacity:0,transform:"scale(0.8)"}),(0,a.jt)(`${s.BASE} ${G.EASE_OUT_CIRC}`,(0,a.oB)({opacity:1,transform:"scale(1)"}))]),(0,a.eR)("active => void",[(0,a.oB)({opacity:1,transform:"scale(1)"}),(0,a.jt)(`${s.BASE} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scale(0.8)"}))])]);(0,a.X$)("zoomBadgeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_OUT_BACK}`,(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_BACK}`,(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(yt,be,p)=>{p.d(be,{o2:()=>G,M8:()=>oe,uf:()=>s,Bh:()=>a});const a=["success","processing","error","default","warning"],s=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function G(q){return-1!==s.indexOf(q)}function oe(q){return-1!==a.indexOf(q)}},9439:(yt,be,p)=>{p.d(be,{jY:()=>W,oS:()=>I});var a=p(5e3),s=p(8929),G=p(2198),oe=p(7604);const q=new a.OlP("nz-config"),_=function(R){return void 0!==R};let W=(()=>{class R{constructor(B){this.configUpdated$=new s.xQ,this.config=B||{}}getConfig(){return this.config}getConfigForComponent(B){return this.config[B]}getConfigChangeEventForComponent(B){return this.configUpdated$.pipe((0,G.h)(ee=>ee===B),(0,oe.h)(void 0))}set(B,ee){this.config[B]=Object.assign(Object.assign({},this.config[B]),ee),this.configUpdated$.next(B)}}return R.\u0275fac=function(B){return new(B||R)(a.LFG(q,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function I(){return function(H,B,ee){const ye=`$$__zorroConfigDecorator__${B}`;return Object.defineProperty(H,ye,{configurable:!0,writable:!0,enumerable:!1}),{get(){var Ye,Fe;const ze=(null==ee?void 0:ee.get)?ee.get.bind(this)():this[ye],_e=((null===(Ye=this.propertyAssignCounter)||void 0===Ye?void 0:Ye[B])||0)>1,vt=null===(Fe=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===Fe?void 0:Fe[B];return _e&&_(ze)?ze:_(vt)?vt:ze},set(Ye){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[B]=(this.propertyAssignCounter[B]||0)+1,(null==ee?void 0:ee.set)?ee.set.bind(this)(Ye):this[ye]=Ye},configurable:!0,enumerable:!0}}}},4351:(yt,be,p)=>{p.d(be,{N:()=>a});const a={isTestMode:!1}},6947:(yt,be,p)=>{p.d(be,{Bq:()=>oe,ZK:()=>W});var a=p(5e3),s=p(4351);const G={},oe="[NG-ZORRO]:";const W=(...H)=>function _(H,...B){(s.N.isTestMode||(0,a.X6Q)()&&function q(...H){const B=H.reduce((ee,ye)=>ee+ye.toString(),"");return!G[B]&&(G[B]=!0,!0)}(...B))&&H(...B)}((...B)=>console.warn(oe,...B),...H)},4832:(yt,be,p)=>{p.d(be,{P:()=>I,g:()=>R});var a=p(9808),s=p(5e3),G=p(655),oe=p(3191),q=p(6360),_=p(1721);const W="nz-animate-disabled";let I=(()=>{class H{constructor(ee,ye,Ye){this.element=ee,this.renderer=ye,this.animationType=Ye,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const ee=(0,oe.fI)(this.element);!ee||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(ee,W):this.renderer.removeClass(ee,W))}}return H.\u0275fac=function(ee){return new(ee||H)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(q.Qb,8))},H.\u0275dir=s.lG2({type:H,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[s.TTD]}),(0,G.gn)([(0,_.yF)()],H.prototype,"nzNoAnimation",void 0),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=s.oAB({type:H}),H.\u0275inj=s.cJS({imports:[[a.ez]]}),H})()},969:(yt,be,p)=>{p.d(be,{T:()=>q,f:()=>G});var a=p(9808),s=p(5e3);let G=(()=>{class _{constructor(I,R){this.viewContainer=I,this.templateRef=R,this.embeddedViewRef=null,this.context=new oe,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(I,R){return!0}recreateView(){this.viewContainer.clear();const I=this.nzStringTemplateOutlet instanceof s.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(I?this.nzStringTemplateOutlet:this.templateRef,I?this.nzStringTemplateOutletContext:this.context)}updateContext(){const R=this.nzStringTemplateOutlet instanceof s.Rgc?this.nzStringTemplateOutletContext:this.context,H=this.embeddedViewRef.context;if(R)for(const B of Object.keys(R))H[B]=R[B]}ngOnChanges(I){const{nzStringTemplateOutletContext:R,nzStringTemplateOutlet:H}=I;H&&(this.context.$implicit=H.currentValue),(()=>{let ye=!1;if(H)if(H.firstChange)ye=!0;else{const _e=H.currentValue instanceof s.Rgc;ye=H.previousValue instanceof s.Rgc||_e}return R&&(ze=>{const _e=Object.keys(ze.previousValue||{}),vt=Object.keys(ze.currentValue||{});if(_e.length===vt.length){for(const Je of vt)if(-1===_e.indexOf(Je))return!0;return!1}return!0})(R)||ye})()?this.recreateView():this.updateContext()}}return _.\u0275fac=function(I){return new(I||_)(s.Y36(s.s_b),s.Y36(s.Rgc))},_.\u0275dir=s.lG2({type:_,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[s.TTD]}),_})();class oe{}let q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[a.ez]]}),_})()},6950:(yt,be,p)=>{p.d(be,{Ek:()=>I,hQ:()=>ye,e4:()=>Ye,yW:()=>W,d_:()=>ee});var a=p(655),s=p(2845),G=p(5e3),oe=p(7625),q=p(4090),_=p(1721);const W={top:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new s.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new s.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new s.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new s.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new s.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new s.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new s.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new s.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},I=[W.top,W.right,W.bottom,W.left];function ee(Fe){for(const ze in W)if(Fe.connectionPair.originX===W[ze].originX&&Fe.connectionPair.originY===W[ze].originY&&Fe.connectionPair.overlayX===W[ze].overlayX&&Fe.connectionPair.overlayY===W[ze].overlayY)return ze}new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"});let ye=(()=>{class Fe{constructor(_e,vt){this.cdkConnectedOverlay=_e,this.nzDestroyService=vt,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,oe.R)(this.nzDestroyService)).subscribe(Je=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(Je)})}updateArrowPosition(_e){const vt=this.getOriginRect(),Je=ee(_e);let zt=0,ut=0;"topLeft"===Je||"bottomLeft"===Je?zt=vt.width/2-14:"topRight"===Je||"bottomRight"===Je?zt=-(vt.width/2-14):"leftTop"===Je||"rightTop"===Je?ut=vt.height/2-10:("leftBottom"===Je||"rightBottom"===Je)&&(ut=-(vt.height/2-10)),(this.cdkConnectedOverlay.offsetX!==zt||this.cdkConnectedOverlay.offsetY!==ut)&&(this.cdkConnectedOverlay.offsetY=ut,this.cdkConnectedOverlay.offsetX=zt,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof s.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const _e=this.getFlexibleConnectedPositionStrategyOrigin();if(_e instanceof G.SBq)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const vt=_e.width||0,Je=_e.height||0;return{top:_e.y,bottom:_e.y+Je,left:_e.x,right:_e.x+vt,height:Je,width:vt}}}return Fe.\u0275fac=function(_e){return new(_e||Fe)(G.Y36(s.pI),G.Y36(q.kn))},Fe.\u0275dir=G.lG2({type:Fe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[G._Bn([q.kn])]}),(0,a.gn)([(0,_.yF)()],Fe.prototype,"nzArrowPointAtCenter",void 0),Fe})(),Ye=(()=>{class Fe{}return Fe.\u0275fac=function(_e){return new(_e||Fe)},Fe.\u0275mod=G.oAB({type:Fe}),Fe.\u0275inj=G.cJS({}),Fe})()},4090:(yt,be,p)=>{p.d(be,{G_:()=>Je,r3:()=>Ie,kn:()=>$e,rI:()=>ee,KV:()=>Ye,WV:()=>zt,ow:()=>ut});var a=p(5e3),s=p(8929),G=p(7138),oe=p(537),q=p(7625),_=p(4850),W=p(1059),I=p(5778),R=p(4351),H=p(5113);const B=()=>{};let ee=(()=>{class Se{constructor(J,fe){this.ngZone=J,this.rendererFactory2=fe,this.resizeSource$=new s.xQ,this.listeners=0,this.disposeHandle=B,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=B}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,G.e)(16),(0,oe.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=B)}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(a.R0b),a.LFG(a.FYo))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ye=new Map;let Ye=(()=>{class Se{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return R.N.isTestMode?ye:this._singletonRegistry}registerSingletonWithKey(J,fe){const he=this.singletonRegistry.has(J),te=he?this.singletonRegistry.get(J):this.withNewTarget(fe);he||this.singletonRegistry.set(J,te)}getSingletonWithKey(J){return this.singletonRegistry.has(J)?this.singletonRegistry.get(J).target:null}withNewTarget(J){return{target:J}}}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();var Je=(()=>{return(Se=Je||(Je={})).xxl="xxl",Se.xl="xl",Se.lg="lg",Se.md="md",Se.sm="sm",Se.xs="xs",Je;var Se})();const zt={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ut={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let Ie=(()=>{class Se{constructor(J,fe){this.resizeService=J,this.mediaMatcher=fe,this.destroy$=new s.xQ,this.resizeService.subscribe().pipe((0,q.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(J,fe){if(fe){const he=()=>this.matchMedia(J,!0);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)((te,le)=>te[0]===le[0]),(0,_.U)(te=>te[1]))}{const he=()=>this.matchMedia(J);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)())}}matchMedia(J,fe){let he=Je.md;const te={};return Object.keys(J).map(le=>{const ie=le,Ue=this.mediaMatcher.matchMedia(zt[ie]).matches;te[le]=Ue,Ue&&(he=ie)}),fe?[he,te]:he}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(ee),a.LFG(H.vx))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),$e=(()=>{class Se extends s.xQ{ngOnDestroy(){this.next(),this.complete()}}return Se.\u0275fac=function(){let Xe;return function(fe){return(Xe||(Xe=a.n5z(Se)))(fe||Se)}}(),Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac}),Se})()},1721:(yt,be,p)=>{p.d(be,{yF:()=>vt,Rn:()=>zt,cO:()=>_,pW:()=>Ie,ov:()=>P,kK:()=>R,DX:()=>I,ui:()=>je,tI:()=>te,D8:()=>x,Sm:()=>ke,sw:()=>ye,WX:()=>Fe,YM:()=>tt,He:()=>Ye});var a=p(3191),s=p(6947),G=p(8929),oe=p(2986);function _(j,me){if(!j||!me||j.length!==me.length)return!1;const He=j.length;for(let Ge=0;GeYe(me,j))}function Ie(j){if(!j.getClientRects().length)return{top:0,left:0};const me=j.getBoundingClientRect(),He=j.ownerDocument.defaultView;return{top:me.top+He.pageYOffset,left:me.left+He.pageXOffset}}function te(j){return!!j&&"function"==typeof j.then&&"function"==typeof j.catch}function je(j){return"number"==typeof j&&isFinite(j)}function tt(j,me){return Math.round(j*Math.pow(10,me))/Math.pow(10,me)}function ke(j,me=0){return j.reduce((He,Ge)=>He+Ge,me)}let cn,Mn;"undefined"!=typeof window&&window;const qe={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function x(j="vertical",me="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const He="vertical"===j;if(He&&cn)return cn;if(!He&&Mn)return Mn;const Ge=document.createElement("div");Object.keys(qe).forEach(Me=>{Ge.style[Me]=qe[Me]}),Ge.className=`${me}-hide-scrollbar scroll-div-append-to-body`,He?Ge.style.overflowY="scroll":Ge.style.overflowX="scroll",document.body.appendChild(Ge);let Le=0;return He?(Le=Ge.offsetWidth-Ge.clientWidth,cn=Le):(Le=Ge.offsetHeight-Ge.clientHeight,Mn=Le),document.body.removeChild(Ge),Le}function P(){const j=new G.xQ;return Promise.resolve().then(()=>j.next()),j.pipe((0,oe.q)(1))}},4147:(yt,be,p)=>{p.d(be,{Vz:()=>ve,SQ:()=>Ue,BL:()=>Qe});var a=p(655),s=p(1159),G=p(2845),oe=p(7429),q=p(9808),_=p(5e3),W=p(8929),I=p(7625),R=p(9439),H=p(1721),B=p(5664),ee=p(226),ye=p(4832),Ye=p(969),Fe=p(647);const ze=["drawerTemplate"];function _e(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"div",11),_.NdJ("click",function(){return _.CHM(ot),_.oxw(2).maskClick()}),_.qZA()}if(2&it){const ot=_.oxw(2);_.Q6J("ngStyle",ot.nzMaskStyle)}}function vt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"i",18),_.BQk()),2&it){const ot=St.$implicit;_.xp6(1),_.Q6J("nzType",ot)}}function Je(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(ot),_.oxw(3).closeClick()}),_.YNc(1,vt,2,1,"ng-container",17),_.qZA()}if(2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzCloseIcon)}}function zt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(4);_.xp6(1),_.Q6J("innerHTML",ot.nzTitle,_.oJD)}}function ut(it,St){if(1&it&&(_.TgZ(0,"div",19),_.YNc(1,zt,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzTitle)}}function Ie(it,St){if(1&it&&(_.TgZ(0,"div",12),_.TgZ(1,"div",13),_.YNc(2,Je,2,1,"button",14),_.YNc(3,ut,2,1,"div",15),_.qZA(),_.qZA()),2&it){const ot=_.oxw(2);_.ekj("ant-drawer-header-close-only",!ot.nzTitle),_.xp6(2),_.Q6J("ngIf",ot.nzClosable),_.xp6(1),_.Q6J("ngIf",ot.nzTitle)}}function $e(it,St){}function et(it,St){1&it&&_.GkF(0)}function Se(it,St){if(1&it&&(_.ynx(0),_.YNc(1,et,1,0,"ng-container",22),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.nzContent)("ngTemplateOutletContext",ot.templateContext)}}function Xe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,Se,2,2,"ng-container",21),_.BQk()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("ngIf",ot.isTemplateRef(ot.nzContent))}}function J(it,St){}function fe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,J,0,0,"ng-template",23),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.contentFromContentChild)}}function he(it,St){if(1&it&&_.YNc(0,fe,2,1,"ng-container",21),2&it){const ot=_.oxw(2);_.Q6J("ngIf",ot.contentFromContentChild&&(ot.isOpen||ot.inAnimation))}}function te(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("innerHTML",ot.nzFooter,_.oJD)}}function le(it,St){if(1&it&&(_.TgZ(0,"div",24),_.YNc(1,te,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzFooter)}}function ie(it,St){if(1&it&&(_.TgZ(0,"div",1),_.YNc(1,_e,1,1,"div",2),_.TgZ(2,"div"),_.TgZ(3,"div",3),_.TgZ(4,"div",4),_.YNc(5,Ie,4,4,"div",5),_.TgZ(6,"div",6),_.YNc(7,$e,0,0,"ng-template",7),_.YNc(8,Xe,2,1,"ng-container",8),_.YNc(9,he,1,1,"ng-template",null,9,_.W1O),_.qZA(),_.YNc(11,le,2,1,"div",10),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&it){const ot=_.MAs(10),Et=_.oxw();_.Udp("transform",Et.offsetTransform)("transition",Et.placementChanging?"none":null)("z-index",Et.nzZIndex),_.ekj("ant-drawer-rtl","rtl"===Et.dir)("ant-drawer-open",Et.isOpen)("no-mask",!Et.nzMask)("ant-drawer-top","top"===Et.nzPlacement)("ant-drawer-bottom","bottom"===Et.nzPlacement)("ant-drawer-right","right"===Et.nzPlacement)("ant-drawer-left","left"===Et.nzPlacement),_.Q6J("nzNoAnimation",Et.nzNoAnimation),_.xp6(1),_.Q6J("ngIf",Et.nzMask),_.xp6(1),_.Gre("ant-drawer-content-wrapper ",Et.nzWrapClassName,""),_.Udp("width",Et.width)("height",Et.height)("transform",Et.transform)("transition",Et.placementChanging?"none":null),_.xp6(2),_.Udp("height",Et.isLeftOrRight?"100%":null),_.xp6(1),_.Q6J("ngIf",Et.nzTitle||Et.nzClosable),_.xp6(1),_.Q6J("ngStyle",Et.nzBodyStyle),_.xp6(2),_.Q6J("ngIf",Et.nzContent)("ngIfElse",ot),_.xp6(3),_.Q6J("ngIf",Et.nzFooter)}}let Ue=(()=>{class it{constructor(ot){this.templateRef=ot}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.Rgc))},it.\u0275dir=_.lG2({type:it,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),it})();class je{}let ve=(()=>{class it extends je{constructor(ot,Et,Zt,mn,vn,Ut,un,_n,Cn,Dt,Sn){super(),this.cdr=ot,this.document=Et,this.nzConfigService=Zt,this.renderer=mn,this.overlay=vn,this.injector=Ut,this.changeDetectorRef=un,this.focusTrapFactory=_n,this.viewContainerRef=Cn,this.overlayKeyboardDispatcher=Dt,this.directionality=Sn,this._nzModuleName="drawer",this.nzCloseIcon="close",this.nzClosable=!0,this.nzMaskClosable=!0,this.nzMask=!0,this.nzCloseOnNavigation=!0,this.nzNoAnimation=!1,this.nzKeyboard=!0,this.nzPlacement="right",this.nzMaskStyle={},this.nzBodyStyle={},this.nzWidth=256,this.nzHeight=256,this.nzZIndex=1e3,this.nzOffsetX=0,this.nzOffsetY=0,this.componentInstance=null,this.nzOnViewInit=new _.vpe,this.nzOnClose=new _.vpe,this.nzVisibleChange=new _.vpe,this.destroy$=new W.xQ,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new W.xQ,this.nzAfterClose=new W.xQ,this.nzDirection=void 0,this.dir="ltr"}set nzVisible(ot){this.isOpen=ot}get nzVisible(){return this.isOpen}get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){return this.isLeftOrRight?(0,H.WX)(this.nzWidth):null}get height(){return this.isLeftOrRight?null:(0,H.WX)(this.nzHeight)}get isLeftOrRight(){return"left"===this.nzPlacement||"right"===this.nzPlacement}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}isTemplateRef(ot){return ot instanceof _.Rgc}ngOnInit(){var ot;null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,I.R)(this.destroy$)).subscribe(Et=>{this.dir=Et,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(ot){const{nzPlacement:Et,nzVisible:Zt}=ot;Zt&&(ot.nzVisible.currentValue?this.open():this.close()),Et&&!Et.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()}getAnimationDuration(){return this.nzNoAnimation?0:300}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(ot){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(ot),this.nzAfterClose.complete(),this.componentInstance=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof _.DyG){const ot=_.zs3.create({parent:this.injector,providers:[{provide:je,useValue:this}]}),Et=new oe.C5(this.nzContent,null,ot),Zt=this.bodyPortalOutlet.attachComponentPortal(Et);this.componentInstance=Zt.instance,Object.assign(Zt.instance,this.nzContentParams),Zt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new oe.UE(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe((0,I.R)(this.destroy$)).subscribe(ot=>{ot.keyCode===s.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){var ot;null===(ot=this.overlayRef)||void 0===ot||ot.dispose(),this.overlayRef=null}getOverlayConfig(){return new G.X_({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.sBO),_.Y36(q.K0,8),_.Y36(R.jY),_.Y36(_.Qsj),_.Y36(G.aV),_.Y36(_.zs3),_.Y36(_.sBO),_.Y36(B.qV),_.Y36(_.s_b),_.Y36(G.Vs),_.Y36(ee.Is,8))},it.\u0275cmp=_.Xpm({type:it,selectors:[["nz-drawer"]],contentQueries:function(ot,Et,Zt){if(1&ot&&_.Suo(Zt,Ue,7,_.Rgc),2&ot){let mn;_.iGM(mn=_.CRH())&&(Et.contentFromContentChild=mn.first)}},viewQuery:function(ot,Et){if(1&ot&&(_.Gf(ze,7),_.Gf(oe.Pl,5)),2&ot){let Zt;_.iGM(Zt=_.CRH())&&(Et.drawerTemplate=Zt.first),_.iGM(Zt=_.CRH())&&(Et.bodyPortalOutlet=Zt.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:"nzVisible"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[_.qOj,_.TTD],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],["class","ant-drawer-header",3,"ant-drawer-header-close-only",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf","ngIfElse"],["contentElseTemp",""],["class","ant-drawer-footer",4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],["class","ant-drawer-title",4,"ngIf"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],[1,"ant-drawer-title"],[3,"innerHTML"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],[1,"ant-drawer-footer"]],template:function(ot,Et){1&ot&&_.YNc(0,ie,12,40,"ng-template",null,0,_.W1O)},directives:[ye.P,q.O5,q.PC,Ye.f,Fe.Ls,oe.Pl,q.tP],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,H.yF)()],it.prototype,"nzClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMaskClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMask",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzCloseOnNavigation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzNoAnimation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzKeyboard",void 0),(0,a.gn)([(0,R.oS)()],it.prototype,"nzDirection",void 0),it})(),mt=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({}),it})(),Qe=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({imports:[[ee.vT,q.ez,G.U8,oe.eL,Fe.PV,Ye.T,ye.g,mt]]}),it})()},4170:(yt,be,p)=>{p.d(be,{u7:()=>_,YI:()=>H,wi:()=>I,bF:()=>q});var a=p(5e3),s=p(591),G=p(6947),oe={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},q={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const _=new a.OlP("nz-i18n"),W=new a.OlP("nz-date-locale");let I=(()=>{class ${constructor(Ae,wt){this._change=new s.X(this._locale),this.setLocale(Ae||q),this.setDateLocale(wt||null)}get localeChange(){return this._change.asObservable()}translate(Ae,wt){let At=this._getObjectPath(this._locale,Ae);return"string"==typeof At?(wt&&Object.keys(wt).forEach(Qt=>At=At.replace(new RegExp(`%${Qt}%`,"g"),wt[Qt])),At):Ae}setLocale(Ae){this._locale&&this._locale.locale===Ae.locale||(this._locale=Ae,this._change.next(Ae))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Ae){this.dateLocale=Ae}getDateLocale(){return this.dateLocale}getLocaleData(Ae,wt){const At=Ae?this._getObjectPath(this._locale,Ae):this._locale;return!At&&!wt&&(0,G.ZK)(`Missing translations for "${Ae}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),At||wt||this._getObjectPath(oe,Ae)||{}}_getObjectPath(Ae,wt){let At=Ae;const Qt=wt.split("."),gn=Qt.length;let Vn=0;for(;At&&Vn{class ${}return $.\u0275fac=function(Ae){return new(Ae||$)},$.\u0275mod=a.oAB({type:$}),$.\u0275inj=a.cJS({}),$})();new a.OlP("date-config")},647:(yt,be,p)=>{p.d(be,{sV:()=>Wt,Ls:()=>Rn,PV:()=>qn});var a=p(925),s=p(5e3),G=p(655),oe=p(8929),q=p(5254),_=p(7625),W=p(9808);function I(X,se){(function H(X){return"string"==typeof X&&-1!==X.indexOf(".")&&1===parseFloat(X)})(X)&&(X="100%");var k=function B(X){return"string"==typeof X&&-1!==X.indexOf("%")}(X);return X=360===se?X:Math.min(se,Math.max(0,parseFloat(X))),k&&(X=parseInt(String(X*se),10)/100),Math.abs(X-se)<1e-6?1:X=360===se?(X<0?X%se+se:X%se)/parseFloat(String(se)):X%se/parseFloat(String(se))}function R(X){return Math.min(1,Math.max(0,X))}function ee(X){return X=parseFloat(X),(isNaN(X)||X<0||X>1)&&(X=1),X}function ye(X){return X<=1?100*Number(X)+"%":X}function Ye(X){return 1===X.length?"0"+X:String(X)}function ze(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=0,Vt=(Ee+st)/2;if(Ee===st)Ot=0,Ct=0;else{var hn=Ee-st;switch(Ot=Vt>.5?hn/(2-Ee-st):hn/(Ee+st),Ee){case X:Ct=(se-k)/hn+(se1&&(k-=1),k<1/6?X+6*k*(se-X):k<.5?se:k<2/3?X+(se-X)*(2/3-k)*6:X}function Je(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=Ee,Vt=Ee-st,hn=0===Ee?0:Vt/Ee;if(Ee===st)Ct=0;else{switch(Ee){case X:Ct=(se-k)/Vt+(se>16,g:(65280&X)>>8,b:255&X}}(se)),this.originalInput=se;var st=function he(X){var se={r:0,g:0,b:0},k=1,Ee=null,st=null,Ct=null,Ot=!1,Vt=!1;return"string"==typeof X&&(X=function ke(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var se=!1;if(fe[X])X=fe[X],se=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var k=tt.rgb.exec(X);return k?{r:k[1],g:k[2],b:k[3]}:(k=tt.rgba.exec(X))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=tt.hsl.exec(X))?{h:k[1],s:k[2],l:k[3]}:(k=tt.hsla.exec(X))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=tt.hsv.exec(X))?{h:k[1],s:k[2],v:k[3]}:(k=tt.hsva.exec(X))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=tt.hex8.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),a:Se(k[4]),format:se?"name":"hex8"}:(k=tt.hex6.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),format:se?"name":"hex"}:(k=tt.hex4.exec(X))?{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),a:Se(k[4]+k[4]),format:se?"name":"hex8"}:!!(k=tt.hex3.exec(X))&&{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),format:se?"name":"hex"}}(X)),"object"==typeof X&&(ve(X.r)&&ve(X.g)&&ve(X.b)?(se=function Fe(X,se,k){return{r:255*I(X,255),g:255*I(se,255),b:255*I(k,255)}}(X.r,X.g,X.b),Ot=!0,Vt="%"===String(X.r).substr(-1)?"prgb":"rgb"):ve(X.h)&&ve(X.s)&&ve(X.v)?(Ee=ye(X.s),st=ye(X.v),se=function zt(X,se,k){X=6*I(X,360),se=I(se,100),k=I(k,100);var Ee=Math.floor(X),st=X-Ee,Ct=k*(1-se),Ot=k*(1-st*se),Vt=k*(1-(1-st)*se),hn=Ee%6;return{r:255*[k,Ot,Ct,Ct,Vt,k][hn],g:255*[Vt,k,k,Ot,Ct,Ct][hn],b:255*[Ct,Ct,Vt,k,k,Ot][hn]}}(X.h,Ee,st),Ot=!0,Vt="hsv"):ve(X.h)&&ve(X.s)&&ve(X.l)&&(Ee=ye(X.s),Ct=ye(X.l),se=function vt(X,se,k){var Ee,st,Ct;if(X=I(X,360),se=I(se,100),k=I(k,100),0===se)st=k,Ct=k,Ee=k;else{var Ot=k<.5?k*(1+se):k+se-k*se,Vt=2*k-Ot;Ee=_e(Vt,Ot,X+1/3),st=_e(Vt,Ot,X),Ct=_e(Vt,Ot,X-1/3)}return{r:255*Ee,g:255*st,b:255*Ct}}(X.h,Ee,Ct),Ot=!0,Vt="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(k=X.a)),k=ee(k),{ok:Ot,format:X.format||Vt,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:k}}(se);this.originalInput=se,this.r=st.r,this.g=st.g,this.b=st.b,this.a=st.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Ee=k.format)&&void 0!==Ee?Ee:st.format,this.gradientType=k.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=st.ok}return X.prototype.isDark=function(){return this.getBrightness()<128},X.prototype.isLight=function(){return!this.isDark()},X.prototype.getBrightness=function(){var se=this.toRgb();return(299*se.r+587*se.g+114*se.b)/1e3},X.prototype.getLuminance=function(){var se=this.toRgb(),Ct=se.r/255,Ot=se.g/255,Vt=se.b/255;return.2126*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.7152*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))+.0722*(Vt<=.03928?Vt/12.92:Math.pow((Vt+.055)/1.055,2.4))},X.prototype.getAlpha=function(){return this.a},X.prototype.setAlpha=function(se){return this.a=ee(se),this.roundA=Math.round(100*this.a)/100,this},X.prototype.toHsv=function(){var se=Je(this.r,this.g,this.b);return{h:360*se.h,s:se.s,v:se.v,a:this.a}},X.prototype.toHsvString=function(){var se=Je(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.v);return 1===this.a?"hsv("+k+", "+Ee+"%, "+st+"%)":"hsva("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHsl=function(){var se=ze(this.r,this.g,this.b);return{h:360*se.h,s:se.s,l:se.l,a:this.a}},X.prototype.toHslString=function(){var se=ze(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.l);return 1===this.a?"hsl("+k+", "+Ee+"%, "+st+"%)":"hsla("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHex=function(se){return void 0===se&&(se=!1),ut(this.r,this.g,this.b,se)},X.prototype.toHexString=function(se){return void 0===se&&(se=!1),"#"+this.toHex(se)},X.prototype.toHex8=function(se){return void 0===se&&(se=!1),function Ie(X,se,k,Ee,st){var Ct=[Ye(Math.round(X).toString(16)),Ye(Math.round(se).toString(16)),Ye(Math.round(k).toString(16)),Ye(et(Ee))];return st&&Ct[0].startsWith(Ct[0].charAt(1))&&Ct[1].startsWith(Ct[1].charAt(1))&&Ct[2].startsWith(Ct[2].charAt(1))&&Ct[3].startsWith(Ct[3].charAt(1))?Ct[0].charAt(0)+Ct[1].charAt(0)+Ct[2].charAt(0)+Ct[3].charAt(0):Ct.join("")}(this.r,this.g,this.b,this.a,se)},X.prototype.toHex8String=function(se){return void 0===se&&(se=!1),"#"+this.toHex8(se)},X.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},X.prototype.toRgbString=function(){var se=Math.round(this.r),k=Math.round(this.g),Ee=Math.round(this.b);return 1===this.a?"rgb("+se+", "+k+", "+Ee+")":"rgba("+se+", "+k+", "+Ee+", "+this.roundA+")"},X.prototype.toPercentageRgb=function(){var se=function(k){return Math.round(100*I(k,255))+"%"};return{r:se(this.r),g:se(this.g),b:se(this.b),a:this.a}},X.prototype.toPercentageRgbString=function(){var se=function(k){return Math.round(100*I(k,255))};return 1===this.a?"rgb("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%)":"rgba("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%, "+this.roundA+")"},X.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var se="#"+ut(this.r,this.g,this.b,!1),k=0,Ee=Object.entries(fe);k=0&&(se.startsWith("hex")||"name"===se)?"name"===se&&0===this.a?this.toName():this.toRgbString():("rgb"===se&&(Ee=this.toRgbString()),"prgb"===se&&(Ee=this.toPercentageRgbString()),("hex"===se||"hex6"===se)&&(Ee=this.toHexString()),"hex3"===se&&(Ee=this.toHexString(!0)),"hex4"===se&&(Ee=this.toHex8String(!0)),"hex8"===se&&(Ee=this.toHex8String()),"name"===se&&(Ee=this.toName()),"hsl"===se&&(Ee=this.toHslString()),"hsv"===se&&(Ee=this.toHsvString()),Ee||this.toHexString())},X.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},X.prototype.clone=function(){return new X(this.toString())},X.prototype.lighten=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l+=se/100,k.l=R(k.l),new X(k)},X.prototype.brighten=function(se){void 0===se&&(se=10);var k=this.toRgb();return k.r=Math.max(0,Math.min(255,k.r-Math.round(-se/100*255))),k.g=Math.max(0,Math.min(255,k.g-Math.round(-se/100*255))),k.b=Math.max(0,Math.min(255,k.b-Math.round(-se/100*255))),new X(k)},X.prototype.darken=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l-=se/100,k.l=R(k.l),new X(k)},X.prototype.tint=function(se){return void 0===se&&(se=10),this.mix("white",se)},X.prototype.shade=function(se){return void 0===se&&(se=10),this.mix("black",se)},X.prototype.desaturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s-=se/100,k.s=R(k.s),new X(k)},X.prototype.saturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s+=se/100,k.s=R(k.s),new X(k)},X.prototype.greyscale=function(){return this.desaturate(100)},X.prototype.spin=function(se){var k=this.toHsl(),Ee=(k.h+se)%360;return k.h=Ee<0?360+Ee:Ee,new X(k)},X.prototype.mix=function(se,k){void 0===k&&(k=50);var Ee=this.toRgb(),st=new X(se).toRgb(),Ct=k/100;return new X({r:(st.r-Ee.r)*Ct+Ee.r,g:(st.g-Ee.g)*Ct+Ee.g,b:(st.b-Ee.b)*Ct+Ee.b,a:(st.a-Ee.a)*Ct+Ee.a})},X.prototype.analogous=function(se,k){void 0===se&&(se=6),void 0===k&&(k=30);var Ee=this.toHsl(),st=360/k,Ct=[this];for(Ee.h=(Ee.h-(st*se>>1)+720)%360;--se;)Ee.h=(Ee.h+st)%360,Ct.push(new X(Ee));return Ct},X.prototype.complement=function(){var se=this.toHsl();return se.h=(se.h+180)%360,new X(se)},X.prototype.monochromatic=function(se){void 0===se&&(se=6);for(var k=this.toHsv(),Ee=k.h,st=k.s,Ct=k.v,Ot=[],Vt=1/se;se--;)Ot.push(new X({h:Ee,s:st,v:Ct})),Ct=(Ct+Vt)%1;return Ot},X.prototype.splitcomplement=function(){var se=this.toHsl(),k=se.h;return[this,new X({h:(k+72)%360,s:se.s,l:se.l}),new X({h:(k+216)%360,s:se.s,l:se.l})]},X.prototype.onBackground=function(se){var k=this.toRgb(),Ee=new X(se).toRgb();return new X({r:Ee.r+(k.r-Ee.r)*k.a,g:Ee.g+(k.g-Ee.g)*k.a,b:Ee.b+(k.b-Ee.b)*k.a})},X.prototype.triad=function(){return this.polyad(3)},X.prototype.tetrad=function(){return this.polyad(4)},X.prototype.polyad=function(se){for(var k=this.toHsl(),Ee=k.h,st=[this],Ct=360/se,Ot=1;Ot=60&&Math.round(X.h)<=240?k?Math.round(X.h)-2*se:Math.round(X.h)+2*se:k?Math.round(X.h)+2*se:Math.round(X.h)-2*se)<0?Ee+=360:Ee>=360&&(Ee-=360),Ee}function Ut(X,se,k){return 0===X.h&&0===X.s?X.s:((Ee=k?X.s-.16*se:4===se?X.s+.16:X.s+.05*se)>1&&(Ee=1),k&&5===se&&Ee>.1&&(Ee=.1),Ee<.06&&(Ee=.06),Number(Ee.toFixed(2)));var Ee}function un(X,se,k){var Ee;return(Ee=k?X.v+.05*se:X.v-.15*se)>1&&(Ee=1),Number(Ee.toFixed(2))}function _n(X){for(var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},k=[],Ee=new mt(X),st=5;st>0;st-=1){var Ct=Ee.toHsv(),Ot=new mt({h:vn(Ct,st,!0),s:Ut(Ct,st,!0),v:un(Ct,st,!0)}).toHexString();k.push(Ot)}k.push(Ee.toHexString());for(var Vt=1;Vt<=4;Vt+=1){var hn=Ee.toHsv(),ni=new mt({h:vn(hn,Vt),s:Ut(hn,Vt),v:un(hn,Vt)}).toHexString();k.push(ni)}return"dark"===se.theme?mn.map(function(ai){var kn=ai.index,bi=ai.opacity;return new mt(se.backgroundColor||"#141414").mix(k[kn],100*bi).toHexString()}):k}var Cn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Dt={},Sn={};Object.keys(Cn).forEach(function(X){Dt[X]=_n(Cn[X]),Dt[X].primary=Dt[X][5],Sn[X]=_n(Cn[X],{theme:"dark",backgroundColor:"#141414"}),Sn[X].primary=Sn[X][5]});var V=p(520),Be=p(1086),nt=p(6498),ce=p(4850),Ne=p(2994),L=p(537),E=p(7221),$=p(8117),ue=p(2198),Ae=p(2986),wt=p(2313);const At="[@ant-design/icons-angular]:";function gn(X){(0,s.X6Q)()&&console.warn(`${At} ${X}.`)}function Vn(X){return _n(X)[0]}function An(X,se){switch(se){case"fill":return`${X}-fill`;case"outline":return`${X}-o`;case"twotone":return`${X}-twotone`;case void 0:return X;default:throw new Error(`${At}Theme "${se}" is not a recognized theme!`)}}function Re(X){return"object"==typeof X&&"string"==typeof X.name&&("string"==typeof X.theme||void 0===X.theme)&&"string"==typeof X.icon}function ht(X){const se=X.split(":");switch(se.length){case 1:return[X,""];case 2:return[se[1],se[0]];default:throw new Error(`${At}The icon type ${X} is not valid!`)}}function Zn(){return new Error(`${At} tag not found.`)}let ei=(()=>{class X{constructor(k,Ee,st,Ct){this._rendererFactory=k,this._handler=Ee,this._document=st,this.sanitizer=Ct,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new oe.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new V.eN(this._handler))}set twoToneColor({primaryColor:k,secondaryColor:Ee}){this._twoToneColorPalette.primaryColor=k,this._twoToneColorPalette.secondaryColor=Ee||Vn(k)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?gn("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=k=>{this._jsonpIconLoad$.next(k)})}changeAssetsSource(k){this._assetsUrlRoot=k.endsWith("/")?k:k+"/"}addIcon(...k){k.forEach(Ee=>{this._svgDefinitions.set(An(Ee.name,Ee.theme),Ee)})}addIconLiteral(k,Ee){const[st,Ct]=ht(k);if(!Ct)throw function jt(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:k,icon:Ee})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(k,Ee){const st=Re(k)?k:this._svgDefinitions.get(k)||null;return(st?(0,Be.of)(st):this._loadIconDynamically(k)).pipe((0,ce.U)(Ot=>{if(!Ot)throw function fn(X){return new Error(`${At}the icon ${X} does not exist or is not registered.`)}(k);return this._loadSVGFromCacheOrCreateNew(Ot,Ee)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(k){if(!this._http&&!this._enableJsonpLoading)return(0,Be.of)(function Pn(){return function Qt(X){console.error(`${At} ${X}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let Ee=this._inProgressFetches.get(k);if(!Ee){const[st,Ct]=ht(k),Ot=Ct?{name:k,icon:""}:function we(X){const se=X.split("-"),k=function jn(X){return"o"===X?"outline":X}(se.splice(se.length-1,1)[0]);return{name:se.join("-"),theme:k,icon:""}}(st),hn=(Ct?`${this._assetsUrlRoot}assets/${Ct}/${st}`:`${this._assetsUrlRoot}assets/${Ot.theme}/${Ot.name}`)+(this._enableJsonpLoading?".js":".svg"),ni=this.sanitizer.sanitize(s.q3G.URL,hn);if(!ni)throw function si(X){return new Error(`${At}The url "${X}" is unsafe.`)}(hn);Ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(Ot,ni):this._http.get(ni,{responseType:"text"}).pipe((0,ce.U)(kn=>Object.assign(Object.assign({},Ot),{icon:kn})))).pipe((0,Ne.b)(kn=>this.addIcon(kn)),(0,L.x)(()=>this._inProgressFetches.delete(k)),(0,E.K)(()=>(0,Be.of)(null)),(0,$.B)()),this._inProgressFetches.set(k,Ee)}return Ee}_loadIconDynamicallyWithJsonp(k,Ee){return new nt.y(st=>{const Ct=this._document.createElement("script"),Ot=setTimeout(()=>{Vt(),st.error(function ii(){return new Error(`${At}Importing timeout error.`)}())},6e3);function Vt(){Ct.parentNode.removeChild(Ct),clearTimeout(Ot)}Ct.src=Ee,this._document.body.appendChild(Ct),this._jsonpIconLoad$.pipe((0,ue.h)(hn=>hn.name===k.name&&hn.theme===k.theme),(0,Ae.q)(1)).subscribe(hn=>{st.next(hn),Vt()})})}_loadSVGFromCacheOrCreateNew(k,Ee){let st;const Ct=Ee||this._twoToneColorPalette.primaryColor,Ot=Vn(Ct)||this._twoToneColorPalette.secondaryColor,Vt="twotone"===k.theme?function ri(X,se,k,Ee){return`${An(X,se)}-${k}-${Ee}`}(k.name,k.theme,Ct,Ot):void 0===k.theme?k.name:An(k.name,k.theme),hn=this._svgRenderedDefinitions.get(Vt);return hn?st=hn.icon:(st=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function It(X){return""!==ht(X)[1]}(k.name)?k.icon:function Ve(X){return X.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(k.icon)),"twotone"===k.theme,Ct,Ot)),this._svgRenderedDefinitions.set(Vt,Object.assign(Object.assign({},k),{icon:st}))),function ae(X){return X.cloneNode(!0)}(st)}_createSVGElementFromString(k){const Ee=this._document.createElement("div");Ee.innerHTML=k;const st=Ee.querySelector("svg");if(!st)throw Zn;return st}_setSVGAttribute(k){return this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em"),k}_colorizeSVGIcon(k,Ee,st,Ct){if(Ee){const Ot=k.childNodes,Vt=Ot.length;for(let hn=0;hn{class X{constructor(k,Ee,st){this._iconService=k,this._elementRef=Ee,this._renderer=st}ngOnChanges(k){(k.type||k.theme||k.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(k=>{if(this.type){const Ee=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(st=>{!function Ln(X,se){return X.type===se.type&&X.theme===se.theme&&X.twoToneColor===se.twoToneColor}(Ee,this._getSelfRenderMeta())?k(null):(this._setSVGElement(st),k(st))})}else this._clearSVGElement(),k(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(k,Ee){if(Re(k))return k;{const[st,Ct]=ht(k);return Ct?k:function qt(X){return X.endsWith("-fill")||X.endsWith("-o")||X.endsWith("-twotone")}(st)?(Ee&&gn(`'type' ${st} already gets a theme inside so 'theme' ${Ee} would be ignored`),st):An(st,Ee||this._iconService.defaultTheme)}}_setSVGElement(k){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,k)}_clearSVGElement(){var k;const Ee=this._elementRef.nativeElement,st=Ee.childNodes;for(let Ot=st.length-1;Ot>=0;Ot--){const Vt=st[Ot];"svg"===(null===(k=Vt.tagName)||void 0===k?void 0:k.toLowerCase())&&this._renderer.removeChild(Ee,Vt)}}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(ei),s.Y36(s.SBq),s.Y36(s.Qsj))},X.\u0275dir=s.lG2({type:X,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[s.TTD]}),X})();var Qn=p(1721),Te=p(6947),Ze=p(9193),De=p(9439);const rt=[Ze.V65,Ze.ud1,Ze.bBn,Ze.BOg,Ze.Hkd,Ze.XuQ,Ze.Rfq,Ze.yQU,Ze.U2Q,Ze.UKj,Ze.OYp,Ze.BXH,Ze.eLU,Ze.x0x,Ze.VWu,Ze.rMt,Ze.vEg,Ze.RIp,Ze.RU0,Ze.M8e,Ze.ssy,Ze.Z5F,Ze.iUK,Ze.LJh,Ze.NFG,Ze.UTl,Ze.nrZ,Ze.gvV,Ze.d2H,Ze.eFY,Ze.sZJ,Ze.np6,Ze.w1L,Ze.UY$,Ze.v6v,Ze.rHg,Ze.v6v,Ze.s_U,Ze.TSL,Ze.FsU,Ze.cN2,Ze.uIz,Ze.d_$],Wt=new s.OlP("nz_icons"),Lt=(new s.OlP("nz_icon_default_twotone_color"),"#1890ff");let Un=(()=>{class X extends ei{constructor(k,Ee,st,Ct,Ot,Vt){super(k,Ct,Ot,Ee),this.nzConfigService=st,this.configUpdated$=new oe.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...rt,...Vt||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(k){k.getAttribute("viewBox")||this._renderer.setAttribute(k,"viewBox","0 0 1024 1024"),(!k.getAttribute("width")||!k.getAttribute("height"))&&(this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em")),k.getAttribute("fill")||this._renderer.setAttribute(k,"fill","currentColor")}fetchFromIconfont(k){const{scriptUrl:Ee}=k;if(this._document&&!this.iconfontCache.has(Ee)){const st=this._renderer.createElement("script");this._renderer.setAttribute(st,"src",Ee),this._renderer.setAttribute(st,"data-namespace",Ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,st),this.iconfontCache.add(Ee)}}createIconfontIcon(k){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const k=this.getConfig();this.defaultTheme=k.nzTheme||"outline"}configDefaultTwotoneColor(){const Ee=this.getConfig().nzTwotoneColor||Lt;let st=Lt;Ee&&(Ee.startsWith("#")?st=Ee:(0,Te.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:st}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return X.\u0275fac=function(k){return new(k||X)(s.LFG(s.FYo),s.LFG(wt.H7),s.LFG(De.jY),s.LFG(V.jN,8),s.LFG(W.K0,8),s.LFG(Wt,8))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const $n=new s.OlP("nz_icons_patch");let Nn=(()=>{class X{constructor(k,Ee){this.extraIcons=k,this.rootIconService=Ee,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(k=>this.rootIconService.addIcon(k)),this.patched=!0)}}return X.\u0275fac=function(k){return new(k||X)(s.LFG($n,2),s.LFG(Un))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac}),X})(),Rn=(()=>{class X extends Tt{constructor(k,Ee,st,Ct,Ot,Vt){super(Ct,st,Ot),this.ngZone=k,this.changeDetectorRef=Ee,this.iconService=Ct,this.renderer=Ot,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new oe.xQ,Vt&&Vt.doPatch(),this.el=st.nativeElement}set nzSpin(k){this.spin=k}set nzType(k){this.type=k}set nzTheme(k){this.theme=k}set nzTwotoneColor(k){this.twoToneColor=k}set nzIconfont(k){this.iconfont=k}ngOnChanges(k){const{nzType:Ee,nzTwotoneColor:st,nzSpin:Ct,nzTheme:Ot,nzRotate:Vt}=k;Ee||st||Ct||Ot?this.changeIcon2():Vt?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const k=this.el.children;let Ee=k.length;if(!this.type&&k.length)for(;Ee--;){const st=k[Ee];"svg"===st.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(st)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,q.D)(this._changeIcon()).pipe((0,_.R)(this.destroy$)).subscribe(k=>{this.changeDetectorRef.detectChanges(),k&&(this.setSVGData(k),this.handleSpin(k),this.handleRotate(k))})})}handleSpin(k){this.spin||"loading"===this.type?this.renderer.addClass(k,"anticon-spin"):this.renderer.removeClass(k,"anticon-spin")}handleRotate(k){this.nzRotate?this.renderer.setAttribute(k,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(k,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(k){this.renderer.setAttribute(k,"data-icon",this.type),this.renderer.setAttribute(k,"aria-hidden","true")}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(Un),s.Y36(s.Qsj),s.Y36(Nn,8))},X.\u0275dir=s.lG2({type:X,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(k,Ee){2&k&&s.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[s.qOj,s.TTD]}),(0,G.gn)([(0,Qn.yF)()],X.prototype,"nzSpin",null),X})(),qn=(()=>{class X{static forRoot(k){return{ngModule:X,providers:[{provide:Wt,useValue:k}]}}static forChild(k){return{ngModule:X,providers:[Nn,{provide:$n,useValue:k}]}}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=s.oAB({type:X}),X.\u0275inj=s.cJS({imports:[[a.ud]]}),X})()},4219:(yt,be,p)=>{p.d(be,{hl:()=>cn,Cc:()=>Dt,wO:()=>Le,YV:()=>Be,r9:()=>qe,ip:()=>nt});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(6787),_=p(6053),W=p(4850),I=p(1709),R=p(2198),H=p(7604),B=p(7138),ee=p(5778),ye=p(7625),Ye=p(1059),Fe=p(7545),ze=p(1721),_e=p(2302),vt=p(226),Je=p(2845),zt=p(6950),ut=p(925),Ie=p(4832),$e=p(9808),et=p(647),Se=p(969),Xe=p(8076);const J=["nz-submenu-title",""];function fe(ce,Ne){if(1&ce&&s._UZ(0,"i",4),2&ce){const L=s.oxw();s.Q6J("nzType",L.nzIcon)}}function he(ce,Ne){if(1&ce&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2),s.qZA(),s.BQk()),2&ce){const L=s.oxw();s.xp6(2),s.Oqu(L.nzTitle)}}function te(ce,Ne){1&ce&&s._UZ(0,"i",8)}function le(ce,Ne){1&ce&&s._UZ(0,"i",9)}function ie(ce,Ne){if(1&ce&&(s.TgZ(0,"span",5),s.YNc(1,te,1,0,"i",6),s.YNc(2,le,1,0,"i",7),s.qZA()),2&ce){const L=s.oxw();s.Q6J("ngSwitch",L.dir),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ue(ce,Ne){1&ce&&s._UZ(0,"i",10)}const je=["*"],tt=["nz-submenu-inline-child",""];function ke(ce,Ne){}const ve=["nz-submenu-none-inline-child",""];function mt(ce,Ne){}const Qe=["nz-submenu",""];function dt(ce,Ne){1&ce&&s.Hsn(0,0,["*ngIf","!nzTitle"])}function _t(ce,Ne){if(1&ce&&s._UZ(0,"div",6),2&ce){const L=s.oxw(),E=s.MAs(7);s.Q6J("mode",L.mode)("nzOpen",L.nzOpen)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("menuClass",L.nzMenuClassName)("templateOutlet",E)}}function it(ce,Ne){if(1&ce){const L=s.EpF();s.TgZ(0,"div",8),s.NdJ("subMenuMouseState",function($){return s.CHM(L),s.oxw(2).setMouseEnterState($)}),s.qZA()}if(2&ce){const L=s.oxw(2),E=s.MAs(7);s.Q6J("theme",L.theme)("mode",L.mode)("nzOpen",L.nzOpen)("position",L.position)("nzDisabled",L.nzDisabled)("isMenuInsideDropDown",L.isMenuInsideDropDown)("templateOutlet",E)("menuClass",L.nzMenuClassName)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)}}function St(ce,Ne){if(1&ce){const L=s.EpF();s.YNc(0,it,1,10,"ng-template",7),s.NdJ("positionChange",function($){return s.CHM(L),s.oxw().onPositionChange($)})}if(2&ce){const L=s.oxw(),E=s.MAs(1);s.Q6J("cdkConnectedOverlayPositions",L.overlayPositions)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayWidth",L.triggerWidth)("cdkConnectedOverlayOpen",L.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function ot(ce,Ne){1&ce&&s.Hsn(0,1)}const Et=[[["","title",""]],"*"],Zt=["[title]","*"],Dt=new s.OlP("NzIsInDropDownMenuToken"),Sn=new s.OlP("NzMenuServiceLocalToken");let cn=(()=>{class ce{constructor(){this.descendantMenuItemClick$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.theme$=new oe.X("light"),this.mode$=new oe.X("vertical"),this.inlineIndent$=new oe.X(24),this.isChildSubMenuOpen$=new oe.X(!1)}onDescendantMenuItemClick(L){this.descendantMenuItemClick$.next(L)}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setMode(L){this.mode$.next(L)}setTheme(L){this.theme$.next(L)}setInlineIndent(L){this.inlineIndent$.next(L)}}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),Mn=(()=>{class ce{constructor(L,E,$){this.nzHostSubmenuService=L,this.nzMenuService=E,this.isMenuInsideDropDown=$,this.mode$=this.nzMenuService.mode$.pipe((0,W.U)(At=>"inline"===At?"inline":"vertical"===At||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new oe.X(!1),this.isChildSubMenuOpen$=new oe.X(!1),this.isMouseEnterTitleOrOverlay$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.destroy$=new G.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ue=this.childMenuItemClick$.pipe((0,I.zg)(()=>this.mode$),(0,R.h)(At=>"inline"!==At||this.isMenuInsideDropDown),(0,H.h)(!1)),Ae=(0,q.T)(this.isMouseEnterTitleOrOverlay$,ue);(0,_.aj)([this.isChildSubMenuOpen$,Ae]).pipe((0,W.U)(([At,Qt])=>At||Qt),(0,B.e)(150),(0,ee.x)(),(0,ye.R)(this.destroy$)).pipe((0,ee.x)()).subscribe(At=>{this.setOpenStateWithoutDebounce(At),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(At):this.nzMenuService.isChildSubMenuOpen$.next(At)})}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setOpenStateWithoutDebounce(L){this.isCurrentSubMenuOpen$.next(L)}setMouseEnterTitleOrOverlayState(L){this.isMouseEnterTitleOrOverlay$.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.LFG(ce,12),s.LFG(cn),s.LFG(Dt))},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),qe=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At,Qt){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.isMenuInsideDropDown=ue,this.directionality=Ae,this.routerLink=wt,this.routerLinkWithHref=At,this.router=Qt,this.destroy$=new G.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new G.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Qt&&this.router.events.pipe((0,ye.R)(this.destroy$),(0,R.h)(gn=>gn instanceof _e.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(L){this.nzDisabled?(L.preventDefault(),L.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(L){this.nzSelected=L,this.selected$.next(L)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const L=this.hasActiveLinks();this.nzSelected!==L&&(this.nzSelected=L,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const L=this.isLinkActive(this.router);return this.routerLink&&L(this.routerLink)||this.routerLinkWithHref&&L(this.routerLinkWithHref)||this.listOfRouterLink.some(L)||this.listOfRouterLinkWithHref.some(L)}isLinkActive(L){return E=>L.isActive(E.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var L;(0,_.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(L){L.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn,8),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(_e.rH,8),s.Y36(_e.yS,8),s.Y36(_e.F0,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-item",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,_e.rH,5),s.Suo($,_e.yS,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfRouterLink=ue),s.iGM(ue=s.CRH())&&(E.listOfRouterLinkWithHref=ue)}},hostVars:20,hostBindings:function(L,E){1&L&&s.NdJ("click",function(ue){return E.clickMenuItem(ue)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.nzPaddingLeft||E.inlinePaddingLeft,"px")("padding-right","rtl"===E.dir?E.nzPaddingLeft||E.inlinePaddingLeft:null,"px"),s.ekj("ant-dropdown-menu-item",E.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",E.isMenuInsideDropDown&&E.nzSelected)("ant-dropdown-menu-item-danger",E.isMenuInsideDropDown&&E.nzDanger)("ant-dropdown-menu-item-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-item",!E.isMenuInsideDropDown)("ant-menu-item-selected",!E.isMenuInsideDropDown&&E.nzSelected)("ant-menu-item-danger",!E.isMenuInsideDropDown&&E.nzDanger)("ant-menu-item-disabled",!E.isMenuInsideDropDown&&E.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelected",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDanger",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouterExact",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouter",void 0),ce})(),x=(()=>{class ce{constructor(L,E){this.cdr=L,this.directionality=E,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new s.vpe,this.subMenuMouseState=new s.vpe,this.dir="ltr",this.destroy$=new G.xQ}ngOnInit(){var L;this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(L,E){1&L&&s.NdJ("click",function(){return E.clickTitle()})("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.paddingLeft,"px")("padding-right","rtl"===E.dir?E.paddingLeft:null,"px"),s.ekj("ant-dropdown-menu-submenu-title",E.isMenuInsideDropDown)("ant-menu-submenu-title",!E.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:J,ngContentSelectors:je,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(L,E){if(1&L&&(s.F$t(),s.YNc(0,fe,1,1,"i",0),s.YNc(1,he,3,1,"ng-container",1),s.Hsn(2),s.YNc(3,ie,3,2,"span",2),s.YNc(4,Ue,1,0,"ng-template",null,3,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("ngIf",E.nzIcon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",E.nzTitle),s.xp6(2),s.Q6J("ngIf",E.isMenuInsideDropDown)("ngIfElse",$)}},directives:[$e.O5,et.Ls,Se.f,$e.RF,$e.n9,$e.ED],encapsulation:2,changeDetection:0}),ce})(),z=(()=>{class ce{constructor(L,E,$){this.elementRef=L,this.renderer=E,this.directionality=$,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$,menuClass:ue}=L;(E||$)&&this.calcMotionState(),ue&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.removeClass(this.elementRef.nativeElement,Ae)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.addClass(this.elementRef.nativeElement,Ae)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(L,E){2&L&&(s.d8E("@collapseMotion",E.expandState),s.ekj("ant-menu-rtl","rtl"===E.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[s.TTD],attrs:tt,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&s.YNc(0,ke,0,0,"ng-template",0),2&L&&s.Q6J("ngTemplateOutlet",E.templateOutlet)},directives:[$e.tP],encapsulation:2,data:{animation:[Xe.J_]},changeDetection:0}),ce})(),P=(()=>{class ce{constructor(L){this.directionality=L,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new s.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$}=L;(E||$)&&this.calcMotionState()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(L,E){1&L&&s.NdJ("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.d8E("@slideMotion",E.expandState)("@zoomBigMotion",E.expandState),s.ekj("ant-menu-light","light"===E.theme)("ant-menu-dark","dark"===E.theme)("ant-menu-submenu-placement-bottom","horizontal"===E.mode)("ant-menu-submenu-placement-right","vertical"===E.mode&&"right"===E.position)("ant-menu-submenu-placement-left","vertical"===E.mode&&"left"===E.position)("ant-menu-submenu-rtl","rtl"===E.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[s.TTD],attrs:ve,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&(s.TgZ(0,"div",0),s.YNc(1,mt,0,0,"ng-template",1),s.qZA()),2&L&&(s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-menu",!E.isMenuInsideDropDown)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown)("ant-menu-vertical",!E.isMenuInsideDropDown)("ant-dropdown-menu-sub",E.isMenuInsideDropDown)("ant-menu-sub",!E.isMenuInsideDropDown)("ant-menu-rtl","rtl"===E.dir),s.Q6J("ngClass",E.menuClass),s.xp6(1),s.Q6J("ngTemplateOutlet",E.templateOutlet))},directives:[$e.mk,$e.tP],encapsulation:2,data:{animation:[Xe.$C,Xe.mF]},changeDetection:0}),ce})();const pe=[zt.yW.rightTop,zt.yW.right,zt.yW.rightBottom,zt.yW.leftTop,zt.yW.left,zt.yW.leftBottom],j=[zt.yW.bottomLeft];let me=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.platform=ue,this.isMenuInsideDropDown=Ae,this.directionality=wt,this.noAnimation=At,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new s.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new G.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=pe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(L){this.nzSubmenuService.setOpenStateWithoutDebounce(L)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(L){this.isActive=L,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(L)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(L){const E=(0,zt.d_)(L);"rightTop"===E||"rightBottom"===E||"right"===E?this.position="right":("leftTop"===E||"leftBottom"===E||"left"===E)&&(this.position="left")}ngOnInit(){var L;this.nzMenuService.theme$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.theme=E,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.mode=E,"horizontal"===E?this.overlayPositions=j:"vertical"===E&&(this.overlayPositions=pe),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.isActive=E,E!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=E,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const L=this.listOfNzMenuItemDirective,E=L.changes,$=(0,q.T)(E,...L.map(ue=>ue.selected$));E.pipe((0,Ye.O)(L),(0,Fe.w)(()=>$),(0,Ye.O)(!0),(0,W.U)(()=>L.some(ue=>ue.nzSelected)),(0,ye.R)(this.destroy$)).subscribe(ue=>{this.isSelected=ue,this.cdr.markForCheck()})}ngOnChanges(L){const{nzOpen:E}=L;E&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn),s.Y36(ut.t4),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(Ie.P,9))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,ce,5),s.Suo($,qe,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue),s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue)}},viewQuery:function(L,E){if(1&L&&s.Gf(Je.xu,7,s.SBq),2&L){let $;s.iGM($=s.CRH())&&(E.cdkOverlayOrigin=$.first)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu-submenu",E.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-dropdown-menu-submenu-open",E.isMenuInsideDropDown&&E.nzOpen)("ant-dropdown-menu-submenu-selected",E.isMenuInsideDropDown&&E.isSelected)("ant-dropdown-menu-submenu-vertical",E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-dropdown-menu-submenu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-dropdown-menu-submenu-inline",E.isMenuInsideDropDown&&"inline"===E.mode)("ant-dropdown-menu-submenu-active",E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu",!E.isMenuInsideDropDown)("ant-menu-submenu-disabled",!E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-submenu-open",!E.isMenuInsideDropDown&&E.nzOpen)("ant-menu-submenu-selected",!E.isMenuInsideDropDown&&E.isSelected)("ant-menu-submenu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-menu-submenu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-menu-submenu-inline",!E.isMenuInsideDropDown&&"inline"===E.mode)("ant-menu-submenu-active",!E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu-rtl","rtl"===E.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[s._Bn([Mn]),s.TTD],attrs:Qe,ngContentSelectors:Zt,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(L,E){if(1&L&&(s.F$t(Et),s.TgZ(0,"div",0,1),s.NdJ("subMenuMouseState",function(ue){return E.setMouseEnterState(ue)})("toggleSubMenu",function(){return E.toggleSubMenu()}),s.YNc(2,dt,1,0,"ng-content",2),s.qZA(),s.YNc(3,_t,1,6,"div",3),s.YNc(4,St,1,5,"ng-template",null,4,s.W1O),s.YNc(6,ot,1,0,"ng-template",null,5,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("nzIcon",E.nzIcon)("nzTitle",E.nzTitle)("mode",E.mode)("nzDisabled",E.nzDisabled)("isMenuInsideDropDown",E.isMenuInsideDropDown)("paddingLeft",E.nzPaddingLeft||E.inlinePaddingLeft),s.xp6(2),s.Q6J("ngIf",!E.nzTitle),s.xp6(1),s.Q6J("ngIf","inline"===E.mode)("ngIfElse",$)}},directives:[x,z,P,Je.xu,$e.O5,Ie.P,Je.pI],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzOpen",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),ce})();function He(ce,Ne){return ce||Ne}function Ge(ce){return ce||!1}let Le=(()=>{class ce{constructor(L,E,$,ue){this.nzMenuService=L,this.isMenuInsideDropDown=E,this.cdr=$,this.directionality=ue,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new s.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new oe.X(this.nzInlineCollapsed),this.mode$=new oe.X(this.nzMode),this.destroy$=new G.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(L){this.nzInlineCollapsed=L,this.inlineCollapsed$.next(L)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(L=>L.nzOpen),this.listOfNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var L;(0,_.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.actualMode=E?"vertical":$,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.nzClick.emit(E),this.nzSelectable&&!E.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach($=>$.setSelectedState($===E))}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,ye.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(L){const{nzInlineCollapsed:E,nzInlineIndent:$,nzTheme:ue,nzMode:Ae}=L;E&&this.inlineCollapsed$.next(this.nzInlineCollapsed),$&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ue&&this.nzMenuService.setTheme(this.nzTheme),Ae&&(this.mode$.next(this.nzMode),!L.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(wt=>wt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(Dt),s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,qe,5),s.Suo($,me,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue),s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-dropdown-menu-root",E.isMenuInsideDropDown)("ant-dropdown-menu-light",E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-dropdown-menu-dark",E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-dropdown-menu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-dropdown-menu-inline",E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-dropdown-menu-inline-collapsed",E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu",!E.isMenuInsideDropDown)("ant-menu-root",!E.isMenuInsideDropDown)("ant-menu-light",!E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-menu-dark",!E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-menu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-menu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-menu-inline",!E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-menu-inline-collapsed",!E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu-rtl","rtl"===E.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[s._Bn([{provide:Sn,useClass:cn},{provide:cn,useFactory:He,deps:[[new s.tp0,new s.FiY,cn],Sn]},{provide:Dt,useFactory:Ge,deps:[[new s.tp0,new s.FiY,Dt]]}]),s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzInlineCollapsed",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelectable",void 0),ce})(),Be=(()=>{class ce{constructor(L,E){this.elementRef=L,this.renderer=E,this.renderer.addClass(L.nativeElement,"ant-dropdown-menu-item-divider")}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),ce})(),nt=(()=>{class ce{}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275mod=s.oAB({type:ce}),ce.\u0275inj=s.cJS({imports:[[vt.vT,$e.ez,ut.ud,Je.U8,et.PV,Ie.g,Se.T]]}),ce})()},9727:(yt,be,p)=>{p.d(be,{Ay:()=>Xe,Gm:()=>Se,XJ:()=>et,gR:()=>Ue,dD:()=>ie});var a=p(7429),s=p(5e3),G=p(8929),oe=p(2198),q=p(2986),_=p(7625),W=p(9439),I=p(1721),R=p(8076),H=p(9808),B=p(647),ee=p(969),ye=p(4090),Ye=p(2845),Fe=p(226);function ze(je,tt){1&je&&s._UZ(0,"i",10)}function _e(je,tt){1&je&&s._UZ(0,"i",11)}function vt(je,tt){1&je&&s._UZ(0,"i",12)}function Je(je,tt){1&je&&s._UZ(0,"i",13)}function zt(je,tt){1&je&&s._UZ(0,"i",14)}function ut(je,tt){if(1&je&&(s.ynx(0),s._UZ(1,"span",15),s.BQk()),2&je){const ke=s.oxw();s.xp6(1),s.Q6J("innerHTML",ke.instance.content,s.oJD)}}function Ie(je,tt){if(1&je){const ke=s.EpF();s.TgZ(0,"nz-message",2),s.NdJ("destroyed",function(mt){return s.CHM(ke),s.oxw().remove(mt.id,mt.userAction)}),s.qZA()}2&je&&s.Q6J("instance",tt.$implicit)}let $e=0;class et{constructor(tt,ke,ve){this.nzSingletonService=tt,this.overlay=ke,this.injector=ve}remove(tt){this.container&&(tt?this.container.remove(tt):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${$e++}`}withContainer(tt){let ke=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(ke)return ke;const ve=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),mt=new a.C5(tt,null,this.injector),Qe=ve.attach(mt);return ve.overlayElement.style.zIndex="1010",ke||(this.container=ke=Qe.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,ke)),ke}}let Se=(()=>{class je{constructor(ke,ve){this.cdr=ke,this.nzConfigService=ve,this.instances=[],this.destroy$=new G.xQ,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(ke){const ve=this.onCreate(ke);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ve],this.readyInstances(),ve}remove(ke,ve=!1){this.instances.some((mt,Qe)=>mt.messageId===ke&&(this.instances.splice(Qe,1),this.instances=[...this.instances],this.onRemove(mt,ve),this.readyInstances(),!0))}removeAll(){this.instances.forEach(ke=>this.onRemove(ke,!1)),this.instances=[],this.readyInstances()}onCreate(ke){return ke.options=this.mergeOptions(ke.options),ke.onClose=new G.xQ,ke}onRemove(ke,ve){ke.onClose.next(ve),ke.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(ke){const{nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe}=this.config;return Object.assign({nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe},ke)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275dir=s.lG2({type:je}),je})(),Xe=(()=>{class je{constructor(ke){this.cdr=ke,this.destroyed=new s.vpe,this.animationStateChanged=new G.xQ,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe((0,oe.h)(ke=>"done"===ke.phaseName&&"leave"===ke.toState),(0,q.q)(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(ke=!1){this.userAction=ke,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:ke})},200)):this.destroyed.next({id:this.instance.messageId,userAction:ke})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){null!==this.eraseTimer&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275dir=s.lG2({type:je}),je})(),J=(()=>{class je extends Xe{constructor(ke){super(ke),this.destroyed=new s.vpe}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[s.qOj],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.NdJ("@moveUpMotion.done",function(Qe){return ve.animationStateChanged.next(Qe)})("mouseenter",function(){return ve.onEnter()})("mouseleave",function(){return ve.onLeave()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.ynx(3,3),s.YNc(4,ze,1,0,"i",4),s.YNc(5,_e,1,0,"i",5),s.YNc(6,vt,1,0,"i",6),s.YNc(7,Je,1,0,"i",7),s.YNc(8,zt,1,0,"i",8),s.BQk(),s.YNc(9,ut,2,1,"ng-container",9),s.qZA(),s.qZA(),s.qZA()),2&ke&&(s.Q6J("@moveUpMotion",ve.instance.state),s.xp6(2),s.Q6J("ngClass","ant-message-"+ve.instance.type),s.xp6(1),s.Q6J("ngSwitch",ve.instance.type),s.xp6(1),s.Q6J("ngSwitchCase","success"),s.xp6(1),s.Q6J("ngSwitchCase","info"),s.xp6(1),s.Q6J("ngSwitchCase","warning"),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","loading"),s.xp6(1),s.Q6J("nzStringTemplateOutlet",ve.instance.content))},directives:[H.mk,H.RF,H.n9,B.Ls,ee.f],encapsulation:2,data:{animation:[R.YK]},changeDetection:0}),je})();const fe="message",he={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let te=(()=>{class je extends Se{constructor(ke,ve){super(ke,ve),this.dir="ltr";const mt=this.nzConfigService.getConfigForComponent(fe);this.dir=(null==mt?void 0:mt.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(fe).pipe((0,_.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const ke=this.nzConfigService.getConfigForComponent(fe);if(ke){const{nzDirection:ve}=ke;this.dir=ve||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},he),this.config),this.nzConfigService.getConfigForComponent(fe)),this.top=(0,I.WX)(this.config.nzTop),this.cdr.markForCheck()}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[s.qOj],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.YNc(1,Ie,1,1,"nz-message",1),s.qZA()),2&ke&&(s.Udp("top",ve.top),s.ekj("ant-message-rtl","rtl"===ve.dir),s.xp6(1),s.Q6J("ngForOf",ve.instances))},directives:[J,H.sg],encapsulation:2,changeDetection:0}),je})(),le=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({}),je})(),ie=(()=>{class je extends et{constructor(ke,ve,mt){super(ke,ve,mt),this.componentPrefix="message-"}success(ke,ve){return this.createInstance({type:"success",content:ke},ve)}error(ke,ve){return this.createInstance({type:"error",content:ke},ve)}info(ke,ve){return this.createInstance({type:"info",content:ke},ve)}warning(ke,ve){return this.createInstance({type:"warning",content:ke},ve)}loading(ke,ve){return this.createInstance({type:"loading",content:ke},ve)}create(ke,ve,mt){return this.createInstance({type:ke,content:ve},mt)}createInstance(ke,ve){return this.container=this.withContainer(te),this.container.create(Object.assign(Object.assign({},ke),{createdAt:new Date,messageId:this.getInstanceId(),options:ve}))}}return je.\u0275fac=function(ke){return new(ke||je)(s.LFG(ye.KV),s.LFG(Ye.aV),s.LFG(s.zs3))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac,providedIn:le}),je})(),Ue=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({imports:[[Fe.vT,H.ez,Ye.U8,B.PV,ee.T,le]]}),je})()},5278:(yt,be,p)=>{p.d(be,{L8:()=>je,zb:()=>ke});var a=p(5e3),s=p(8076),G=p(9727),oe=p(9808),q=p(647),_=p(969),W=p(226),I=p(2845),R=p(8929),H=p(7625),B=p(1721),ee=p(9439),ye=p(4090);function Ye(ve,mt){1&ve&&a._UZ(0,"i",16)}function Fe(ve,mt){1&ve&&a._UZ(0,"i",17)}function ze(ve,mt){1&ve&&a._UZ(0,"i",18)}function _e(ve,mt){1&ve&&a._UZ(0,"i",19)}const vt=function(ve){return{"ant-notification-notice-with-icon":ve}};function Je(ve,mt){if(1&ve&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a.TgZ(2,"div"),a.ynx(3,9),a.YNc(4,Ye,1,0,"i",10),a.YNc(5,Fe,1,0,"i",11),a.YNc(6,ze,1,0,"i",12),a.YNc(7,_e,1,0,"i",13),a.BQk(),a._UZ(8,"div",14),a._UZ(9,"div",15),a.qZA(),a.qZA(),a.qZA()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("ngClass",a.VKq(10,vt,"blank"!==Qe.instance.type)),a.xp6(1),a.ekj("ant-notification-notice-with-icon","blank"!==Qe.instance.type),a.xp6(1),a.Q6J("ngSwitch",Qe.instance.type),a.xp6(1),a.Q6J("ngSwitchCase","success"),a.xp6(1),a.Q6J("ngSwitchCase","info"),a.xp6(1),a.Q6J("ngSwitchCase","warning"),a.xp6(1),a.Q6J("ngSwitchCase","error"),a.xp6(1),a.Q6J("innerHTML",Qe.instance.title,a.oJD),a.xp6(1),a.Q6J("innerHTML",Qe.instance.content,a.oJD)}}function zt(ve,mt){}function ut(ve,mt){if(1&ve&&(a.ynx(0),a._UZ(1,"i",21),a.BQk()),2&ve){const Qe=mt.$implicit;a.xp6(1),a.Q6J("nzType",Qe)}}function Ie(ve,mt){if(1&ve&&(a.ynx(0),a.YNc(1,ut,2,1,"ng-container",20),a.BQk()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",null==Qe.instance.options?null:Qe.instance.options.nzCloseIcon)}}function $e(ve,mt){1&ve&&a._UZ(0,"i",22)}const et=function(ve,mt){return{$implicit:ve,data:mt}};function Se(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function Xe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function J(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function fe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}let he=(()=>{class ve extends G.Ay{constructor(Qe){super(Qe),this.destroyed=new a.vpe}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(Qe){this.instance.onClick.next(Qe)}close(){this.destroy(!0)}get state(){return"enter"===this.instance.state?"topLeft"===this.placement||"bottomLeft"===this.placement?"enterLeft":"enterRight":this.instance.state}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification"]],inputs:{instance:"instance",index:"index",placement:"placement"},outputs:{destroyed:"destroyed"},exportAs:["nzNotification"],features:[a.qOj],decls:8,vars:12,consts:[[1,"ant-notification-notice","ant-notification-notice-closable",3,"ngStyle","ngClass","click","mouseenter","mouseleave"],["class","ant-notification-notice-content",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",1,"ant-notification-notice-close",3,"click"],[1,"ant-notification-notice-close-x"],[4,"ngIf","ngIfElse"],["iconTpl",""],[1,"ant-notification-notice-content"],[1,"ant-notification-notice-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle","class","ant-notification-notice-icon ant-notification-notice-icon-success",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle","class","ant-notification-notice-icon ant-notification-notice-icon-info",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle","class","ant-notification-notice-icon ant-notification-notice-icon-warning",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle","class","ant-notification-notice-icon ant-notification-notice-icon-error",4,"ngSwitchCase"],[1,"ant-notification-notice-message",3,"innerHTML"],[1,"ant-notification-notice-description",3,"innerHTML"],["nz-icon","","nzType","check-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-success"],["nz-icon","","nzType","info-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-info"],["nz-icon","","nzType","exclamation-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-warning"],["nz-icon","","nzType","close-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-error"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","close",1,"ant-notification-close-icon"]],template:function(Qe,dt){if(1&Qe&&(a.TgZ(0,"div",0),a.NdJ("@notificationMotion.done",function(it){return dt.animationStateChanged.next(it)})("click",function(it){return dt.onClick(it)})("mouseenter",function(){return dt.onEnter()})("mouseleave",function(){return dt.onLeave()}),a.YNc(1,Je,10,12,"div",1),a.YNc(2,zt,0,0,"ng-template",2),a.TgZ(3,"a",3),a.NdJ("click",function(){return dt.close()}),a.TgZ(4,"span",4),a.YNc(5,Ie,2,1,"ng-container",5),a.YNc(6,$e,1,0,"ng-template",null,6,a.W1O),a.qZA(),a.qZA(),a.qZA()),2&Qe){const _t=a.MAs(7);a.Q6J("ngStyle",(null==dt.instance.options?null:dt.instance.options.nzStyle)||null)("ngClass",(null==dt.instance.options?null:dt.instance.options.nzClass)||"")("@notificationMotion",dt.state),a.xp6(1),a.Q6J("ngIf",!dt.instance.template),a.xp6(1),a.Q6J("ngIf",dt.instance.template)("ngTemplateOutlet",dt.instance.template)("ngTemplateOutletContext",a.WLB(9,et,dt,null==dt.instance.options?null:dt.instance.options.nzData)),a.xp6(3),a.Q6J("ngIf",null==dt.instance.options?null:dt.instance.options.nzCloseIcon)("ngIfElse",_t)}},directives:[oe.PC,oe.mk,oe.O5,oe.RF,oe.n9,q.Ls,oe.tP,_.f],encapsulation:2,data:{animation:[s.LU]}}),ve})();const te="notification",le={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"};let ie=(()=>{class ve extends G.Gm{constructor(Qe,dt){super(Qe,dt),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[];const _t=this.nzConfigService.getConfigForComponent(te);this.dir=(null==_t?void 0:_t.nzDirection)||"ltr"}create(Qe){const dt=this.onCreate(Qe),_t=dt.options.nzKey,it=this.instances.find(St=>St.options.nzKey===Qe.options.nzKey);return _t&&it?this.replaceNotification(it,dt):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,dt]),this.readyInstances(),dt}onCreate(Qe){return Qe.options=this.mergeOptions(Qe.options),Qe.onClose=new R.xQ,Qe.onClick=new R.xQ,Qe}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(te).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const Qe=this.nzConfigService.getConfigForComponent(te);if(Qe){const{nzDirection:dt}=Qe;this.dir=dt||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},le),this.config),this.nzConfigService.getConfigForComponent(te)),this.top=(0,B.WX)(this.config.nzTop),this.bottom=(0,B.WX)(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(Qe,dt){Qe.title=dt.title,Qe.content=dt.content,Qe.template=dt.template,Qe.type=dt.type,Qe.options=dt.options}readyInstances(){this.topLeftInstances=this.instances.filter(Qe=>"topLeft"===Qe.options.nzPlacement),this.topRightInstances=this.instances.filter(Qe=>"topRight"===Qe.options.nzPlacement||!Qe.options.nzPlacement),this.bottomLeftInstances=this.instances.filter(Qe=>"bottomLeft"===Qe.options.nzPlacement),this.bottomRightInstances=this.instances.filter(Qe=>"bottomRight"===Qe.options.nzPlacement),this.cdr.detectChanges()}mergeOptions(Qe){const{nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St}=this.config;return Object.assign({nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St},Qe)}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO),a.Y36(ee.jY))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification-container"]],exportAs:["nzNotificationContainer"],features:[a.qOj],decls:8,vars:28,consts:[[1,"ant-notification","ant-notification-topLeft"],[3,"instance","placement","destroyed",4,"ngFor","ngForOf"],[1,"ant-notification","ant-notification-topRight"],[1,"ant-notification","ant-notification-bottomLeft"],[1,"ant-notification","ant-notification-bottomRight"],[3,"instance","placement","destroyed"]],template:function(Qe,dt){1&Qe&&(a.TgZ(0,"div",0),a.YNc(1,Se,1,2,"nz-notification",1),a.qZA(),a.TgZ(2,"div",2),a.YNc(3,Xe,1,2,"nz-notification",1),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,J,1,2,"nz-notification",1),a.qZA(),a.TgZ(6,"div",4),a.YNc(7,fe,1,2,"nz-notification",1),a.qZA()),2&Qe&&(a.Udp("top",dt.top)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topLeftInstances),a.xp6(1),a.Udp("top",dt.top)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topRightInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomLeftInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomRightInstances))},directives:[he,oe.sg],encapsulation:2,changeDetection:0}),ve})(),Ue=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({}),ve})(),je=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[W.vT,oe.ez,I.U8,q.PV,_.T,Ue]]}),ve})(),tt=0,ke=(()=>{class ve extends G.XJ{constructor(Qe,dt,_t){super(Qe,dt,_t),this.componentPrefix="notification-"}success(Qe,dt,_t){return this.createInstance({type:"success",title:Qe,content:dt},_t)}error(Qe,dt,_t){return this.createInstance({type:"error",title:Qe,content:dt},_t)}info(Qe,dt,_t){return this.createInstance({type:"info",title:Qe,content:dt},_t)}warning(Qe,dt,_t){return this.createInstance({type:"warning",title:Qe,content:dt},_t)}blank(Qe,dt,_t){return this.createInstance({type:"blank",title:Qe,content:dt},_t)}create(Qe,dt,_t,it){return this.createInstance({type:Qe,title:dt,content:_t},it)}template(Qe,dt){return this.createInstance({template:Qe},dt)}generateMessageId(){return`${this.componentPrefix}-${tt++}`}createInstance(Qe,dt){return this.container=this.withContainer(ie),this.container.create(Object.assign(Object.assign({},Qe),{createdAt:new Date,messageId:this.generateMessageId(),options:dt}))}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.LFG(ye.KV),a.LFG(I.aV),a.LFG(a.zs3))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac,providedIn:Ue}),ve})()},7525:(yt,be,p)=>{p.d(be,{W:()=>J,j:()=>fe});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(5647),_=p(8723),W=p(1177);class R{constructor(te){this.durationSelector=te}call(te,le){return le.subscribe(new H(te,this.durationSelector))}}class H extends W.Ds{constructor(te,le){super(te),this.durationSelector=le,this.hasValue=!1}_next(te){try{const le=this.durationSelector.call(this,te);le&&this._tryNext(te,le)}catch(le){this.destination.error(le)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(te,le){let ie=this.durationSubscription;this.value=te,this.hasValue=!0,ie&&(ie.unsubscribe(),this.remove(ie)),ie=(0,W.ft)(le,new W.IY(this)),ie&&!ie.closed&&this.add(this.durationSubscription=ie)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const te=this.value,le=this.durationSubscription;le&&(this.durationSubscription=void 0,le.unsubscribe(),this.remove(le)),this.value=void 0,this.hasValue=!1,super._next(te)}}}var B=p(1059),ee=p(5778),ye=p(7545),Ye=p(7625),Fe=p(9439),ze=p(1721),_e=p(226),vt=p(9808),Je=p(7144);function zt(he,te){1&he&&(s.TgZ(0,"span",3),s._UZ(1,"i",4),s._UZ(2,"i",4),s._UZ(3,"i",4),s._UZ(4,"i",4),s.qZA())}function ut(he,te){}function Ie(he,te){if(1&he&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&he){const le=s.oxw(2);s.xp6(1),s.Oqu(le.nzTip)}}function $e(he,te){if(1&he&&(s.TgZ(0,"div"),s.TgZ(1,"div",5),s.YNc(2,ut,0,0,"ng-template",6),s.YNc(3,Ie,2,1,"div",7),s.qZA(),s.qZA()),2&he){const le=s.oxw(),ie=s.MAs(1);s.xp6(1),s.ekj("ant-spin-rtl","rtl"===le.dir)("ant-spin-spinning",le.isLoading)("ant-spin-lg","large"===le.nzSize)("ant-spin-sm","small"===le.nzSize)("ant-spin-show-text",le.nzTip),s.xp6(1),s.Q6J("ngTemplateOutlet",le.nzIndicator||ie),s.xp6(1),s.Q6J("ngIf",le.nzTip)}}function et(he,te){if(1&he&&(s.TgZ(0,"div",9),s.Hsn(1),s.qZA()),2&he){const le=s.oxw();s.ekj("ant-spin-blur",le.isLoading)}}const Se=["*"];let J=(()=>{class he{constructor(le,ie,Ue){this.nzConfigService=le,this.cdr=ie,this.directionality=Ue,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new G.xQ,this.spinning$=new oe.X(this.nzSpinning),this.delay$=new q.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var le;this.delay$.pipe((0,B.O)(this.nzDelay),(0,ee.x)(),(0,ye.w)(Ue=>0===Ue?this.spinning$:this.spinning$.pipe(function I(he){return te=>te.lift(new R(he))}(je=>(0,_.H)(je?Ue:0)))),(0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.isLoading=Ue,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,Ye.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(le=this.directionality.change)||void 0===le||le.pipe((0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(le){const{nzSpinning:ie,nzDelay:Ue}=le;ie&&this.spinning$.next(this.nzSpinning),Ue&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return he.\u0275fac=function(le){return new(le||he)(s.Y36(Fe.jY),s.Y36(s.sBO),s.Y36(_e.Is,8))},he.\u0275cmp=s.Xpm({type:he,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(le,ie){2&le&&s.ekj("ant-spin-nested-loading",!ie.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[s.TTD],ngContentSelectors:Se,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(le,ie){1&le&&(s.F$t(),s.YNc(0,zt,5,0,"ng-template",null,0,s.W1O),s.YNc(2,$e,4,12,"div",1),s.YNc(3,et,2,2,"div",2)),2&le&&(s.xp6(2),s.Q6J("ngIf",ie.isLoading),s.xp6(1),s.Q6J("ngIf",!ie.nzSimple))},directives:[vt.O5,vt.tP],encapsulation:2}),(0,a.gn)([(0,Fe.oS)()],he.prototype,"nzIndicator",void 0),(0,a.gn)([(0,ze.Rn)()],he.prototype,"nzDelay",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSimple",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSpinning",void 0),he})(),fe=(()=>{class he{}return he.\u0275fac=function(le){return new(le||he)},he.\u0275mod=s.oAB({type:he}),he.\u0275inj=s.cJS({imports:[[_e.vT,vt.ez,Je.Q8]]}),he})()},404:(yt,be,p)=>{p.d(be,{cg:()=>et,SY:()=>Ie});var a=p(655),s=p(5e3),G=p(8076),oe=p(8693),q=p(1721),_=p(8929),W=p(5778),I=p(7625),R=p(6950),H=p(4832),B=p(9439),ee=p(226),ye=p(2845),Ye=p(9808),Fe=p(969);const ze=["overlay"];function _e(Se,Xe){if(1&Se&&(s.ynx(0),s._uU(1),s.BQk()),2&Se){const J=s.oxw(2);s.xp6(1),s.Oqu(J.nzTitle)}}function vt(Se,Xe){if(1&Se&&(s.TgZ(0,"div",2),s.TgZ(1,"div",3),s.TgZ(2,"div",4),s._UZ(3,"span",5),s.qZA(),s.TgZ(4,"div",6),s.YNc(5,_e,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA()),2&Se){const J=s.oxw();s.ekj("ant-tooltip-rtl","rtl"===J.dir),s.Q6J("ngClass",J._classMap)("ngStyle",J.nzOverlayStyle)("@.disabled",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("nzNoAnimation",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),s.xp6(3),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("nzStringTemplateOutlet",J.nzTitle)("nzStringTemplateOutletContext",J.nzTitleContext)}}let Je=(()=>{class Se{constructor(J,fe,he,te,le,ie){this.elementRef=J,this.hostView=fe,this.resolver=he,this.renderer=te,this.noAnimation=le,this.nzConfigService=ie,this.visibleChange=new s.vpe,this.internalVisible=!1,this.destroy$=new _.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const J=this.placement;return Array.isArray(J)&&J.length>0?J:"string"==typeof J&&J?[J]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(J){const{trigger:fe}=J;fe&&!fe.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(J)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var J;null===(J=this.component)||void 0===J||J.show()}hide(){var J;null===(J=this.component)||void 0===J||J.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const J=this.componentRef;this.component=J.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),J.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,W.x)(),(0,I.R)(this.destroy$)).subscribe(fe=>{this.internalVisible=fe,this.visibleChange.emit(fe)})}registerTriggers(){const J=this.elementRef.nativeElement,fe=this.trigger;if(this.removeTriggerListeners(),"hover"===fe){let he;this.triggerDisposables.push(this.renderer.listen(J,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(J,"mouseleave",()=>{var te;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(te=this.component)||void 0===te?void 0:te.overlay.overlayRef)&&!he&&(he=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(he,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(he,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===fe?(this.triggerDisposables.push(this.renderer.listen(J,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(J,"focusout",()=>this.hide()))):"click"===fe&&this.triggerDisposables.push(this.renderer.listen(J,"click",he=>{he.preventDefault(),this.show()}))}updatePropertiesByChanges(J){this.updatePropertiesByKeys(Object.keys(J))}updatePropertiesByKeys(J){var fe;const he=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(J||Object.keys(he).filter(te=>!te.startsWith("directive"))).forEach(te=>{if(he[te]){const[le,ie]=he[te];this.updateComponentValue(le,ie())}}),null===(fe=this.component)||void 0===fe||fe.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(J,fe){void 0!==fe&&(this.component[J]=fe)}delayEnterLeave(J,fe,he=-1){this.delayTimer?this.clearTogglingTimer():he>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,fe?this.show():this.hide()},1e3*he):fe&&J?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(J=>J()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P),s.Y36(B.jY))},Se.\u0275dir=s.lG2({type:Se,features:[s.TTD]}),Se})(),zt=(()=>{class Se{constructor(J,fe,he){this.cdr=J,this.directionality=fe,this.noAnimation=he,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new _.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...R.Ek],this.destroy$=new _.xQ}set nzVisible(J){const fe=(0,q.sw)(J);this._visible!==fe&&(this._visible=fe,this.nzVisibleChange.next(fe))}get nzVisible(){return this._visible}set nzTrigger(J){this._trigger=J}get nzTrigger(){return this._trigger}set nzPlacement(J){const fe=J.map(he=>R.yW[he]);this._positions=[...fe,...R.Ek]}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,I.R)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(J){this.preferredPlacement=(0,R.d_)(J),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(J){this.origin=J,this.cdr.markForCheck()}onClickOutside(J){!this.origin.nativeElement.contains(J.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P))},Se.\u0275dir=s.lG2({type:Se,viewQuery:function(J,fe){if(1&J&&s.Gf(ze,5),2&J){let he;s.iGM(he=s.CRH())&&(fe.overlay=he.first)}}}),Se})(),Ie=(()=>{class Se extends Je{constructor(J,fe,he,te,le){super(J,fe,he,te,le),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new s.vpe,this.componentRef=this.hostView.createComponent($e)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P,9))},Se.\u0275dir=s.lG2({type:Se,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(J,fe){2&J&&s.ekj("ant-tooltip-open",fe.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[s.qOj]}),(0,a.gn)([(0,q.yF)()],Se.prototype,"arrowPointAtCenter",void 0),Se})(),$e=(()=>{class Se extends zt{constructor(J,fe,he){super(J,fe,he),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return function ut(Se){return!(Se instanceof s.Rgc||""!==Se&&(0,q.DX)(Se))}(this.nzTitle)}updateStyles(){const J=this.nzColor&&(0,oe.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:J},this._contentStyleMap={backgroundColor:this.nzColor&&!J?this.nzColor:null}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P,9))},Se.\u0275cmp=s.Xpm({type:Se,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[s.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(J,fe){1&J&&(s.YNc(0,vt,6,11,"ng-template",0,1,s.W1O),s.NdJ("overlayOutsideClick",function(te){return fe.onClickOutside(te)})("detach",function(){return fe.hide()})("positionChange",function(te){return fe.onPositionChange(te)})),2&J&&s.Q6J("cdkConnectedOverlayOrigin",fe.origin)("cdkConnectedOverlayOpen",fe._visible)("cdkConnectedOverlayPositions",fe._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",fe.nzArrowPointAtCenter)},directives:[ye.pI,R.hQ,Ye.mk,Ye.PC,H.P,Fe.f],encapsulation:2,data:{animation:[G.$C]},changeDetection:0}),Se})(),et=(()=>{class Se{}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275mod=s.oAB({type:Se}),Se.\u0275inj=s.cJS({imports:[[ee.vT,Ye.ez,ye.U8,Fe.T,R.e4,H.g]]}),Se})()}},yt=>{yt(yt.s=434)}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/ngsw.json b/src/blrec/data/webapp/ngsw.json index 0ceac51..43a73df 100644 --- a/src/blrec/data/webapp/ngsw.json +++ b/src/blrec/data/webapp/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1661135687643, + "timestamp": 1661579095139, "index": "/index.html", "assetGroups": [ { @@ -13,16 +13,16 @@ "urls": [ "/103.5b5d2a6e5a8a7479.js", "/146.5a8902910bda9e87.js", - "/170.d0e14a28ee578d1f.js", - "/183.0d3cd9f454be16fb.js", + "/183.ee55fc76717674c3.js", + "/205.cf2caa9b46b14212.js", "/45.c90c3cea2bf1a66e.js", - "/91.9ff409a090dace5c.js", + "/91.cab8652a2fa56b1a.js", "/common.858f777e9296e6f2.js", "/index.html", - "/main.27d1fff16f7909f2.js", + "/main.6da8ea192405b948.js", "/manifest.webmanifest", "/polyfills.4b08448aee19bb22.js", - "/runtime.4ae765ab3bddf383.js", + "/runtime.c6818dbcd7b06106.js", "/styles.2e152d608221c2ee.css" ], "patterns": [] @@ -1636,10 +1636,10 @@ "hashTable": { "/103.5b5d2a6e5a8a7479.js": "cc0240f217015b6d4ddcc14f31fcc42e1c1c282a", "/146.5a8902910bda9e87.js": "d9c33c7073662699f00f46f3a384ae5b749fdef9", - "/170.d0e14a28ee578d1f.js": "d6b6208ca442565ed39300b27ab8cbe5501cb46a", - "/183.0d3cd9f454be16fb.js": "e7e6ebc715791102fd09edabe2aa47316208b29c", + "/183.ee55fc76717674c3.js": "2628c996ec80a6c6703d542d34ac95194283bcf8", + "/205.cf2caa9b46b14212.js": "749df896fbbd279dcf49318963f0ce074c5df87f", "/45.c90c3cea2bf1a66e.js": "e5bfb8cf3803593e6b8ea14c90b3d3cb6a066764", - "/91.9ff409a090dace5c.js": "d756ffe7cd3f5516e40a7e6d6cf494ea6213a546", + "/91.cab8652a2fa56b1a.js": "c11ebf28472c8a75653f7b27b5cffdec477830fe", "/assets/animal/panda.js": "fec2868bb3053dd2da45f96bbcb86d5116ed72b1", "/assets/animal/panda.svg": "bebd302cdc601e0ead3a6d2710acf8753f3d83b1", "/assets/fill/.gitkeep": "da39a3ee5e6b4b0d3255bfef95601890afd80709", @@ -3234,11 +3234,11 @@ "/assets/twotone/warning.js": "fb2d7ea232f3a99bf8f080dbc94c65699232ac01", "/assets/twotone/warning.svg": "8c7a2d3e765a2e7dd58ac674870c6655cecb0068", "/common.858f777e9296e6f2.js": "b68ca68e1e214a2537d96935c23410126cc564dd", - "/index.html": "29167783eb093ffa93369f741a5ce20a534137de", - "/main.27d1fff16f7909f2.js": "22e63726601a31af1a96e7901afc0d2bea7fd414", + "/index.html": "80797fa46f33b7bcf402788a5d0d0516b77f23b1", + "/main.6da8ea192405b948.js": "b8995c7d8ccd465769b90936db5e0a337a827a58", "/manifest.webmanifest": "62c1cb8c5ad2af551a956b97013ab55ce77dd586", "/polyfills.4b08448aee19bb22.js": "8e73f2d42cc13ca353cea5c886d930bd6da08d0d", - "/runtime.4ae765ab3bddf383.js": "96653fd35d3ad9684e603011436e9d43a1121690", + "/runtime.c6818dbcd7b06106.js": "00160f946c5d007a956f5f61293cbd3bed2756dc", "/styles.2e152d608221c2ee.css": "9830389a46daa5b4511e0dd343aad23ca9f9690f" }, "navigationUrls": [ diff --git a/src/blrec/data/webapp/runtime.4ae765ab3bddf383.js b/src/blrec/data/webapp/runtime.c6818dbcd7b06106.js similarity index 54% rename from src/blrec/data/webapp/runtime.4ae765ab3bddf383.js rename to src/blrec/data/webapp/runtime.c6818dbcd7b06106.js index 12d9b9c..12f5922 100644 --- a/src/blrec/data/webapp/runtime.4ae765ab3bddf383.js +++ b/src/blrec/data/webapp/runtime.c6818dbcd7b06106.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,o,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(p=>r.O[p](t[l]))?t.splice(l--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,o,f]},r.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return r.d(i,{a:i}),i},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(592===e?"common":e)+"."+{45:"c90c3cea2bf1a66e",91:"9ff409a090dace5c",103:"5b5d2a6e5a8a7479",146:"5a8902910bda9e87",170:"d0e14a28ee578d1f",183:"0d3cd9f454be16fb",592:"858f777e9296e6f2"}[e]+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="blrec:";r.l=(t,o,f,n)=>{if(e[t])e[t].push(o);else{var a,c;if(void 0!==f)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=i=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(i))})(),r.p="",(()=>{var e={666:0};r.f.j=(o,f)=>{var n=r.o(e,o)?e[o]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=o){var a=new Promise((u,s)=>n=e[o]=[u,s]);f.push(n[2]=a);var c=r.p+r.u(o),l=new Error;r.l(c,u=>{if(r.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+b+")",l.name="ChunkLoadError",l.type=s,l.request=b,n[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var i=(o,f)=>{var l,d,[n,a,c]=f,u=0;if(n.some(b=>0!==e[b])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(o&&o(f);u{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,f,o)=>{if(!t){var a=1/0;for(n=0;n=o)&&Object.keys(r.O).every(p=>r.O[p](t[l]))?t.splice(l--,1):(c=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,f,o]},r.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return r.d(i,{a:i}),i},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(592===e?"common":e)+"."+{45:"c90c3cea2bf1a66e",91:"cab8652a2fa56b1a",103:"5b5d2a6e5a8a7479",146:"5a8902910bda9e87",183:"ee55fc76717674c3",205:"cf2caa9b46b14212",592:"858f777e9296e6f2"}[e]+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="blrec:";r.l=(t,f,o,n)=>{if(e[t])e[t].push(f);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=i=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(i))})(),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var n=r.o(e,f)?e[f]:void 0;if(0!==n)if(n)o.push(n[2]);else if(666!=f){var a=new Promise((u,s)=>n=e[f]=[u,s]);o.push(n[2]=a);var c=r.p+r.u(f),l=new Error;r.l(c,u=>{if(r.o(e,f)&&(0!==(n=e[f])&&(e[f]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;l.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",l.name="ChunkLoadError",l.type=s,l.request=b,n[1](l)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var i=(f,o)=>{var l,d,[n,a,c]=o,u=0;if(n.some(b=>0!==e[b])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(f&&f(o);u Callable[[FLVStream], FLVStream]: +def process(sort_tags: bool = False) -> Callable[[FLVStream], FLVStream]: def _process(source: FLVStream) -> FLVStream: if sort_tags: return source.pipe( defragment(), split(), - sort(trace=trace), + sort(), ops.filter(lambda v: not is_avc_end_sequence_tag(v)), # type: ignore correct(), fix(), diff --git a/src/blrec/flv/operators/sort.py b/src/blrec/flv/operators/sort.py index e3c8676..d4a8496 100644 --- a/src/blrec/flv/operators/sort.py +++ b/src/blrec/flv/operators/sort.py @@ -1,4 +1,5 @@ import logging +import os from typing import Callable, List, Optional from reactivex import Observable, abc @@ -21,8 +22,10 @@ __all__ = ('sort',) logger = logging.getLogger(__name__) +TRACE_OP_SORT = bool(os.environ.get('TRACE_OP_SORT')) -def sort(trace: bool = False) -> Callable[[FLVStream], FLVStream]: + +def sort() -> Callable[[FLVStream], FLVStream]: "Sort tags in GOP by timestamp to ensure subsequent operators work as expected." def _sort(source: FLVStream) -> FLVStream: @@ -43,7 +46,7 @@ def sort(trace: bool = False) -> Callable[[FLVStream], FLVStream]: if not gop_tags: return - if trace: + if TRACE_OP_SORT: logger.debug( 'Tags in GOP:\n' f'Number of tags: {len(gop_tags)}\n' diff --git a/src/blrec/flv/scriptdata.py b/src/blrec/flv/scriptdata.py index a1d9bd8..85b43ff 100644 --- a/src/blrec/flv/scriptdata.py +++ b/src/blrec/flv/scriptdata.py @@ -1,26 +1,25 @@ +import logging from io import BytesIO -from typing import Any, BinaryIO, Dict, Mapping, TypedDict - +from typing import Any, BinaryIO, Mapping, TypedDict from .amf import AMFReader, AMFWriter - __all__ = ( 'load', 'loads', 'dump', 'dumps', - 'ScriptData', - 'ScriptDataParser', 'ScriptDataDumper', ) +logger = logging.getLogger(__name__) + class ScriptData(TypedDict): name: str - value: Dict[str, Any] + value: Any class ScriptDataParser: @@ -29,7 +28,17 @@ class ScriptDataParser: def parse(self) -> ScriptData: name = self._parse_name() - value = self._parse_value() + try: + value = self._parse_value() + except EOFError: + logger.debug(f'No script data: {name}') + value = {} + if not isinstance(value, dict): + if name == 'onMetaData': + logger.debug(f'Invalid onMetaData: {value}') + value = {} + else: + logger.debug(f'Unusual script data: {name}, {value}') return ScriptData(name=name, value=value) def _parse_name(self) -> str: @@ -37,10 +46,8 @@ class ScriptDataParser: assert isinstance(value, str) return value - def _parse_value(self) -> Dict[str, Any]: - value = self._reader.read_value() - assert isinstance(value, dict) - return value + def _parse_value(self) -> Any: + return self._reader.read_value() class ScriptDataDumper: diff --git a/src/blrec/setting/__init__.py b/src/blrec/setting/__init__.py index 097c795..c1346d4 100644 --- a/src/blrec/setting/__init__.py +++ b/src/blrec/setting/__init__.py @@ -1,14 +1,13 @@ from .helpers import shadow_settings, update_settings from .models import ( DEFAULT_SETTINGS_FILE, + BiliApiSettings, DanmakuOptions, DanmakuSettings, EmailMessageTemplateSettings, EmailNotificationSettings, EmailSettings, EnvSettings, - BiliApiOptions, - BiliApiSettings, HeaderOptions, HeaderSettings, LoggingSettings, @@ -47,7 +46,6 @@ __all__ = ( 'Settings', 'SettingsIn', 'SettingsOut', - 'BiliApiOptions', 'BiliApiSettings', 'HeaderOptions', 'HeaderSettings', diff --git a/src/blrec/setting/models.py b/src/blrec/setting/models.py index 20740e5..f2596d2 100644 --- a/src/blrec/setting/models.py +++ b/src/blrec/setting/models.py @@ -35,7 +35,6 @@ __all__ = ( 'Settings', 'SettingsIn', 'SettingsOut', - 'BiliApiOptions', 'BiliApiSettings', 'HeaderOptions', 'HeaderSettings', @@ -112,16 +111,10 @@ class BaseModel(PydanticBaseModel): ) -class BiliApiOptions(BaseModel): - base_api_url: Optional[str] - base_live_api_url: Optional[str] - base_play_info_api_url: Optional[str] - - -class BiliApiSettings(BiliApiOptions): - base_api_url: str = 'https://api.bilibili.com' - base_live_api_url: str = 'https://api.live.bilibili.com' - base_play_info_api_url: str = base_live_api_url +class BiliApiSettings(BaseModel): + base_api_urls: List[str] = ['https://api.bilibili.com'] + base_live_api_urls: List[str] = ['https://api.live.bilibili.com'] + base_play_info_api_urls: List[str] = ['https://api.live.bilibili.com'] class HeaderOptions(BaseModel): @@ -299,7 +292,6 @@ class OutputSettings(OutputOptions): class TaskOptions(BaseModel): output: OutputOptions = OutputOptions() - bili_api: BiliApiOptions = BiliApiOptions() header: HeaderOptions = HeaderOptions() danmaku: DanmakuOptions = DanmakuOptions() recorder: RecorderOptions = RecorderOptions() @@ -309,14 +301,7 @@ class TaskOptions(BaseModel): def from_settings(cls, settings: TaskSettings) -> TaskOptions: return cls( **settings.dict( - include={ - 'output', - 'bili_api', - 'header', - 'danmaku', - 'recorder', - 'postprocessing', - } + include={'output', 'header', 'danmaku', 'recorder', 'postprocessing'} ) ) diff --git a/src/blrec/setting/setting_manager.py b/src/blrec/setting/setting_manager.py index ae418c6..a4c957d 100644 --- a/src/blrec/setting/setting_manager.py +++ b/src/blrec/setting/setting_manager.py @@ -16,7 +16,6 @@ from ..notification import ( from ..webhook import WebHook from .helpers import shadow_settings, update_settings from .models import ( - BiliApiOptions, DanmakuOptions, HeaderOptions, MessageTemplateSettings, @@ -211,13 +210,6 @@ class SettingsManager: settings.enable_recorder = False await self.dump_settings() - def apply_task_bili_api_settings( - self, room_id: int, options: BiliApiOptions - ) -> None: - final_settings = self._settings.bili_api.copy() - shadow_settings(options, final_settings) - self._app._task_manager.apply_task_bili_api_settings(room_id, final_settings) - async def apply_task_header_settings( self, room_id: int, @@ -277,8 +269,10 @@ class SettingsManager: ) def apply_bili_api_settings(self) -> None: - for settings in self._settings.tasks: - self.apply_task_bili_api_settings(settings.room_id, settings.bili_api) + for task_settings in self._settings.tasks: + self._app._task_manager.apply_task_bili_api_settings( + task_settings.room_id, self._settings.bili_api + ) async def apply_header_settings(self) -> None: for settings in self._settings.tasks: diff --git a/src/blrec/task/models.py b/src/blrec/task/models.py index 91bdbe0..fe23193 100644 --- a/src/blrec/task/models.py +++ b/src/blrec/task/models.py @@ -1,7 +1,7 @@ from __future__ import annotations from enum import Enum -from typing import Optional +from typing import List, Optional import attr @@ -51,9 +51,9 @@ class TaskParam: filesize_limit: int duration_limit: int # BiliApiSettings - base_api_url: str - base_live_api_url: str - base_play_info_api_url: str + base_api_urls: List[str] + base_live_api_urls: List[str] + base_play_info_api_urls: List[str] # HeaderSettings user_agent: str cookie: str diff --git a/src/blrec/task/task.py b/src/blrec/task/task.py index 5c6aaf5..6eeeed2 100644 --- a/src/blrec/task/task.py +++ b/src/blrec/task/task.py @@ -1,7 +1,7 @@ import logging import os from pathlib import PurePath -from typing import Iterator, Optional +from typing import Iterator, List, Optional from blrec.bili.danmaku_client import DanmakuClient from blrec.bili.live import Live @@ -200,28 +200,28 @@ class RecordTask: yield DanmakuFileDetail(path=path, size=size, status=status) @property - def base_api_url(self) -> str: - return self._live.base_api_url + def base_api_urls(self) -> List[str]: + return self._live.base_api_urls - @base_api_url.setter - def base_api_url(self, value: str) -> None: - self._live.base_api_url = value + @base_api_urls.setter + def base_api_urls(self, value: List[str]) -> None: + self._live.base_api_urls = value @property - def base_live_api_url(self) -> str: - return self._live.base_live_api_url + def base_live_api_urls(self) -> List[str]: + return self._live.base_live_api_urls - @base_live_api_url.setter - def base_live_api_url(self, value: str) -> None: - self._live.base_live_api_url = value + @base_live_api_urls.setter + def base_live_api_urls(self, value: List[str]) -> None: + self._live.base_live_api_urls = value @property - def base_play_info_api_url(self) -> str: - return self._live.base_play_info_api_url + def base_play_info_api_urls(self) -> List[str]: + return self._live.base_play_info_api_urls - @base_play_info_api_url.setter - def base_play_info_api_url(self, value: str) -> None: - self._live.base_play_info_api_url = value + @base_play_info_api_urls.setter + def base_play_info_api_urls(self, value: List[str]) -> None: + self._live.base_play_info_api_urls = value @property def user_agent(self) -> str: diff --git a/src/blrec/task/task_manager.py b/src/blrec/task/task_manager.py index 3ec9b51..eb8ead6 100644 --- a/src/blrec/task/task_manager.py +++ b/src/blrec/task/task_manager.py @@ -77,9 +77,9 @@ class RecordTaskManager: self._tasks[settings.room_id] = task try: - self._settings_manager.apply_task_bili_api_settings( - settings.room_id, settings.bili_api - ) + bili_api = self._settings_manager.get_settings({'bili_api'}).bili_api + assert bili_api is not None + self.apply_task_bili_api_settings(settings.room_id, bili_api) await self._settings_manager.apply_task_header_settings( settings.room_id, settings.header, restart_danmaku_client=False ) @@ -230,9 +230,9 @@ class RecordTaskManager: self, room_id: int, settings: BiliApiSettings ) -> None: task = self._get_task(room_id) - task.base_api_url = settings.base_api_url - task.base_live_api_url = settings.base_live_api_url - task.base_play_info_api_url = settings.base_play_info_api_url + task.base_api_urls = settings.base_api_urls + task.base_live_api_urls = settings.base_live_api_urls + task.base_play_info_api_urls = settings.base_play_info_api_urls async def apply_task_header_settings( self, @@ -308,9 +308,9 @@ class RecordTaskManager: path_template=task.path_template, filesize_limit=task.filesize_limit, duration_limit=task.duration_limit, - base_api_url=task.base_api_url, - base_live_api_url=task.base_live_api_url, - base_play_info_api_url=task.base_play_info_api_url, + base_api_urls=task.base_api_urls, + base_live_api_urls=task.base_live_api_urls, + base_play_info_api_urls=task.base_play_info_api_urls, user_agent=task.user_agent, cookie=task.cookie, danmu_uname=task.danmu_uname, diff --git a/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.html b/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.html index ecf8edc..eed0839 100644 --- a/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.html +++ b/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.html @@ -1,5 +1,5 @@ - + 不能为空 - - 输入无效 + + 输入无效: {{ control.getError("baseUrl").value | json }} diff --git a/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.ts b/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.ts index 6e10197..0082b7c 100644 --- a/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.ts +++ b/webapp/src/app/settings/bili-api-settings/base-api-url-edit-dialog/base-api-url-edit-dialog.component.ts @@ -13,10 +13,8 @@ import { FormGroup, Validators, } from '@angular/forms'; -import { - BASE_API_URL_DEFAULT, - BASE_URL_PATTERN, -} from '../../shared/constants/form'; +import { BASE_API_URL_DEFAULT } from '../../shared/constants/form'; +import { baseUrlValidator } from '../../shared/directives/base-url-validator.directive'; @Component({ selector: 'app-base-api-url-edit-dialog', @@ -25,11 +23,11 @@ import { changeDetection: ChangeDetectionStrategy.OnPush, }) export class BaseApiUrlEditDialogComponent implements OnChanges { - @Input() value = ''; + @Input() value = []; @Input() visible = false; @Output() visibleChange = new EventEmitter(); @Output() cancel = new EventEmitter(); - @Output() confirm = new EventEmitter(); + @Output() confirm = new EventEmitter(); readonly settingsForm: FormGroup; readonly defaultBaseApiUrl = BASE_API_URL_DEFAULT; @@ -39,15 +37,12 @@ export class BaseApiUrlEditDialogComponent implements OnChanges { private changeDetector: ChangeDetectorRef ) { this.settingsForm = formBuilder.group({ - baseApiUrl: [ - '', - [Validators.required, Validators.pattern(BASE_URL_PATTERN)], - ], + baseApiUrls: ['', [Validators.required, baseUrlValidator()]], }); } get control() { - return this.settingsForm.get('baseApiUrl') as FormControl; + return this.settingsForm.get('baseApiUrls') as FormControl; } ngOnChanges(): void { @@ -70,7 +65,7 @@ export class BaseApiUrlEditDialogComponent implements OnChanges { } setValue(): void { - this.control.setValue(this.value); + this.control.setValue(this.value.join('\n')); this.changeDetector.markForCheck(); } @@ -80,7 +75,12 @@ export class BaseApiUrlEditDialogComponent implements OnChanges { } handleConfirm(): void { - this.confirm.emit(this.control.value.trim()); + const value = this.control.value as string; + const baseUrls = value + .split('\n') + .map((line) => line.trim()) + .filter((line) => !!line); + this.confirm.emit(baseUrls); this.close(); } diff --git a/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.html b/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.html index c4f56d2..d5a8b91 100644 --- a/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.html +++ b/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.html @@ -1,5 +1,5 @@ - + required + formControlName="baseLiveApiUrls" + > 不能为空 - - 输入无效 + + 输入无效: {{ control.getError("baseUrl").value | json }} diff --git a/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.ts b/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.ts index 46b210a..f45e2dd 100644 --- a/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.ts +++ b/webapp/src/app/settings/bili-api-settings/base-live-api-url-edit-dialog/base-live-api-url-edit-dialog.component.ts @@ -13,10 +13,8 @@ import { FormGroup, Validators, } from '@angular/forms'; -import { - BASE_LIVE_API_URL_DEFAULT, - BASE_URL_PATTERN, -} from '../../shared/constants/form'; +import { BASE_LIVE_API_URL_DEFAULT } from '../../shared/constants/form'; +import { baseUrlValidator } from '../../shared/directives/base-url-validator.directive'; @Component({ selector: 'app-base-live-api-url-edit-dialog', @@ -25,11 +23,11 @@ import { changeDetection: ChangeDetectionStrategy.OnPush, }) export class BaseLiveApiUrlEditDialogComponent implements OnChanges { - @Input() value = ''; + @Input() value = []; @Input() visible = false; @Output() visibleChange = new EventEmitter(); @Output() cancel = new EventEmitter(); - @Output() confirm = new EventEmitter(); + @Output() confirm = new EventEmitter(); readonly settingsForm: FormGroup; readonly defaultBaseLiveApiUrl = BASE_LIVE_API_URL_DEFAULT; @@ -39,15 +37,12 @@ export class BaseLiveApiUrlEditDialogComponent implements OnChanges { private changeDetector: ChangeDetectorRef ) { this.settingsForm = formBuilder.group({ - baseLiveApiUrl: [ - '', - [Validators.required, Validators.pattern(BASE_URL_PATTERN)], - ], + baseLiveApiUrls: ['', [Validators.required, baseUrlValidator()]], }); } get control() { - return this.settingsForm.get('baseLiveApiUrl') as FormControl; + return this.settingsForm.get('baseLiveApiUrls') as FormControl; } ngOnChanges(): void { @@ -70,7 +65,7 @@ export class BaseLiveApiUrlEditDialogComponent implements OnChanges { } setValue(): void { - this.control.setValue(this.value); + this.control.setValue(this.value.join('\n')); this.changeDetector.markForCheck(); } @@ -80,7 +75,12 @@ export class BaseLiveApiUrlEditDialogComponent implements OnChanges { } handleConfirm(): void { - this.confirm.emit(this.control.value.trim()); + const value = this.control.value as string; + const baseUrls = value + .split('\n') + .map((line) => line.trim()) + .filter((line) => !!line); + this.confirm.emit(baseUrls); this.close(); } diff --git a/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.html b/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.html index a0edc8f..c35170f 100644 --- a/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.html +++ b/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.html @@ -1,5 +1,5 @@ - + required + formControlName="basePlayInfoApiUrls" + > 不能为空 - - 输入无效 + + 输入无效: {{ control.getError("baseUrl").value | json }} diff --git a/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.ts b/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.ts index 369f6ba..14fd740 100644 --- a/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.ts +++ b/webapp/src/app/settings/bili-api-settings/base-play-info-api-url-edit-dialog/base-play-info-api-url-edit-dialog.component.ts @@ -13,10 +13,8 @@ import { FormGroup, Validators, } from '@angular/forms'; -import { - BASE_LIVE_API_URL_DEFAULT, - BASE_URL_PATTERN, -} from '../../shared/constants/form'; +import { BASE_LIVE_API_URL_DEFAULT } from '../../shared/constants/form'; +import { baseUrlValidator } from '../../shared/directives/base-url-validator.directive'; @Component({ selector: 'app-base-play-info-api-url-edit-dialog', @@ -25,11 +23,11 @@ import { changeDetection: ChangeDetectionStrategy.OnPush, }) export class BasePlayInfoApiUrlEditDialogComponent implements OnChanges { - @Input() value = ''; + @Input() value = []; @Input() visible = false; @Output() visibleChange = new EventEmitter(); @Output() cancel = new EventEmitter(); - @Output() confirm = new EventEmitter(); + @Output() confirm = new EventEmitter(); readonly settingsForm: FormGroup; readonly defaultBasePlayInfoApiUrl = BASE_LIVE_API_URL_DEFAULT; @@ -39,15 +37,12 @@ export class BasePlayInfoApiUrlEditDialogComponent implements OnChanges { private changeDetector: ChangeDetectorRef ) { this.settingsForm = formBuilder.group({ - basePlayInfoApiUrl: [ - '', - [Validators.required, Validators.pattern(BASE_URL_PATTERN)], - ], + basePlayInfoApiUrls: ['', [Validators.required, baseUrlValidator()]], }); } get control() { - return this.settingsForm.get('basePlayInfoApiUrl') as FormControl; + return this.settingsForm.get('basePlayInfoApiUrls') as FormControl; } ngOnChanges(): void { @@ -70,7 +65,7 @@ export class BasePlayInfoApiUrlEditDialogComponent implements OnChanges { } setValue(): void { - this.control.setValue(this.value); + this.control.setValue(this.value.join('\n')); this.changeDetector.markForCheck(); } @@ -80,7 +75,12 @@ export class BasePlayInfoApiUrlEditDialogComponent implements OnChanges { } handleConfirm(): void { - this.confirm.emit(this.control.value.trim()); + const value = this.control.value as string; + const baseUrls = value + .split('\n') + .map((line) => line.trim()) + .filter((line) => !!line); + this.confirm.emit(baseUrls); this.close(); } diff --git a/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.html b/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.html index 92ec3c5..d54c71d 100644 --- a/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.html +++ b/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.html @@ -1,79 +1,100 @@
- BASE API URL主站 API 主机地址 - -

主站 API 的 BASE URL

+ +

设置内容:发送主站 API 请求所用的主机的地址,一行一个。

+

请求方式:先用第一个发送请求,出错就用第二个,以此类推。

+

主要目的:缓解请求过多被风控

{{ baseApiUrlControl.value }} + >{{ baseApiUrlsControl.value }} - BASE LIVE API URL直播 API 主机地址 - -

直播 API (getRoomPlayInfo 除外) 的 BASE URL

+ +

+ 设置内容:发送直播 API (直播流 API getRoomPlayInfo 除外) + 请求所用的主机的地址,一行一个。 +

+

请求方式:先用第一个发送请求,出错就用第二个,以此类推。

+

主要目的:缓解请求过多被风控

{{ baseLiveApiUrlControl.value }} + >{{ baseLiveApiUrlsControl.value }}
BASE PLAY INFO API URL直播流 API 主机地址 -

直播 API getRoomPlayInfo 的 BASE URL

+

+ 设置内容:发送直播流 API (getRoomPlayInfo) + 请求所用的主机的地址,一行一个。 +

+

+ 请求方式:同时并发向全部 API + 主机发送请求(从全部成功的请求结果中提取直播流质量较好的直播流地址) +

+

主要目的:改变录制的直播流的 CDN

+

+ P.S:国外 IP 的请求结果没有 HLS(fmp4) 流,要同时支持 fmp4 和 flv + 可以混用国内和国外的 API 主机。 +

{{ basePlayInfoApiUrlControl.value }} + >{{ basePlayInfoApiUrlsControl.value }}
diff --git a/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.scss b/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.scss index 6cc2d8e..88608f2 100644 --- a/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.scss +++ b/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.scss @@ -1 +1,6 @@ -@use '../shared/styles/setting'; +@use "../shared/styles/setting"; +@use "src/app/shared/styles/text"; + +nz-form-control { + @include text.elide-text-overflow; +} diff --git a/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.ts b/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.ts index c3cca6d..043688b 100644 --- a/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.ts +++ b/webapp/src/app/settings/bili-api-settings/bili-api-settings.component.ts @@ -38,22 +38,22 @@ export class BiliApiSettingsComponent implements OnInit, OnChanges { private settingsSyncService: SettingsSyncService ) { this.settingsForm = formBuilder.group({ - baseApiUrl: [''], - baseLiveApiUrl: [''], - basePlayInfoApiUrl: [''], + baseApiUrls: [[]], + baseLiveApiUrls: [[]], + basePlayInfoApiUrls: [[]], }); } - get baseApiUrlControl() { - return this.settingsForm.get('baseApiUrl') as FormControl; + get baseApiUrlsControl() { + return this.settingsForm.get('baseApiUrls') as FormControl; } - get baseLiveApiUrlControl() { - return this.settingsForm.get('baseLiveApiUrl') as FormControl; + get baseLiveApiUrlsControl() { + return this.settingsForm.get('baseLiveApiUrls') as FormControl; } - get basePlayInfoApiUrlControl() { - return this.settingsForm.get('basePlayInfoApiUrl') as FormControl; + get basePlayInfoApiUrlsControl() { + return this.settingsForm.get('basePlayInfoApiUrls') as FormControl; } ngOnChanges(): void { @@ -66,7 +66,8 @@ export class BiliApiSettingsComponent implements OnInit, OnChanges { .syncSettings( 'biliApi', this.settings, - this.settingsForm.valueChanges as Observable + this.settingsForm.valueChanges as Observable, + false ) .subscribe((detail) => { this.syncStatus = { ...this.syncStatus, ...calcSyncStatus(detail) }; diff --git a/webapp/src/app/settings/settings.module.ts b/webapp/src/app/settings/settings.module.ts index b8da5ef..13b782f 100644 --- a/webapp/src/app/settings/settings.module.ts +++ b/webapp/src/app/settings/settings.module.ts @@ -34,6 +34,7 @@ import { WebhookSettingsResolver } from './shared/services/webhook-settings.reso import { SettingsRoutingModule } from './settings-routing.module'; import { SettingsComponent } from './settings.component'; import { SwitchActionableDirective } from './shared/directives/switch-actionable.directive'; +import { BaseUrlValidatorDirective } from './shared/directives/base-url-validator.directive'; import { DiskSpaceSettingsComponent } from './disk-space-settings/disk-space-settings.component'; import { NotificationSettingsComponent } from './notification-settings/notification-settings.component'; import { LoggingSettingsComponent } from './logging-settings/logging-settings.component'; @@ -74,6 +75,7 @@ import { BasePlayInfoApiUrlEditDialogComponent } from './bili-api-settings/base- declarations: [ SettingsComponent, SwitchActionableDirective, + BaseUrlValidatorDirective, DiskSpaceSettingsComponent, NotificationSettingsComponent, LoggingSettingsComponent, diff --git a/webapp/src/app/settings/shared/constants/form.ts b/webapp/src/app/settings/shared/constants/form.ts index 13a1378..390511f 100644 --- a/webapp/src/app/settings/shared/constants/form.ts +++ b/webapp/src/app/settings/shared/constants/form.ts @@ -2,7 +2,6 @@ import { CoverSaveStrategy, DeleteStrategy } from '../setting.model'; export const SYNC_FAILED_WARNING_TIP = '设置同步失败!'; -export const BASE_URL_PATTERN = /^https?:\/\/.*$/; export const BASE_API_URL_DEFAULT = 'https://api.bilibili.com'; export const BASE_LIVE_API_URL_DEFAULT = 'https://api.live.bilibili.com'; diff --git a/webapp/src/app/settings/shared/directives/base-url-validator.directive.spec.ts b/webapp/src/app/settings/shared/directives/base-url-validator.directive.spec.ts new file mode 100644 index 0000000..c3e8e1b --- /dev/null +++ b/webapp/src/app/settings/shared/directives/base-url-validator.directive.spec.ts @@ -0,0 +1,8 @@ +import { BaseUrlValidatorDirective } from './base-url-validator.directive'; + +describe('BaseUrlValidatorDirective', () => { + it('should create an instance', () => { + const directive = new BaseUrlValidatorDirective(); + expect(directive).toBeTruthy(); + }); +}); diff --git a/webapp/src/app/settings/shared/directives/base-url-validator.directive.ts b/webapp/src/app/settings/shared/directives/base-url-validator.directive.ts new file mode 100644 index 0000000..c7e43a6 --- /dev/null +++ b/webapp/src/app/settings/shared/directives/base-url-validator.directive.ts @@ -0,0 +1,40 @@ +import { Directive } from '@angular/core'; +import { + AbstractControl, + NG_VALIDATORS, + ValidationErrors, + ValidatorFn, + Validators, +} from '@angular/forms'; + +@Directive({ + selector: '[appBaseUrlValidator]', + providers: [ + { + provide: NG_VALIDATORS, + useExisting: BaseUrlValidatorDirective, + multi: true, + }, + ], +}) +export class BaseUrlValidatorDirective implements Validators { + validate(control: AbstractControl): ValidationErrors | null { + return baseUrlValidator()(control); + } +} + +export function baseUrlValidator(): ValidatorFn { + return (control: AbstractControl): ValidationErrors | null => { + const value = control.value as string; + const lines = value + .split('\n') + .map((line) => line.trim()) + .filter((line) => !!line); + const invalidValues = lines.filter( + (line) => !/^https?:\/\/\S+$/.test(line) + ); + return invalidValues.length > 0 + ? { baseUrl: { value: invalidValues } } + : null; + }; +} diff --git a/webapp/src/app/settings/shared/services/settings-sync.service.ts b/webapp/src/app/settings/shared/services/settings-sync.service.ts index 2e9755f..a453341 100644 --- a/webapp/src/app/settings/shared/services/settings-sync.service.ts +++ b/webapp/src/app/settings/shared/services/settings-sync.service.ts @@ -53,14 +53,15 @@ export class SettingsSyncService { syncSettings( key: K, initialValue: V, - valueChanges: Observable + valueChanges: Observable, + deepDiff: boolean = true ): Observable | DetailWithError> { return valueChanges.pipe( scan]>( ([, prev], curr) => [ prev, curr, - difference(curr!, prev!) as Partial, + difference(curr!, prev!, deepDiff) as Partial, ], [initialValue, initialValue, {} as Partial] ), diff --git a/webapp/src/app/settings/shared/setting.model.ts b/webapp/src/app/settings/shared/setting.model.ts index 3316a7c..80a7cf1 100644 --- a/webapp/src/app/settings/shared/setting.model.ts +++ b/webapp/src/app/settings/shared/setting.model.ts @@ -1,9 +1,9 @@ import type { Nullable, PartialDeep } from 'src/app/shared/utility-types'; export interface BiliApiSettings { - baseApiUrl: string; - baseLiveApiUrl: string; - basePlayInfoApiUrl: string; + baseApiUrls: string[]; + baseLiveApiUrls: string[]; + basePlayInfoApiUrls: string[]; } export type BiliApiOptions = Nullable; diff --git a/webapp/src/app/shared/components/input-duration/input-duration.component.ts b/webapp/src/app/shared/components/input-duration/input-duration.component.ts index 1ab2c37..882748b 100644 --- a/webapp/src/app/shared/components/input-duration/input-duration.component.ts +++ b/webapp/src/app/shared/components/input-duration/input-duration.component.ts @@ -42,7 +42,7 @@ export class InputDurationComponent implements OnInit, ControlValueAccessor { this.formGroup = formBuilder.group({ duration: [ '', - [Validators.required, Validators.pattern(/^\d{2}:[0~5]\d:[0~5]\d$/)], + [Validators.required, Validators.pattern(/^\d{2}:[0-5]\d:[0-5]\d$/)], ], }); } diff --git a/webapp/src/app/shared/utils.ts b/webapp/src/app/shared/utils.ts index 0c33371..8661949 100644 --- a/webapp/src/app/shared/utils.ts +++ b/webapp/src/app/shared/utils.ts @@ -2,7 +2,11 @@ import { transform, isEqual, isObject } from 'lodash-es'; import * as filesize from 'filesize'; // ref: https://gist.github.com/Yimiprod/7ee176597fef230d1451 -export function difference(object: object, base: object): object { +export function difference( + object: object, + base: object, + deep: boolean = true +): object { function diff(object: object, base: object) { return transform(object, (result: object, value: any, key: string) => { const baseValue = Reflect.get(base, key); @@ -10,7 +14,7 @@ export function difference(object: object, base: object): object { Reflect.set( result, key, - isObject(value) && isObject(baseValue) + deep && isObject(value) && isObject(baseValue) ? diff(value, baseValue) : value ); diff --git a/webapp/src/app/tasks/task-item/task-item.component.ts b/webapp/src/app/tasks/task-item/task-item.component.ts index 4235a22..80289e5 100644 --- a/webapp/src/app/tasks/task-item/task-item.component.ts +++ b/webapp/src/app/tasks/task-item/task-item.component.ts @@ -186,7 +186,6 @@ export class TaskItemComponent implements OnChanges, OnDestroy { this.settingService.getTaskOptions(this.roomId), this.settingService.getSettings([ 'output', - 'biliApi', 'header', 'danmaku', 'recorder', diff --git a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html index 2d8bc63..2309e40 100644 --- a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html +++ b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html @@ -745,139 +745,6 @@ -
-

BILI API

- - BASE API URL - -

主站 API 的 BASE URL

-
- - - - - 不能为空 - - - 输入无效 - - - - -
- - BASE LIVE API URL - -

直播 API (getRoomPlayInfo 除外) 的 BASE URL

-
- - - - - 不能为空 - - - 输入无效 - - - - -
- - BASE PLAY INFO API URL - -

直播 API getRoomPlayInfo 的 BASE URL

-
- - - - - 不能为空 - - - 输入无效 - - - - -
-
-

网络请求

diff --git a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts index 96f84c2..b27c4bf 100644 --- a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts +++ b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts @@ -29,7 +29,6 @@ import { DELETE_STRATEGIES, COVER_SAVE_STRATEGIES, RECORDING_MODE_OPTIONS, - BASE_URL_PATTERN, } from '../../settings/shared/constants/form'; type OptionsModel = NonNullable; @@ -56,7 +55,6 @@ export class TaskSettingsDialogComponent implements OnChanges { readonly warningTip = '需要重启弹幕客户端才能生效,如果任务正在录制可能会丢失弹幕!'; - readonly baseUrlPattern = BASE_URL_PATTERN; readonly pathTemplatePattern = PATH_TEMPLATE_PATTERN; readonly streamFormatOptions = cloneDeep(STREAM_FORMAT_OPTIONS) as Mutable< typeof STREAM_FORMAT_OPTIONS